all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexis <flexibeast@gmail.com>
To: Andreas Schwab <schwab@suse.de>
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 23:42:29 +1100	[thread overview]
Message-ID: <87r3gervpm.fsf@gmail.com> (raw)
In-Reply-To: <mvmvb5qnukz.fsf@hawking.suse.de>


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.





  reply	other threads:[~2016-02-15 12:42 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 [this message]
2016-02-15 13:03     ` Andreas Schwab
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=87r3gervpm.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --cc=22673@debbugs.gnu.org \
    --cc=schwab@suse.de \
    --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.