GNU bug report logs - #35334
26.2; Changes to position of point are undone during with-current-buffer if window is visible but not current

Previous Next

Package: emacs;

Reported by: Sean McAfee <eefacm <at> gmail.com>

Date: Sat, 20 Apr 2019 04:01:01 UTC

Severity: normal

Found in version 26.2

Fixed in version 26.3

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> gmail.com>
To: Sean McAfee <eefacm <at> gmail.com>
Cc: 35334 <at> debbugs.gnu.org
Subject: bug#35334: 26.2; Changes to position of point are undone during with-current-buffer if window is visible but not current
Date: Sat, 27 Apr 2019 17:07:51 -0400
>      (defun ordinary-insertion-filter (proc string)
>        (when (buffer-live-p (process-buffer proc))
>          (with-current-buffer (process-buffer proc)
>            (let ((moving (= (point) (process-mark proc))))
>              (save-excursion
>                ;; Insert the text, advancing the process marker.
>                (goto-char (process-mark proc))
>                (insert-before-markers string) ; <------------ change here
>                (set-marker (process-mark proc) (point)))
>              (if moving (goto-char (process-mark proc)))))))

If we make this update in the manual, would that sufficiently clarify
the sitatuation, or do we need anything else?





This bug report was last modified 6 years and 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.