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

Previous Next

Package: emacs;

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

Date: Tue, 5 Jul 2016 22:46:02 UTC

Severity: normal

Tags: confirmed

Found in version 25.0.95

To reply to this bug, email your comments to 23903 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23903; Package emacs. (Tue, 05 Jul 2016 22:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Markus Triska <triska <at> metalevel.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Jul 2016 22:46:02 GMT) Full text and rfc822 format available.

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

From: Markus Triska <triska <at> metalevel.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.95;
 Undo after keyboard shortcuts differs from undo after M-x ... RET
Date: Wed, 06 Jul 2016 00:45:08 +0200
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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23903; Package emacs. (Wed, 02 Dec 2020 11:47:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Markus Triska <triska <at> metalevel.at>
Cc: 23903 <at> debbugs.gnu.org
Subject: Re: bug#23903: 25.0.95; Undo after keyboard shortcuts differs from
 undo after M-x ... RET
Date: Wed, 02 Dec 2020 12:45:59 +0100
Markus Triska <triska <at> metalevel.at> 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




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Dec 2020 11:47:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 195 days ago.

Previous Next


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