GNU bug report logs -
#75586
31.0.50; Cannot bind <C-m> with keymap-global-set
Previous Next
Reported by: Manuel Uberti <manuel.uberti <at> inventati.org>
Date: Wed, 15 Jan 2025 16:04:01 UTC
Severity: normal
Tags: fixed
Found in version 31.0.50
Fixed in version 30.1
Done: Robert Pluim <rpluim <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>>>> On Wed, 15 Jan 2025 17:17:44 +0100, Manuel Uberti via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> said:
Manuel> On 15/01/25 17:03, Manuel Uberti wrote:
>> (define-key input-decode-map [?\C-m] [C-m])
>> (define-prefix-command 'mu-ctrl-m-map)
>> (keymap-global-set (kbd "<C-m>") mu-ctrl-m-map)
Manuel> Replying to myself, because I think I've found a solution:
Manuel> (keymap-set input-decode-map "C-m" "C-<m>")
Manuel> (define-prefix-command 'mu-ctrl-m-map)
Manuel> (keymap-global-set "C-<m>" mu-ctrl-m-map)
Manuel> Is this how it is intended to be done? If so, feel free to close the bug
Manuel> report and sorry for the noise.
Itʼs not clear to me what youʼre trying to achieve, nor why you need
to change `input-decode-map'. Does
(define-prefix-command 'mu-ctrl-m-map)
(keymap-global-set "C-m" mu-ctrl-m-map)
not do the right thing?
Robert
--
This bug report was last modified 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.