summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-09-02 14:37:44 +0200
committerAlan Pearce2016-09-02 14:37:44 +0200
commit62a8fbc7892d53ee81caaa8361ca6407976245f0 (patch)
treea6387da9b4770b681cfc0e8129d03a12a9d1332c
parent187e5e28a32e4e55b26142eae5400af19a854fbf (diff)
downloaddotfiles-62a8fbc7892d53ee81caaa8361ca6407976245f0.tar.lz
dotfiles-62a8fbc7892d53ee81caaa8361ca6407976245f0.tar.zst
dotfiles-62a8fbc7892d53ee81caaa8361ca6407976245f0.zip
Emacs: Workaround strange menu error
-rw-r--r--tag-emacs/emacs.d/init.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 87cd664..21228f4 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1917,7 +1917,8 @@ it though
               (define-key js2-mode-map [menu-bar Javascript] nil)
               (defun js2--imenu-around (do-it name)
                 "Don't create a menu from js2-mode"
-                (unless (string-equal name "IM-Javascript-IDE")
+                (if (and (not (string-equal name "IM-Javascript-IDE"))
+                         (fboundp #'do-it))
                   (do-it name)))
               (advice-add 'imenu-add-to-menubar :around #'js2--imenu-around)
               (setq js2-skip-preprocessor-directives t)