all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Alexis <flexibeast@gmail.com>
Cc: Thomas Lynch <thomas.lynch@reasoningtechnology.com>,
	22673@debbugs.gnu.org
Subject: bug#22673: 24.5; global set key neg freaks out emacs
Date: Mon, 15 Feb 2016 14:03:00 +0100	[thread overview]
Message-ID: <mvmbn7inn23.fsf@hawking.suse.de> (raw)
In-Reply-To: <87r3gervpm.fsf@gmail.com> (Alexis's message of "Mon, 15 Feb 2016 23:42:29 +1100")

Alexis <flexibeast@gmail.com> 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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





  reply	other threads:[~2016-02-15 13:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15  2:10 bug#22673: 24.5; global set key neg freaks out emacs Thomas Lynch
2016-02-15  8:44 ` Alexis
2016-02-15 10:20 ` Andreas Schwab
2016-02-15 12:42   ` Alexis
2016-02-15 13:03     ` Andreas Schwab [this message]
2016-02-15 13:24       ` Thomas Lynch
2018-06-06  0:02   ` Noam Postavsky
2018-06-06  7:39     ` Andreas Schwab
2022-01-29 16:59       ` bug#22673: execute-kbd-macro doesn't handle strings with characters in range (0x80..0xFF) correctly Lars Ingebrigtsen
2022-01-29 18:01         ` Thomas Walker Lynch via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmbn7inn23.fsf@hawking.suse.de \
    --to=schwab@suse.de \
    --cc=22673@debbugs.gnu.org \
    --cc=flexibeast@gmail.com \
    --cc=thomas.lynch@reasoningtechnology.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.