Function: org-mark-ring-goto
org-mark-ring-goto is an interactive and byte-compiled function
defined in org.el.gz.
Signature
(org-mark-ring-goto &optional N)
Documentation
Jump to the previous position in the mark ring.
With prefix arg N, jump back that many stored positions. When called several times in succession, walk through the entire ring. Org mode commands jumping to a different position in the current file, or to another Org file, automatically push the old position onto the ring.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-mark-ring-goto (&optional n)
"Jump to the previous position in the mark ring.
With prefix arg N, jump back that many stored positions. When
called several times in succession, walk through the entire ring.
Org mode commands jumping to a different position in the current file,
or to another Org file, automatically push the old position onto the ring."
(interactive "p")
(let (p m)
(if (eq last-command this-command)
(setq p (nthcdr n (or org-mark-ring-last-goto org-mark-ring)))
(setq p org-mark-ring))
(setq org-mark-ring-last-goto p)
(setq m (car p))
(pop-to-buffer-same-window (marker-buffer m))
(goto-char m)
(when (or (org-invisible-p) (org-invisible-p2)) (org-fold-show-context 'mark-goto))))