From 1ba1f458d8fe1ef67b32dc3ce414d9d36fa0dff1 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 18 Nov 2008 15:07:35 +0000 Subject: [PATCH] * org.el ("speedbar"): Only show context if the file really is an org-mode buffer. --- lisp/org/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2