emacs-devel
[Top][All Lists]
Advanced

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

Re: Have `define-key` return the keymap


From: Tianxiang Xiong
Subject: Re: Have `define-key` return the keymap
Date: Sat, 13 May 2017 02:11:05 -0700

That's true...a valid concern.

On Sat, May 13, 2017 at 1:32 AM, Andreas Schwab <address@hidden> wrote:
On Mai 13 2017, Tianxiang Xiong <address@hidden> 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, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


reply via email to

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