From: Carsten Dominik Date: Tue, 18 Nov 2008 15:07:35 +0000 (+0000) Subject: * org.el ("speedbar"): Only show context if the file really is an X-Git-Tag: emacs-pretest-23.0.90~1720 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ba1f458d8fe1ef67b32dc3ce414d9d36fa0dff1;p=emacs.git * org.el ("speedbar"): Only show context if the file really is an org-mode buffer. --- diff --git a/lisp/org/org.el b/lisp/org/org.el index 70f22e27813..4521c7c334f 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -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