Explorar o código

Fix bug in imenu-after-jump-hook.

Carsten Dominik %!s(int64=17) %!d(string=hai) anos
pai
achega
30e5143fd2
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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