summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleh Krehel <ohwoeowho@gmail.com>2014-03-07 14:09:16 +0100
committerOleh Krehel <ohwoeowho@gmail.com>2014-03-07 14:09:16 +0100
commit367780d133615a25c553825fcc134304507cb387 (patch)
tree13b4ce0724c6c715e0e01a27397b9008b421d995
parentec33c0cf9ebd31cee275abdde8784046eaa2c33c (diff)
downloadorg-mode-367780d133615a25c553825fcc134304507cb387.tar.gz
Enforce `org-bookmark-names-plist'
* lisp/org-capture.el (org-capture-goto-last-stored): Use `org-bookmark-names-plist'. * lisp/org.el (org-refile-goto-last-stored): Use `org-bookmark-names-plist'.
-rw-r--r--lisp/org-capture.el3
-rw-r--r--lisp/org.el2
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 31a143e..5822c2f 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -811,7 +811,8 @@ already gone. Any prefix argument will be passed to the refile command."
"Go to the location where the last capture note was stored."
(interactive)
(org-goto-marker-or-bmk org-capture-last-stored-marker
- "org-capture-last-stored")
+ (plist-get org-bookmark-names-plist
+ :last-capture))
(message "This is the last note stored by a capture process"))
;;; Supporting functions for handling the process
diff --git a/lisp/org.el b/lisp/org.el
index 6f4b853..2f3820f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11746,7 +11746,7 @@ prefix argument (`C-u C-u C-u C-c C-w')."
(defun org-refile-goto-last-stored ()
"Go to the location where the last refile was stored."
(interactive)
- (bookmark-jump "org-refile-last-stored")
+ (bookmark-jump (plist-get org-bookmark-names-plist :last-refile))
(message "This is the location of the last refile"))
(defun org-refile--get-location (refloc tbl)