From: Noam Postavsky <npostavs@gmail.com>
To: Sean McAfee <eefacm@gmail.com>
Cc: 35334@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 [thread overview]
Message-ID: <87k1ffp36g.fsf@gmail.com> (raw)
In-Reply-To: <87lg02sr0u.fsf@gmail.com> (Noam Postavsky's message of "Sun, 21 Apr 2019 22:38:41 -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?
prev parent reply other threads:[~2019-04-27 21:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-20 4:00 bug#35334: 26.2; Changes to position of point are undone during with-current-buffer if window is visible but not current Sean McAfee
2019-04-20 4:10 ` Noam Postavsky
2019-04-21 23:32 ` Sean McAfee
2019-04-22 2:38 ` Noam Postavsky
2019-04-22 7:22 ` Eli Zaretskii
2019-04-27 21:05 ` Sean McAfee
2019-04-28 2:19 ` Noam Postavsky
2019-04-30 21:58 ` Sean McAfee
2019-05-01 0:55 ` Noam Postavsky
2019-04-27 21:07 ` Noam Postavsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1ffp36g.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=35334@debbugs.gnu.org \
--cc=eefacm@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.