GNU bug report logs -
#34720
26.1; Reverting a GPG buffer moves all markers to the end of the file
Previous Next
Reported by: Ian Dunn <dunni <at> gnu.org>
Date: Sun, 3 Mar 2019 15:29:01 UTC
Severity: normal
Tags: confirmed, fixed
Found in version 26.1
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: dunni <at> gnu.org, 34720 <at> debbugs.gnu.org
> Date: Tue, 27 Aug 2019 10:23:28 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > These just restore a single marker: the point marker. That's a far
> > cry from restoring all the markers. I don't think the latter is
> > possible in all cases without violating the principle of least
> > astonishment (by placing the markers at locations that have nothing in
> > comm on with where they have been before the editing operation).
>
> Hm. Doesn't the code below restore all markers (that it can restore)?
No, it restores only the window-point marker in each window that shows
the same buffer. See get_window_points_and_markers, which collects
those markers.
> And I just tested with the test case in this bug report, which is
>
> (progn
> (setq test-marker (make-marker))
> (move-marker test-marker (point)))
>
> append to the file, and then `M-x revert-buffer': test-marker remains at
> the same position.
Must be sheer luck. Or maybe I'm missing something, but you will have
to show me the code that moves this test marker to convince me. (I
don't have the necessary software installed to repeat the recipe myself.)
This bug report was last modified 5 years and 262 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.