]> git.eshelyaron.com Git - emacs.git/commit
* lisp/macros.el (insert-kbd-macro): Recognize kmacros reliably
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 24 Nov 2017 16:32:14 +0000 (11:32 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 24 Nov 2017 16:32:14 +0000 (11:32 -0500)
commit4f779ff8e6445d9b46a87f494396ccb5f72b0350
tree4007a6a4b32718cc73a07adea8a80868ae239bd9
parentb407c521f24b07b76eee0cd06d471e629cef18e8
* lisp/macros.el (insert-kbd-macro): Recognize kmacros reliably

* lisp/macros.el (name-last-kbd-macro): Make it an alias of
kmacro-name-last-macro.
(insert-kbd-macro): Use kmacro-keyboard-macro-p so it also works for
kmacros that fail to have a `kmacro' property.
(see https://emacs.stackexchange.com/questions/37065, for an example).

* lisp/kmacro.el: Remove redundant :group args.
(kmacro-insert-counter): Simplify.
(kmacro-extract-lambda): Use car/cdr-safe.
(kmacro-p, kmacro-keyboard-macro-p): New functions.
(kmacro-name-last-macro): Use them.
lisp/kmacro.el
lisp/macros.el