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

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Markus Triska <triska <at> metalevel.at>
Cc: 23903 <at> debbugs.gnu.org
Subject: 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




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.