mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-27 06:02:52 +00:00
Unhide locations visited by saveplace.el
This commit is contained in:
parent
8c022e1b72
commit
3a9dc0c5ea
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue