GNU bug report logs - #34720
26.1; Reverting a GPG buffer moves all markers to the end of the file

Previous Next

Package: emacs;

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


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ian Dunn <dunni <at> gnu.org>
Cc: 34720 <at> debbugs.gnu.org
Subject: Re: bug#34720: 26.1;
 Reverting a GPG buffer moves all markers to the end of the file
Date: Tue, 09 Jul 2019 18:33:11 +0200
Ian Dunn <dunni <at> gnu.org> writes:

> When I use `revert-buffer' on a buffer for a file encrypted with
> GnuPG, every marker in the buffer is moved to the end of the buffer.
> A normal file restores markers to their original positions after
> reverting.
>
> To replicate:
>
> 1. Open a GnuPG encrypted file
> 2. Run the following:
>    (setq test-marker (make-marker))
>    (move-marker test-marker (point-marker))
>    ;; test-marker points to `point'
> 3. Revert the buffer
>    ;; test-marker now points to the end of the buffer

I can confirm that this bug is still present in Emacs 27 -- but only if
point is not at point-min, oddly enough.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 261 days ago.

Previous Next


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