Browse Source

Fix bug in imenu-after-jump-hook.

Carsten Dominik 17 năm trước cách đây
mục cha
commit
30e5143fd2
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      lisp/org.el

+ 3 - 1
lisp/org.el

@@ -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