From 68d15e53cc3cbf098bf5282c530849064c42f129 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 18 Nov 2008 16:09:11 +0100 Subject: [PATCH] Fix bug in speedbar interaction. Org was trying to show context also in non-org-mode buffers. Reported by Rolf Unger. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 6900de8e6..b660f96f7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14510,7 +14510,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.11.4.GIT