|
From: | Alexis |
Subject: | bug#22673: 24.5; global set key neg freaks out emacs |
Date: | Mon, 15 Feb 2016 23:42:29 +1100 |
User-agent: | mu4e 0.9.16; emacs 24.5.3 |
Andreas Schwab <schwab@suse.de> writes:
Thomas Lynch <thomas.lynch@reasoningtechnology.com> writes:Evaluate the following (global-set-key (kbd "C-x g neg") "¬")This is the same as binding [?\C-x ?g ?n ?e ?g] to [?\M-,]. You should use the vector notation instead:(global-set-key (kbd "C-x g neg") [?¬])
Neat!The documentation for the `global-set-key` function, at least in 24.5.3 and in the emacs-25 branch as at d9ea7950, doesn't mention this possibility:
(global-set-key KEY COMMAND) Give KEY a global binding as COMMAND. COMMAND is the command definition to use; usually it is a symbol naming an interactively-callable function.
Perhaps it should be modified to refer to COMMAND-OR-VECTOR? Alexis.
[Prev in Thread] | Current Thread | [Next in Thread] |