Archiving: Allow file name interpolation in target headline
commit74a4244db189fd476d61e732aef00bf4f2fbbdf2
authorCarsten Dominik <carsten.dominik@gmail.com>
Sun, 11 Jan 2009 20:23:10 +0000 (11 21:23 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sun, 11 Jan 2009 20:51:53 +0000 (11 21:51 +0100)
tree3f8057fe447416eb31911ff4b46f859ab9959d63
parent5a8f775d79f4089d03968dd16ba7d073b7c9f142
Archiving: Allow file name interpolation in target headline

Matt Lundin 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? 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
    `----

This commit does implement this request.
doc/org.texi
lisp/ChangeLog
lisp/org-archive.el
lisp/org.el