TGViewer
/r/emacs /r/emacs @r_emacs · 81 subscribers
Post #28746 12
Why is point not updating?

Can anyone help me understand why point seems to not be being updated?

(defun mpvmacs--socket-filter (proc msg)
(when (buffer-live-p (process-buffer proc))
(with-current-buffer (process-buffer proc)
(save-excursion
;; Insert the text, advancing the process marker.
(goto-char (process-mark proc))
(insert msg)
(set-marker (process-mark proc) (point)))
(while (ignore-errors (mpvmacs--parse-json (json-read)) t))
(goto-char (process-mark proc)))))

Both json-read and goto-char should be changing point but every time the function is called it parses the whole buffer.

https://redd.it/1x6dau0
@r_emacs
Reddit From the emacs community on Reddit Explore this post and more from the emacs community
More from @r_emacs
  1. Oct 15, 2026Which Emacs build do you use on macOS? Hi everyone. I use Emacs on macOS Tahoe. I'm curren…
  2. Oct 15, 2026[Package] org-slideboard: An improved interactive presentation tool for Org mode I’ve been…
  3. Oct 15, 2026General.el still relevant for Evil users? Sensible Evil and org-mode config, package recom…
  4. Oct 15, 2026Introducing Portal https://unclex.net/writing/portal https://redd.it/1x6bj3n @r_emacs
  5. Oct 15, 2026What are the recommended org-capture tools for Firefox and Chrome and how is org-protocol…
  6. Oct 14, 2026Minimal builtins-first config: Gruber Darker, Iosevka Term, Eglot + Vertico/Corfu, pdf-too…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →