GNU bug report logs - #34248
characters are duplicated when executing a macro defined under input-mode

Previous Next

Package: emacs;

Reported by: Platon Pronko <platon7pronko <at> gmail.com>

Date: Tue, 29 Jan 2019 18:22:02 UTC

Severity: normal

Tags: confirmed

Merged with 32108

Found in versions 25.1, 27.0.50

Fixed in version 27.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Platon Pronko <platon7pronko <at> gmail.com>
Cc: 34248 <at> debbugs.gnu.org
Subject: Re: bug#34248: characters are duplicated when executing a macro
 defined under input-mode
Date: Tue, 29 Jan 2019 20:41:51 +0200
> From: Platon Pronko <platon7pronko <at> gmail.com>
> Date: Tue, 29 Jan 2019 21:20:06 +0300
> 
> emacs -Q test.txt
> 
> where `test.txt` is an empty file. Then I performed the following actions:
> 
> M-: (activate-input-method "english-dvorak") <RET>  ;; activating the input method
> C-x C-( ;; starting a macro definition
> a       ;; typing a single character
> C-x C-) ;; finishing a macro definition
> C-X C-e ;; executing a macro
> 
> I expected to see two characters ("aa") in the buffer - one that was typed during the definition of the macro, and one that was inserted during execution of the macro.
> 
> Instead, I see three characters: "aaa" - two characters are inserted instead of one when macro executes.
> 
> I tried several other input modes, the result is the same. Each typed character is repeated twice - so for example "asdf" becomes "aassddff". And when I show macro contents using C-x C-k C-e, the following is displayed:
> 
> aa			;; self-insert-command * 2
> 
> 
> System details below:
> 
> In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
>   of 2018-07-05 built on juergen
> System Description:	Arch Linux

Thanks, this is bug #32108, which is already fixed on the master
branch of the Emacs Git repository.  The fix will be included in
Emacs 27, when that is released.




This bug report was last modified 6 years and 117 days ago.

Previous Next


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