From f6fa33eceb5b8c9318dba719a20f6ce5b719140f Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 5 Jan 2009 13:18:28 +0100 Subject: [PATCH] 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. --- lisp/ChangeLog | 3 +++ lisp/org.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 371866c6a..15bad2dab 100755 --- a/lisp/ChangeLog +++ b/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 * org-w3m.el (org-w3m): New customization group. diff --git a/lisp/org.el b/lisp/org.el index 45a92aa3b..d4360efa9 100644 --- a/lisp/org.el +++ b/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"))))