mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-03 08:30:03 +00:00
Make the point visible when jumping to the mark
* org.el: Advise commands which jump to the mark.
This commit is contained in:
parent
5eee6bbe6f
commit
1ca86f555f
21
lisp/org.el
21
lisp/org.el
@ -24511,6 +24511,27 @@ To get rid of the restriction, use \\[org-agenda-remove-restriction-lock]."
|
||||
(outline-invisible-p)))
|
||||
(org-show-context 'bookmark-jump)))
|
||||
|
||||
(eval-after-load "simple"
|
||||
'(defadvice pop-to-mark-command (after org-make-visible activate)
|
||||
"Make the point visible with `org-show-context'."
|
||||
(org-mark-jump-unhide)))
|
||||
|
||||
(eval-after-load "simple"
|
||||
'(defadvice exchange-point-and-mark (after org-make-visible activate)
|
||||
"Make the point visible with `org-show-context'."
|
||||
(org-mark-jump-unhide)))
|
||||
|
||||
(eval-after-load "simple"
|
||||
'(defadvice pop-global-mark (after org-make-visible activate)
|
||||
"Make the point visible with `org-show-context'."
|
||||
(org-mark-jump-unhide)))
|
||||
|
||||
(defun org-mark-jump-unhide ()
|
||||
"Make the point visible with `org-show-context' after jumping to the mark."
|
||||
(when (and (derived-mode-p 'org-mode)
|
||||
(outline-invisible-p))
|
||||
(org-show-context 'mark-goto)))
|
||||
|
||||
;; Make session.el ignore our circular variable
|
||||
(defvar session-globals-exclude)
|
||||
(eval-after-load "session"
|
||||
|
Loading…
Reference in New Issue
Block a user