help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numbers instead of accented letters...


From: Stefan Monnier
Subject: Re: numbers instead of accented letters...
Date: Mon, 26 Nov 2018 09:20:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> ;;; Select All : Cmd+A (Meta+A)
> (fset 'selectAll
>    (lambda (&optional arg) "Keyboard macro." (interactive "p")
> (kmacro-exec-ring-item '("\274^@\276" 0 "%d") arg)))
> (global-set-key (kbd "M-a") 'selectAll)
>
> If I remove that code, the file behaves properly...

Aha!

Then the fix for you is to write \0 instead of the 0 byte:

    (kmacro-exec-ring-item '("\274^@\0\276" 0 "%d") arg)))

Now, could you open a bug report about that: creating a keyboard macro
shouldn't cause that kind of trouble!


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]