[Top][All Lists]

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

bug#11716: 24.1; `substitute-command-keys' does not respect `defalias'

From: Lars Ingebrigtsen
Subject: bug#11716: 24.1; `substitute-command-keys' does not respect `defalias'
Date: Thu, 28 Apr 2016 17:46:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

>> > (defun foo () "foo" (interactive) (message "FOO"))
>> > (defalias 'bar 'foo)
>> > (global-set-key "\C-d" 'foo)
>> > (substitute-command-keys "\\[bar]")
>> >  
>> > The last sexp returns "M-x bar".  It should return "C-d".
>> No.  C-d is not bound to bar.
> No what?  I didn't say it was.
> C-d is, _in effect_, that is, from a user perspective, bound to `bar'.  It is
> not bound to `bar' but the effect is that it invokes the code that `bar' runs.

I agree with Andreas.  Closing.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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