GNU bug report logs - #23903
25.0.95; Undo after keyboard shortcuts differs from undo after M-x ... RET

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: Markus Triska <triska@HIDDEN>; Keywords: confirmed; dated Tue, 5 Jul 2016 22:46:02 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 23903 <at> debbugs.gnu.org:


Received: (at 23903) by debbugs.gnu.org; 2 Dec 2020 11:46:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 02 06:46:18 2020
Received: from localhost ([127.0.0.1]:34548 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kkQaQ-00056H-0W
	for submit <at> debbugs.gnu.org; Wed, 02 Dec 2020 06:46:18 -0500
Received: from quimby.gnus.org ([95.216.78.240]:60104)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kkQaL-00055s-44
 for 23903 <at> debbugs.gnu.org; Wed, 02 Dec 2020 06:46:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=vrYKJPlp5MWNf9xbpCQkB72+NGQPpeTO70/9dqb/ack=; b=J1BqI8lUqCIjqjW87drBXR2Eul
 YlJdL3Ug39n/ZgJbAna2U7nM8acgJwCFYo+7mYdm2V558pULY75upP8HqvRGaTUxPI0lEXKEzs1v3
 +NapSyLfetg+jexuvtMMNzUWsPtj/ZwFzEwagFI2reg9CLqKck3qPAqbRIid4K3OgjOQ=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kkQa8-0005vJ-UW; Wed, 02 Dec 2020 12:46:06 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Markus Triska <triska@HIDDEN>
Subject: Re: bug#23903: 25.0.95; Undo after keyboard shortcuts differs from
 undo after M-x ... RET
References: <m2poqrg0wb.fsf@HIDDEN>
X-Now-Playing: Cocteau Twins's _Treasure_: "Beatrix"
Date: Wed, 02 Dec 2020 12:45:59 +0100
In-Reply-To: <m2poqrg0wb.fsf@HIDDEN> (Markus Triska's message of "Wed,
 06 Jul 2016 00:45:08 +0200")
Message-ID: <87k0u02zyg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: Markus Triska <triska@HIDDEN> writes: > With the latest
 emacs-25 git, please do the following: > > 1) Invoke Emacs via: > > emacs
 -Q --eval "(defun bc () (interactive)\ > (start-process \"bc\"
 (current-buffer) \"bc\"))" \ > --eval "(globa [...] 
 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: 23903
Cc: 23903 <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 (-)

Markus Triska <triska@HIDDEN> writes:

> With the latest emacs-25 git, please do the following:
>
> 1) Invoke Emacs via:
>
>     emacs -Q --eval "(defun bc () (interactive)\
>                          (start-process \"bc\" (current-buffer) \"bc\"))" \
>           --eval "(global-set-key [f9] 'bc)" \
>           --eval "(save-excursion (insert \"hello\"))"
>
> 2) Press (F9 is bound to the function bc by the snippet above):
>
>    F9 C-/
>
>    After undo, point is at the beginning of the buffer, as expected.
>
> 3) Press:
>
>    M-x bc RET C-/
>
>    After undo, point is unexpectedly at the end of the buffer instead.

(This bug report unfortunately got no response at the time.)

Thanks for a clear recipe for reproducing this bug.

I can confirm that this behaviour is still present in Emacs 28.  Does
anybody have any insight into why this may be happening (before I start
trying to debug it)?  

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




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

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


Received: (at submit) by debbugs.gnu.org; 5 Jul 2016 22:45:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 05 18:45:27 2016
Received: from localhost ([127.0.0.1]:38695 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bKZ5r-00024N-4u
	for submit <at> debbugs.gnu.org; Tue, 05 Jul 2016 18:45:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58396)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1bKZ5p-00024A-DU
 for submit <at> debbugs.gnu.org; Tue, 05 Jul 2016 18:45:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bKZ5j-0006YS-G8
 for submit <at> debbugs.gnu.org; Tue, 05 Jul 2016 18:45:20 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33156)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bKZ5j-0006YN-Cs
 for submit <at> debbugs.gnu.org; Tue, 05 Jul 2016 18:45:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49359)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bKZ5h-0007SS-3W
 for bug-gnu-emacs@HIDDEN; Tue, 05 Jul 2016 18:45:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bKZ5c-0006XT-Rk
 for bug-gnu-emacs@HIDDEN; Tue, 05 Jul 2016 18:45:16 -0400
Received: from metalevel.at ([78.46.218.83]:58859)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bKZ5c-0006XL-L2
 for bug-gnu-emacs@HIDDEN; Tue, 05 Jul 2016 18:45:12 -0400
Received: from dawn.meta (localhost.localdomain [127.0.0.1])
 by metalevel.at (Postfix) with ESMTP id 35AC6A0105
 for <bug-gnu-emacs@HIDDEN>; Wed,  6 Jul 2016 00:45:11 +0200 (CEST)
Received: by dawn.meta (Postfix, from userid 501)
 id 534191A9B5F3; Wed,  6 Jul 2016 00:45:08 +0200 (CEST)
From: Markus Triska <triska@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.95;
 Undo after keyboard shortcuts differs from undo after M-x ... RET
Date: Wed, 06 Jul 2016 00:45:08 +0200
Message-ID: <m2poqrg0wb.fsf@HIDDEN>
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.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: -5.0 (-----)

With the latest emacs-25 git, please do the following:

1) Invoke Emacs via:

    emacs -Q --eval "(defun bc () (interactive)\
                         (start-process \"bc\" (current-buffer) \"bc\"))" \
          --eval "(global-set-key [f9] 'bc)" \
          --eval "(save-excursion (insert \"hello\"))"

2) Press (F9 is bound to the function bc by the snippet above):

   F9 C-/

   After undo, point is at the beginning of the buffer, as expected.

3) Press:

   M-x bc RET C-/

   After undo, point is unexpectedly at the end of the buffer instead.

Thank you for looking into this!

All the best,
Markus


In GNU Emacs 25.0.95.4 (x86_64-apple-darwin15.5.0, X toolkit, Xaw scroll bars)
 of 2016-07-05 built on mt-imac
Repository revision: e3b039d1a0e611d6619ed3ce67d125160d644ebc
Windowing system distributor 'The X.Org Foundation', version 11.0.11502000
Configured using:
 'configure --without-ns CFLAGS=-I/opt/local/include
 LDFLAGS=-L/opt/local/lib'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK GSETTINGS NOTIFY ACL GNUTLS
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix





Acknowledgement sent to Markus Triska <triska@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#23903; 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: Wed, 2 Dec 2020 12:00:01 UTC

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