Prechádzať zdrojové kódy

Fix bug in speedbar interaction.

Org was trying to show context also in non-org-mode buffers.

Reported by Rolf Unger.
Carsten Dominik 16 rokov pred
rodič
commit
68d15e53cc
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      lisp/org.el

+ 1 - 1
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