# HG changeset patch # User Oleksandr Gavenko # Date 1352830041 -7200 # Node ID 9d2f14f723c43e160c0f7ccb938d49181b91e240 # Parent 4bc77d7283ea3251fcac9c8788dcd2cf166ad7b1 Fix condition to check support for imenu. diff -r 4bc77d7283ea -r 9d2f14f723c4 .emacs-my --- a/.emacs-my Tue Nov 13 19:43:23 2012 +0200 +++ b/.emacs-my Tue Nov 13 20:07:21 2012 +0200 @@ -2085,8 +2085,7 @@ (message "imenu") (defun my-imenu-to-menubar () - (when (and (current-local-map) - (keymapp (lookup-key (current-local-map) [menu-bar index]))) + (when imenu-generic-expression (imenu-add-menubar-index) (run-hooks 'menu-bar-update-hook) ))