0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-17 05:36:26 +00:00

Unhide locations visited by saveplace.el

This commit is contained in:
Carsten Dominik 2008-10-27 09:41:37 +01:00
parent 8c022e1b72
commit 3a9dc0c5ea
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2008-10-27 Carsten Dominik <dominik@science.uva.nl>
* org.el ("saveplace"): If saveplace puts point into an invisible
location, make it visible.
* org-publish.el (org-publish-get-base-files-1): Deal correctly
with broken symlinks

View file

@ -14257,6 +14257,12 @@ To get rid of the restriction, use \\[org-agenda-remove-restriction-lock]."
"Make the position visible."
(org-bookmark-jump-unhide))))
;; Make sure saveplace show the location if it was hidden
(eval-after-load "saveplace"
'(defadvice save-place-find-file-hook (after org-make-visible activate)
"Make the position visible."
(org-bookmark-jump-unhide)))
(defun org-bookmark-jump-unhide ()
"Unhide the current position, to show the bookmark location."
(and (org-mode-p)