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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ian Dunn <dunni@HIDDEN>; Keywords: confirmed; dated Sun, 3 Mar 2019 15:29:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 34720 <at> debbugs.gnu.org:


Received: (at 34720) by debbugs.gnu.org; 9 Jul 2019 16:33:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 12:33:18 2019
Received: from localhost ([127.0.0.1]:33995 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hkt3O-000245-20
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2019 12:33:18 -0400
Received: from quimby.gnus.org ([80.91.231.51]:49216)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hkt3M-00023w-7q
 for 34720 <at> debbugs.gnu.org; Tue, 09 Jul 2019 12:33:16 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hkt3I-0007AM-83; Tue, 09 Jul 2019 18:33:14 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Ian Dunn <dunni@HIDDEN>
Subject: Re: bug#34720: 26.1;
 Reverting a GPG buffer moves all markers to the end of the file
References: <87a7ic9due.fsf@HIDDEN>
Date: Tue, 09 Jul 2019 18:33:11 +0200
In-Reply-To: <87a7ic9due.fsf@HIDDEN> (Ian Dunn's message of "Sun, 03 Mar 2019
 10:28:41 -0500")
Message-ID: <87muhnrwvs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Ian Dunn <dunni@HIDDEN> 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 a [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34720
Cc: 34720 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Ian Dunn <dunni@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34720; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Mar 2019 15:28:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 03 10:28:52 2019
Received: from localhost ([127.0.0.1]:58634 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h0T2p-00032b-U3
	for submit <at> debbugs.gnu.org; Sun, 03 Mar 2019 10:28:52 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42615)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dunni@HIDDEN>) id 1h0T2n-00032N-PD
 for submit <at> debbugs.gnu.org; Sun, 03 Mar 2019 10:28:50 -0500
Received: from lists.gnu.org ([209.51.188.17]:44395)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dunni@HIDDEN>) id 1h0T2i-0000vt-Kb
 for submit <at> debbugs.gnu.org; Sun, 03 Mar 2019 10:28:44 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56996)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dunni@HIDDEN>) id 1h0T2h-0007Nr-TM
 for bug-gnu-emacs@HIDDEN; Sun, 03 Mar 2019 10:28:44 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED,BAYES_05
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59192)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dunni@HIDDEN>) id 1h0T2h-0000v2-Lx
 for bug-gnu-emacs@HIDDEN; Sun, 03 Mar 2019 10:28:43 -0500
Received: from [2604:6000:1006:8195:229c:c3cf:46a4:839a] (port=55392
 helo=escafil)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <dunni@HIDDEN>) id 1h0T2g-00035t-9H
 for bug-gnu-emacs@HIDDEN; Sun, 03 Mar 2019 10:28:43 -0500
From: Ian Dunn <dunni@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.1; Reverting a GPG buffer moves all markers to the end of the file
Date: Sun, 03 Mar 2019 10:28:41 -0500
Message-ID: <87a7ic9due.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


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

-- 
Ian Dunn




Acknowledgement sent to Ian Dunn <dunni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34720; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Jul 2019 16:45:01 UTC

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