emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposed patch for lookup-key


From: Justin Burkett
Subject: Re: Proposed patch for lookup-key
Date: Thu, 14 Dec 2017 16:25:58 -0500

How about showing what the lookup-key output looks like before and after your patch when a menu is involved?

Sure, 

(define-key map "a" '("Foo function" . foo))

This is the behavior from before (the second sets the new optional arg to nil)

(lookup-key map "a") => foo
(lookup-key map "a" nil nil) => foo

With the new last argument set to t, 

(lookup-key map "a" nil t) => ("Foo function" . foo)

The motivation for this patch was to be able to easily retrieve ("Foo function" . foo) in a case like this. 

Best, 
Justin 



On Thu, Dec 14, 2017 at 4:07 PM, Robert Weiner <address@hidden> wrote:
Nice effort for a first contribution!

How about showing what the lookup-key output looks like before and after your patch when a menu is involved?

Bob



reply via email to

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