* org-get-local-archive-location
@ 2010-09-10 17:20 Ilya Shlyakhter
2010-09-12 17:15 ` org-get-local-archive-location David Maus
0 siblings, 1 reply; 2+ messages in thread
From: Ilya Shlyakhter @ 2010-09-10 17:20 UTC (permalink / raw)
To: emacs-orgmode
In the routine org-get-local-archive-location, is the call to
(match-string 1) at the end extraneous?
Seems like you want to return org-archive-location in this case.
(defun org-get-local-archive-location ()
"Get the archive location applicable at point."
(let ((re "^#\\+ARCHIVE:[ \t]+\\(\\S-.*\\S-\\)[ \t]*$")
prop)
(save-excursion
(save-restriction
(widen)
(setq prop (org-entry-get nil "ARCHIVE" 'inherit))
(cond
((and prop (string-match "\\S-" prop))
prop)
((or (re-search-backward re nil t)
(re-search-forward re nil t))
(match-string 1))
(t org-archive-location (match-string 1)))))))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-12 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-10 17:20 org-get-local-archive-location Ilya Shlyakhter
2010-09-12 17:15 ` org-get-local-archive-location David Maus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).