GNU bug report logs - #26535
25.1; `edit-last-kbd-macro': wrong info in comments

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 16 Apr 2017 16:53:01 UTC

Severity: minor

Tags: confirmed

Found in versions 29.0.50, 24.3, 25.1

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; `edit-last-kbd-macro': wrong info in comments
Date: Sun, 16 Apr 2017 09:52:38 -0700 (PDT)
emacs -Q
C-x d RET ; Dired some dir
<f3>
M-x forward-char RET
<f4>
M-x edit-last-kbd-macro RET

Buffer *Edit Macro* shows the wrong bindings for the keys
pressed to define the macro.  It shows Dired bindings for
each key, but those keys were pressed as minibuffer input
for `M-x':

;; Keyboard Macro Editor.  Press C-c C-c to finish; press C-x k RET to cancel.
;; Original keys: M-x f o r w a r d - c h a r RET

Command: last-kbd-macro
Key: none

Macro:

M-x			;; execute-extended-command
f			;; dired-find-file
o			;; dired-find-file-other-window
r			;; self-insert-command
w			;; dired-copy-filename-as-kill
a			;; dired-find-alternate-file
r			;; self-insert-command
d			;; dired-flag-file-deletion
-			;; negative-argument
c			;; dired-do-compress-to
h			;; describe-mode
a			;; dired-find-alternate-file
r			;; self-insert-command
RET			;; dired-find-file

`edit-last-kbd-macro' interprets the macro definition
in the context of whatever buffer is current when it
is called.  If you change to another buffer in the above
recipe before invoking it, the commands shown in the
comments will be completely different (but equally wrong).

In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
 of 2016-11-15 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
 'configure --without-dbus --without-compress-install 'CFLAGS=-O2
 -static -g3''




This bug report was last modified 2 years and 363 days ago.

Previous Next


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