]> git.eshelyaron.com Git - emacs.git/commitdiff
* org.el ("speedbar"): Only show context if the file really is an
authorCarsten Dominik <dominik@science.uva.nl>
Tue, 18 Nov 2008 15:07:35 +0000 (15:07 +0000)
committerCarsten Dominik <dominik@science.uva.nl>
Tue, 18 Nov 2008 15:07:35 +0000 (15:07 +0000)
org-mode buffer.

lisp/org/org.el

index 70f22e27813332e43b7af207c648d26a3bf649d4..4521c7c334fe29ca73e14742c3f55013470c8418 100644 (file)
@@ -14407,7 +14407,7 @@ To get rid of the restriction, use \\[org-agenda-remove-restriction-lock]."
      (define-key speedbar-file-key-map ">" 'org-agenda-remove-restriction-lock)
      (define-key speedbar-file-key-map "\C-c\C-x>" 'org-agenda-remove-restriction-lock)
      (add-hook 'speedbar-visiting-tag-hook
-              (lambda () (org-show-context 'org-goto)))))
+              (lambda () (and (org-mode-p) (org-show-context 'org-goto))))))
 
 
 ;;; Fixes and Hacks for problems with other packages