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

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

bug#22673: 24.5; global set key neg freaks out emacs


From: Thomas Lynch
Subject: bug#22673: 24.5; global set key neg freaks out emacs
Date: Mon, 15 Feb 2016 13:24:47 +0000

Note that every other character appears to work with this same syntax that neg doesn't,  take for example:

(global-set-key (kbd "C-x g > =") "≥")

That and every other character in quotes that I have tried, works fine.  Only neg is different.

On Mon, Feb 15, 2016 at 1:03 PM, Andreas Schwab <address@hidden> wrote:
Alexis <address@hidden> writes:

> 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?

A vector is a kind of command.  It's a keyboard macro.

ELISP> (commandp [?¬])
t

For non-interactive use, define-key is preferred, which has all details.

Andreas.

--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


reply via email to

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