changeset 99690:1c73544f73bf

* org.el ("speedbar"): Only show context if the file really is an org-mode buffer.
author Carsten Dominik <dominik@science.uva.nl>
date Tue, 18 Nov 2008 15:07:35 +0000
parents 01d86c5bc5d6
children 9df07af84d04
files lisp/org/org.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/org/org.el	Tue Nov 18 15:07:23 2008 +0000
+++ b/lisp/org/org.el	Tue Nov 18 15:07:35 2008 +0000
@@ -14407,7 +14407,7 @@
      (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