Pārlūkot izejas kodu

Remember: Show context when jumping to previous storage location

When using "C-u C-u M-x org-remember RET" in order to jump to the last
storage location, the code failed to show the matching entry.  This
commit makes sure that at least the headline of the last remember note
is made visible.
Carsten Dominik 17 gadi atpakaļ
vecāks
revīzija
f6fa33eceb
2 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 3 0
      lisp/ChangeLog
  2. 2 1
      lisp/org.el

+ 3 - 0
lisp/ChangeLog

@@ -5,6 +5,9 @@
 	work correctly when the "Footnotes" headline is the last line in
 	the buffer.
 
+	* org.el (org-goto-marker-or-bmk): Expose context after jumping to
+	the location.
+
 2009-01-04  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-w3m.el (org-w3m): New customization group.

+ 2 - 1
lisp/org.el

@@ -13646,7 +13646,8 @@ With optional NODE, go directly to that node."
 	(switch-to-buffer (marker-buffer marker))
 	(if (or (> marker (point-max)) (< marker (point-min)))
 	    (widen))
-	(goto-char marker))
+	(goto-char marker)
+	(org-show-context 'org-goto))
     (if bookmark
 	(bookmark-jump bookmark)
       (error "Cannot find location"))))