From: Andreas Schwab <schwab@linux-m68k.org>
To: Tianxiang Xiong <tianxiang.xiong@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Have `define-key` return the keymap
Date: Sat, 13 May 2017 10:32:04 +0200 [thread overview]
Message-ID: <m2lgq1uph7.fsf@linux-m68k.org> (raw)
In-Reply-To: <CACMkxixPJZmoKb0zSWJ5oAC4LaEZbJJJmePC-XMZ1XPbOmxSwg@mail.gmail.com> (Tianxiang Xiong's message of "Sat, 13 May 2017 01:19:17 -0700")
On Mai 13 2017, Tianxiang Xiong <tianxiang.xiong@gmail.com> wrote:
> Would there be any issues with / objections to having `define-key` return
> the keymap it adds a key to? It currently returns `nil`, making it a
> statement (bleh!) rather than a function.
That would cause major inconvenience when define-key is evaluated with
M-: or ielm. A keymap is a big structure to print.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2017-05-13 8:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 8:19 Have `define-key` return the keymap Tianxiang Xiong
2017-05-13 8:32 ` Andreas Schwab [this message]
2017-05-13 9:11 ` Tianxiang Xiong
2017-05-13 12:21 ` Michael Heerdegen
2017-05-13 14:58 ` Drew Adams
2017-05-13 15:12 ` Kaushal Modi
2017-05-13 15:13 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2lgq1uph7.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=emacs-devel@gnu.org \
--cc=tianxiang.xiong@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).