]> git.eshelyaron.com Git - emacs.git/commit
Find macro binding for symbol-bound macros too (Bug#6848)
authorNoam Postavsky <npostavs@gmail.com>
Wed, 22 Feb 2017 02:31:24 +0000 (21:31 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 22 Feb 2017 02:44:54 +0000 (21:44 -0500)
commit907bad07f25ca91e72ebb29a468c6b1b8b91fa49
tree2fe7ea502e0c17b0670f5d68f6aa66b3e7a1a2bb
parent3f1cd957ff319ce4b2ae94d656c9c702fa9ce653
Find macro binding for symbol-bound macros too (Bug#6848)

There are 2 ways to bind a macro: with global-set-key or
kmacro-bind-to-key.  The former binds a key to a symbol, while the
latter binds to a lambda.  In 2010-03-03 "Fix keyboard macro key
lookup (Bug#5481)", `insert-kbd-macro' was fixed to detect the lambda
case, but broke the symbol case.

* lisp/macros.el (insert-kbd-macro): Also check for bindings of
MACRONAME.
lisp/macros.el