commit 796459c5f4c8982e6ceaf0cfbb55af5a2c8a1109 parent 38c2fe655e49677c4d2df0e402fbef121f6ac671 Author: Alex Balgavy <alex@balgavy.eu> Date: Mon, 15 Aug 2022 23:37:55 +0200 emacs: fix insert-kbd-macro Diffstat:
M | emacs/config.org | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -2174,6 +2174,8 @@ From here: https://www.masteringemacs.org/article/keyboard-macros-are-misunderst #+begin_src emacs-lisp (require 'kmacro) (defalias 'kmacro-insert-macro 'insert-kbd-macro) + ;; Add advice to ignore errors on `kmacro-keyboard-macro-p`, it was messing up because of some entry in `obarray` + (advice-add #'kmacro-keyboard-macro-p :around (lambda (fun sym) "Ignore errors." (ignore-errors (funcall fun sym)))) (define-key kmacro-keymap (kbd "I") #'kmacro-insert-macro) #+end_src