emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC] Could we get rid of Org specific "mark ring"


From: Samuel Wales
Subject: Re: [O] [RFC] Could we get rid of Org specific "mark ring"
Date: Tue, 30 Jan 2018 15:33:01 -0700

minor followup to prev post.

here is a place where org does not but ime is useful to push the mark.
org does similarly when you follow a link, for example.

i believe this should be done to the local and global mark rings.

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 98f6034..d410d3a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8640,6 +8640,7 @@ displayed Org file fills the frame."
       (pop-to-buffer-same-window buffer)
       (when delete-other-windows (delete-other-windows))
       (widen)
+      (org-mark-ring-push)
       (goto-char pos)
       (when (derived-mode-p 'org-mode)
        (org-show-context 'agenda)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]