Fix bug in imenu-after-jump-hook.

This commit is contained in:
Carsten Dominik 2008-07-16 07:05:48 -07:00
parent 9560d4468b
commit 30e5143fd2
1 changed files with 3 additions and 1 deletions

View File

@ -14445,7 +14445,9 @@ Show the heading too, if it is currently invisible."
(eval-after-load "imenu"
'(progn
(add-hook 'imenu-after-jump-hook
(lambda () (org-show-context 'org-goto)))))
(lambda ()
(if (eq major-mode 'org-mode)
(org-show-context 'org-goto))))))
;; Speedbar support