From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: confusion with defining keys
Date: Thu, 12 Jun 2014 03:49:18 +0200 [thread overview]
Message-ID: <87ioo66go1.fsf@debian.uxu> (raw)
In-Reply-To: 87sina6h4x.fsf@debian.uxu
Emanuel Berg <embe8573@student.uu.se> writes:
> Check out the below experimentation:
>
> (global-set-key (kbd "RET") 'newline-and-indent) ;
> works (global-set-key "\r" 'newline-and-indent) ; works
> (global-set-key [RET] 'newline-and-indent) ; (error "To
> bind the key RET, use \"\\r\", not [RET]")
>
> (global-set-key (kbd "M-SPC") 'eat-space) ; works
> (global-set-key "\M- " 'eat-space) ; works
> (global-set-key [M-SPC] 'eat-space) ; (error "To bind
> the key M-SPC, use \"\\M- \", not [M-SPC]")
TAB also behaves like that (should be "\t") as well as
different combinations, e.g., "\M-\r" instead of
[M-R**] (but (kbd "M-RET") is fine).
--
underground experts united:
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2014-06-12 1:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 5:05 confusion with defining keys lee
2014-06-11 8:21 ` kastian
2014-06-11 11:30 ` Nicolas Richard
2014-06-12 5:28 ` lee
2014-06-11 11:53 ` Stefan Monnier
2014-06-12 5:40 ` lee
[not found] ` <mailman.3403.1402487643.1147.help-gnu-emacs@gnu.org>
2014-06-11 14:32 ` Emanuel Berg
2014-06-12 0:56 ` Stefan Monnier
[not found] ` <mailman.3459.1402534627.1147.help-gnu-emacs@gnu.org>
2014-06-12 1:39 ` Emanuel Berg
2014-06-12 1:49 ` Emanuel Berg [this message]
2014-06-12 2:48 ` Stefan Monnier
[not found] ` <mailman.3470.1402541342.1147.help-gnu-emacs@gnu.org>
2014-06-12 13:59 ` Emanuel Berg
2014-06-12 14:17 ` Emanuel Berg
2014-06-12 14:52 ` Stefan Monnier
[not found] ` <mailman.3498.1402584764.1147.help-gnu-emacs@gnu.org>
2014-06-12 22:57 ` Emanuel Berg
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=87ioo66go1.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/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.