[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: numbers instead of accented letters...
From: |
Jean-Christophe Helary |
Subject: |
Re: numbers instead of accented letters... |
Date: |
Mon, 26 Nov 2018 23:46:21 +0900 |
> On Nov 26, 2018, at 23:20, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> ;;; 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!
:) Yep, that's what I thought too. Although I'll also probably just remap
mark-whole-buffer to Cmd-A.
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
- Re: numbers instead of accented letters..., (continued)
Re: numbers instead of accented letters..., Stefan Monnier, 2018/11/25