* 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
* Re: org-get-local-archive-location
2010-09-10 17:20 org-get-local-archive-location Ilya Shlyakhter
@ 2010-09-12 17:15 ` David Maus
0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2010-09-12 17:15 UTC (permalink / raw)
To: Ilya Shlyakhter; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]
Ilya Shlyakhter wrote:
>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.
Yes, this is now fixed in master.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ 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).