GNU bug report logs - #66313
29.1.50; process-mark sometimes does not yield the expected value

Previous Next

Package: emacs;

Reported by: Markus Triska <triska <at> metalevel.at>

Date: Mon, 2 Oct 2023 19:52:01 UTC

Severity: normal

Found in version 29.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 66313 <at> debbugs.gnu.org (full text, mbox):

From: Markus Triska <triska <at> metalevel.at>
To: 66313 <at> debbugs.gnu.org
Subject: Re: bug#66313: Acknowledgement (29.1.50;
 process-mark sometimes does not yield the expected value)
Date: Sat, 07 Oct 2023 16:15:38 +0200
I have reduced this to the following problem: set-process-buffer
sometimes unexpectedly changes the position of process-mark.

For a shorter test case that exhibits the issue, please download
process-mark.el from:

    https://www.metalevel.at/ei/process-mark/process-mark.el

Its contents are:

   (let ((p (start-process "bash" nil "bash")))
     (set-marker (process-mark p) (point))
     (set-process-buffer p (current-buffer))
     (marker-position (process-mark p)))

   (message "hello there!")

Place point after the first form in the file, and evaluate the form with
C-x C-e.

The expected result is: 165. It is obtained with Emacs 26.1 and several
later versions.

However, with the Emacs version I used to report this problem, the
result I get is unexpectedly: 192.

I would greatly appreciate if the previous behaviour could be restored.

Thank you and all the best,
Markus




This bug report was last modified 1 year and 228 days ago.

Previous Next


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