Hi Carsten et al, When I have multiple org files archive to a single file, as in ,---- | (setq org-archive-location "~/2009.org_archive::") `---- I find that including archive files in the agenda display (C-u v) results in multiple identical entries in the agenda display (in my case, when doing a word search). In fact, the number of duplicate lines exactly matches the number of agenda files that archive to that file (in my case 16). Is the agenda function perhaps searching the archive file once for each of the agenda files and then displaying the results as separate lines? By the way, I find the same thing happens when I use the example in the customize instructions: ,---- | "~/org/archive.org::" | Archive in file ~/org/archive.org (absolute path), as top-level trees. `---- Thanks, Matt
Hi Matt,
indeed, this is a bug. Fixed now, thanks for the report.
- Carsten
On Jan 10, 2009, at 6:55 PM, Matthew Lundin wrote:
>
> Hi Carsten et al,
>
> When I have multiple org files archive to a single file, as in
>
> ,----
> | (setq org-archive-location "~/2009.org_archive::")
> `----
>
> I find that including archive files in the agenda display (C-u v)
> results in multiple identical entries in the agenda display (in my
> case, when doing a word search).
>
> In fact, the number of duplicate lines exactly matches the number of
> agenda files that archive to that file (in my case 16). Is the agenda
> function perhaps searching the archive file once for each of the
> agenda files and then displaying the results as separate lines?
>
> By the way, I find the same thing happens when I use the example in
> the customize instructions:
>
> ,----
> | "~/org/archive.org::"
> | Archive in file ~/org/archive.org (absolute path), as top-level
> trees.
> `----
>
> Thanks,
> Matt
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Hi Carsten,
Carsten Dominik <dominik@science.uva.nl> writes:
> Hi Matt,
>
> indeed, this is a bug. Fixed now, thanks for the report.
>
> - Carsten
Thanks for fixing this.
I had one more question/request concerning archives. Would it perhaps
be possible to enable the file name substitution (i.e., "%s") after
the double semi-colon, so that the file name can be used as a headline
within the archive file? My ideal setup would be to have a single
archive file for each year's work, with headlines named according to
the original files of the archived subtrees.
E.g.,
,----
| * finances.org
| ** archived item
| * notes.org
| ** archived item
| ** another archived item
`----
Thanks,
Matt
Hi Carsten, I should clarify a couple things in the previous post: Matthew Lundin <mdl@imapmail.org> writes: > > I had one more question/request concerning archives. I'm specifically referring to org-archive-location here. > Would it perhaps be possible to enable the file name substitution > (i.e., "%s") after the double semi-colon, so that the file name can > be used as a headline within the archive file? This should read "after the double colon". - Matt
Hi Carsten, Matthew Lundin <mdl@imapmail.org> writes: > > I had one more question/request concerning archives. > Would it perhaps be possible to enable the file name substitution > (i.e., "%s") after the double semi-colon, so that the file name can > be used as a headline within the archive file? Sorry to follow up with one more post. Though I confess that I'm on shaky ground here, I seem to have been able to accomplish the desired behavior (i.e., a single yearly archive file with headings showing the original file name) by advising the function org-archive-subtree. ,---- | (setq org-archive-location (concat "~/archive/" (format-time-string "%Y") ".org::")) | | (defadvice org-archive-subtree (around my-org-archive-subtree-around) | (let ((org-archive-location (concat "~/archive/" (format-time-string "%Y") ".org::* "(buffer-name)))) | ad-do-it)) | | (ad-activate 'org-archive-subtree) `---- If anyone sees anything blatantly wrong or hopelessly naive about this setup, feel free to let me know. If it looks O.K., then please feel free to disregard my previous request about changing the behavior of org-archive-location. Best, Matt
On Jan 11, 2009, at 4:08 PM, Matthew Lundin wrote: > > Hi Carsten, > > Carsten Dominik <dominik@science.uva.nl> writes: > >> Hi Matt, >> >> indeed, this is a bug. Fixed now, thanks for the report. >> >> - Carsten > > Thanks for fixing this. > > I had one more question/request concerning archives. Would it perhaps > be possible to enable the file name substitution (i.e., "%s") after > the double semi-colon, so that the file name can be used as a headline > within the archive file? My ideal setup would be to have a single > archive file for each year's work, with headlines named according to > the original files of the archived subtrees. This is now implemented. Thanks for the idea. - Carsten > > > E.g., > > ,---- > | * finances.org > | ** archived item > | * notes.org > | ** archived item > | ** another archived item > `---- > > Thanks, > > Matt > >
Carsten Dominik <dominik@science.uva.nl> writes:
> On Jan 11, 2009, at 4:08 PM, Matthew Lundin wrote:
>>
>> I had one more question/request concerning archives. Would it perhaps
>> be possible to enable the file name substitution (i.e., "%s") after
>> the double semi-colon, so that the file name can be used as a headline
>> within the archive file? My ideal setup would be to have a single
>> archive file for each year's work, with headlines named according to
>> the original files of the archived subtrees.
>
>
> This is now implemented. Thanks for the idea.
>
> - Carsten
Thanks!
- Matt
[-- Attachment #1.1: Type: text/plain, Size: 947 bytes --] Hi Matt, sure, I can see how this will be useful when pointing a number of files to the same archive. I have implemented this. - Carsten On Jan 11, 2009, at 4:08 PM, Matthew Lundin wrote: > > Hi Carsten, > > Carsten Dominik <dominik@science.uva.nl> writes: > >> Hi Matt, >> >> indeed, this is a bug. Fixed now, thanks for the report. >> >> - Carsten > > Thanks for fixing this. > > I had one more question/request concerning archives. Would it perhaps > be possible to enable the file name substitution (i.e., "%s") after > the double semi-colon, so that the file name can be used as a headline > within the archive file? My ideal setup would be to have a single > archive file for each year's work, with headlines named according to > the original files of the archived subtrees. > > E.g., > > ,---- > | * finances.org > | ** archived item > | * notes.org > | ** archived item > | ** another archived item > `---- > > Thanks, > > Matt > > [-- Attachment #1.2: Type: text/html, Size: 1555 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode