org-archive.el 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. ;;; org-archive.el --- Archiving for Org-mode
  2. ;; Copyright (C) 2004-2012 Free Software Foundation, Inc.
  3. ;; Author: Carsten Dominik <carsten at orgmode dot org>
  4. ;; Keywords: outlines, hypermedia, calendar, wp
  5. ;; Homepage: http://orgmode.org
  6. ;;
  7. ;; This file is part of GNU Emacs.
  8. ;;
  9. ;; GNU Emacs is free software: you can redistribute it and/or modify
  10. ;; it under the terms of the GNU General Public License as published by
  11. ;; the Free Software Foundation, either version 3 of the License, or
  12. ;; (at your option) any later version.
  13. ;; GNU Emacs is distributed in the hope that it will be useful,
  14. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;; GNU General Public License for more details.
  17. ;; You should have received a copy of the GNU General Public License
  18. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20. ;;
  21. ;;; Commentary:
  22. ;; This file contains the face definitions for Org.
  23. ;;; Code:
  24. (require 'org)
  25. (declare-function org-inlinetask-remove-END-maybe "org-inlinetask" ())
  26. (declare-function org-datetree-find-date-create "org-datetree" (date &optional keep-restriction))
  27. (defcustom org-archive-default-command 'org-archive-subtree
  28. "The default archiving command."
  29. :group 'org-archive
  30. :type '(choice
  31. (const org-archive-subtree)
  32. (const org-archive-to-archive-sibling)
  33. (const org-archive-set-tag)))
  34. (defcustom org-archive-reversed-order nil
  35. "Non-nil means make the tree first child under the archive heading, not last."
  36. :group 'org-archive
  37. :version "24.1"
  38. :type 'boolean)
  39. (defcustom org-archive-sibling-heading "Archive"
  40. "Name of the local archive sibling that is used to archive entries locally.
  41. Locally means: in the tree, under a sibling.
  42. See `org-archive-to-archive-sibling' for more information."
  43. :group 'org-archive
  44. :type 'string)
  45. (defcustom org-archive-mark-done nil
  46. "Non-nil means mark entries as DONE when they are moved to the archive file.
  47. This can be a string to set the keyword to use. When t, Org-mode will
  48. use the first keyword in its list that means done."
  49. :group 'org-archive
  50. :type '(choice
  51. (const :tag "No" nil)
  52. (const :tag "Yes" t)
  53. (string :tag "Use this keyword")))
  54. (defcustom org-archive-stamp-time t
  55. "Non-nil means add a time stamp to entries moved to an archive file.
  56. This variable is obsolete and has no effect anymore, instead add or remove
  57. `time' from the variable `org-archive-save-context-info'."
  58. :group 'org-archive
  59. :type 'boolean)
  60. (defcustom org-archive-subtree-add-inherited-tags 'infile
  61. "Non-nil means append inherited tags when archiving a subtree."
  62. :group 'org-archive
  63. :version "24.1"
  64. :type '(choice
  65. (const :tag "Never" nil)
  66. (const :tag "When archiving a subtree to the same file" infile)
  67. (const :tag "Always" t)))
  68. (defcustom org-archive-save-context-info '(time file olpath category todo itags)
  69. "Parts of context info that should be stored as properties when archiving.
  70. When a subtree is moved to an archive file, it loses information given by
  71. context, like inherited tags, the category, and possibly also the TODO
  72. state (depending on the variable `org-archive-mark-done').
  73. This variable can be a list of any of the following symbols:
  74. time The time of archiving.
  75. file The file where the entry originates.
  76. ltags The local tags, in the headline of the subtree.
  77. itags The tags the subtree inherits from further up the hierarchy.
  78. todo The pre-archive TODO state.
  79. category The category, taken from file name or #+CATEGORY lines.
  80. olpath The outline path to the item. These are all headlines above
  81. the current item, separated by /, like a file path.
  82. For each symbol present in the list, a property will be created in
  83. the archived entry, with a prefix \"ARCHIVE_\", to remember this
  84. information."
  85. :group 'org-archive
  86. :type '(set :greedy t
  87. (const :tag "Time" time)
  88. (const :tag "File" file)
  89. (const :tag "Category" category)
  90. (const :tag "TODO state" todo)
  91. (const :tag "Priority" priority)
  92. (const :tag "Inherited tags" itags)
  93. (const :tag "Outline path" olpath)
  94. (const :tag "Local tags" ltags)))
  95. (defun org-get-local-archive-location ()
  96. "Get the archive location applicable at point."
  97. (let ((re "^#\\+ARCHIVE:[ \t]+\\(\\S-.*\\S-\\)[ \t]*$")
  98. prop)
  99. (save-excursion
  100. (save-restriction
  101. (widen)
  102. (setq prop (org-entry-get nil "ARCHIVE" 'inherit))
  103. (cond
  104. ((and prop (string-match "\\S-" prop))
  105. prop)
  106. ((or (re-search-backward re nil t)
  107. (re-search-forward re nil t))
  108. (match-string 1))
  109. (t org-archive-location))))))
  110. (defun org-add-archive-files (files)
  111. "Splice the archive files into the list of files.
  112. This implies visiting all these files and finding out what the
  113. archive file is."
  114. (org-uniquify
  115. (apply
  116. 'append
  117. (mapcar
  118. (lambda (f)
  119. (if (not (file-exists-p f))
  120. nil
  121. (with-current-buffer (org-get-agenda-file-buffer f)
  122. (cons f (org-all-archive-files)))))
  123. files))))
  124. (defun org-all-archive-files ()
  125. "Get a list of all archive files used in the current buffer."
  126. (let (file files)
  127. (save-excursion
  128. (save-restriction
  129. (goto-char (point-min))
  130. (while (re-search-forward
  131. "^\\(#\\+\\|[ \t]*:\\)ARCHIVE:[ \t]+\\(.*\\)"
  132. nil t)
  133. (setq file (org-extract-archive-file
  134. (org-match-string-no-properties 2)))
  135. (and file (> (length file) 0) (file-exists-p file)
  136. (add-to-list 'files file)))))
  137. (setq files (nreverse files))
  138. (setq file (org-extract-archive-file))
  139. (and file (> (length file) 0) (file-exists-p file)
  140. (add-to-list 'files file))
  141. files))
  142. (defun org-extract-archive-file (&optional location)
  143. "Extract and expand the file name from archive LOCATION.
  144. if LOCATION is not given, the value of `org-archive-location' is used."
  145. (setq location (or location org-archive-location))
  146. (if (string-match "\\(.*\\)::\\(.*\\)" location)
  147. (if (= (match-beginning 1) (match-end 1))
  148. (buffer-file-name (buffer-base-buffer))
  149. (expand-file-name
  150. (format (match-string 1 location)
  151. (file-name-nondirectory
  152. (buffer-file-name (buffer-base-buffer))))))))
  153. (defun org-extract-archive-heading (&optional location)
  154. "Extract the heading from archive LOCATION.
  155. if LOCATION is not given, the value of `org-archive-location' is used."
  156. (setq location (or location org-archive-location))
  157. (if (string-match "\\(.*\\)::\\(.*\\)" location)
  158. (format (match-string 2 location)
  159. (file-name-nondirectory
  160. (buffer-file-name (buffer-base-buffer))))))
  161. (defun org-archive-subtree (&optional find-done)
  162. "Move the current subtree to the archive.
  163. The archive can be a certain top-level heading in the current file, or in
  164. a different file. The tree will be moved to that location, the subtree
  165. heading be marked DONE, and the current time will be added.
  166. When called with prefix argument FIND-DONE, find whole trees without any
  167. open TODO items and archive them (after getting confirmation from the user).
  168. If the cursor is not at a headline when this command is called, try all level
  169. 1 trees. If the cursor is on a headline, only try the direct children of
  170. this heading."
  171. (interactive "P")
  172. (if (and (org-region-active-p) org-loop-over-headlines-in-active-region)
  173. (let ((cl (if (eq org-loop-over-headlines-in-active-region 'start-level)
  174. 'region-start-level 'region))
  175. org-loop-over-headlines-in-active-region)
  176. (org-map-entries
  177. `(progn (setq org-map-continue-from (progn (org-back-to-heading) (point)))
  178. (org-archive-subtree ,find-done))
  179. org-loop-over-headlines-in-active-region
  180. cl (if (outline-invisible-p) (org-end-of-subtree nil t))))
  181. (if find-done
  182. (org-archive-all-done)
  183. ;; Save all relevant TODO keyword-relatex variables
  184. (let ((tr-org-todo-line-regexp org-todo-line-regexp) ; keep despite compiler
  185. (tr-org-todo-keywords-1 org-todo-keywords-1)
  186. (tr-org-todo-kwd-alist org-todo-kwd-alist)
  187. (tr-org-done-keywords org-done-keywords)
  188. (tr-org-todo-regexp org-todo-regexp)
  189. (tr-org-todo-line-regexp org-todo-line-regexp)
  190. (tr-org-odd-levels-only org-odd-levels-only)
  191. (this-buffer (current-buffer))
  192. ;; start of variables that will be used for saving context
  193. ;; The compiler complains about them - keep them anyway!
  194. (file (abbreviate-file-name
  195. (or (buffer-file-name (buffer-base-buffer))
  196. (error "No file associated to buffer"))))
  197. (olpath (mapconcat 'identity (org-get-outline-path) "/"))
  198. (time (format-time-string
  199. (substring (cdr org-time-stamp-formats) 1 -1)
  200. (current-time)))
  201. category todo priority ltags itags atags
  202. ;; end of variables that will be used for saving context
  203. location afile heading buffer level newfile-p infile-p visiting
  204. datetree-date datetree-subheading-p)
  205. ;; Find the local archive location
  206. (setq location (org-get-local-archive-location)
  207. afile (org-extract-archive-file location)
  208. heading (org-extract-archive-heading location)
  209. infile-p (equal file (abbreviate-file-name (or afile ""))))
  210. (unless afile
  211. (error "Invalid `org-archive-location'"))
  212. (if (> (length afile) 0)
  213. (setq newfile-p (not (file-exists-p afile))
  214. visiting (find-buffer-visiting afile)
  215. buffer (or visiting (find-file-noselect afile)))
  216. (setq buffer (current-buffer)))
  217. (unless buffer
  218. (error "Cannot access file \"%s\"" afile))
  219. (when (string-match "\\`datetree/" heading)
  220. ;; Replace with ***, to represent the 3 levels of headings the
  221. ;; datetree has.
  222. (setq heading (replace-regexp-in-string "\\`datetree/" "***" heading))
  223. (setq datetree-subheading-p (> (length heading) 3))
  224. (setq datetree-date (org-date-to-gregorian
  225. (or (org-entry-get nil "CLOSED" t) time))))
  226. (if (and (> (length heading) 0)
  227. (string-match "^\\*+" heading))
  228. (setq level (match-end 0))
  229. (setq heading nil level 0))
  230. (save-excursion
  231. (org-back-to-heading t)
  232. ;; Get context information that will be lost by moving the tree
  233. (setq category (org-get-category nil 'force-refresh)
  234. todo (and (looking-at org-todo-line-regexp)
  235. (match-string 2))
  236. priority (org-get-priority
  237. (if (match-end 3) (match-string 3) ""))
  238. ltags (org-get-tags)
  239. itags (org-delete-all ltags (org-get-tags-at))
  240. atags (org-get-tags-at))
  241. (setq ltags (mapconcat 'identity ltags " ")
  242. itags (mapconcat 'identity itags " "))
  243. ;; We first only copy, in case something goes wrong
  244. ;; we need to protect `this-command', to avoid kill-region sets it,
  245. ;; which would lead to duplication of subtrees
  246. (let (this-command) (org-copy-subtree 1 nil t))
  247. (set-buffer buffer)
  248. ;; Enforce org-mode for the archive buffer
  249. (if (not (derived-mode-p 'org-mode))
  250. ;; Force the mode for future visits.
  251. (let ((org-insert-mode-line-in-empty-file t)
  252. (org-inhibit-startup t))
  253. (call-interactively 'org-mode)))
  254. (when newfile-p
  255. (goto-char (point-max))
  256. (insert (format "\nArchived entries from file %s\n\n"
  257. (buffer-file-name this-buffer))))
  258. (when datetree-date
  259. (require 'org-datetree)
  260. (org-datetree-find-date-create datetree-date)
  261. (org-narrow-to-subtree))
  262. ;; Force the TODO keywords of the original buffer
  263. (let ((org-todo-line-regexp tr-org-todo-line-regexp)
  264. (org-todo-keywords-1 tr-org-todo-keywords-1)
  265. (org-todo-kwd-alist tr-org-todo-kwd-alist)
  266. (org-done-keywords tr-org-done-keywords)
  267. (org-todo-regexp tr-org-todo-regexp)
  268. (org-todo-line-regexp tr-org-todo-line-regexp)
  269. (org-odd-levels-only
  270. (if (local-variable-p 'org-odd-levels-only (current-buffer))
  271. org-odd-levels-only
  272. tr-org-odd-levels-only)))
  273. (goto-char (point-min))
  274. (show-all)
  275. (if (and heading (not (and datetree-date (not datetree-subheading-p))))
  276. (progn
  277. (if (re-search-forward
  278. (concat "^" (regexp-quote heading)
  279. (org-re "[ \t]*\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*\\($\\|\r\\)"))
  280. nil t)
  281. (goto-char (match-end 0))
  282. ;; Heading not found, just insert it at the end
  283. (goto-char (point-max))
  284. (or (bolp) (insert "\n"))
  285. ;; datetrees don't need too much spacing
  286. (insert (if datetree-date "" "\n") heading "\n")
  287. (end-of-line 0))
  288. ;; Make the subtree visible
  289. (show-subtree)
  290. (if org-archive-reversed-order
  291. (progn
  292. (org-back-to-heading t)
  293. (outline-next-heading))
  294. (org-end-of-subtree t))
  295. (skip-chars-backward " \t\r\n")
  296. (and (looking-at "[ \t\r\n]*")
  297. ;; datetree archives don't need so much spacing.
  298. (replace-match (if datetree-date "\n" "\n\n"))))
  299. ;; No specific heading, just go to end of file.
  300. (goto-char (point-max)) (unless datetree-date (insert "\n")))
  301. ;; Paste
  302. (org-paste-subtree (org-get-valid-level level (and heading 1)))
  303. ;; Shall we append inherited tags?
  304. (and itags
  305. (or (and (eq org-archive-subtree-add-inherited-tags 'infile)
  306. infile-p)
  307. (eq org-archive-subtree-add-inherited-tags t))
  308. (org-set-tags-to atags))
  309. ;; Mark the entry as done
  310. (when (and org-archive-mark-done
  311. (looking-at org-todo-line-regexp)
  312. (or (not (match-end 2))
  313. (not (member (match-string 2) org-done-keywords))))
  314. (let (org-log-done org-todo-log-states)
  315. (org-todo
  316. (car (or (member org-archive-mark-done org-done-keywords)
  317. org-done-keywords)))))
  318. ;; Add the context info
  319. (when org-archive-save-context-info
  320. (let ((l org-archive-save-context-info) e n v)
  321. (while (setq e (pop l))
  322. (when (and (setq v (symbol-value e))
  323. (stringp v) (string-match "\\S-" v))
  324. (setq n (concat "ARCHIVE_" (upcase (symbol-name e))))
  325. (org-entry-put (point) n v)))))
  326. (widen)
  327. ;; Save and kill the buffer, if it is not the same buffer.
  328. (when (not (eq this-buffer buffer))
  329. (save-buffer))))
  330. ;; Here we are back in the original buffer. Everything seems to have
  331. ;; worked. So now cut the tree and finish up.
  332. (let (this-command) (org-cut-subtree))
  333. (when (featurep 'org-inlinetask)
  334. (org-inlinetask-remove-END-maybe))
  335. (setq org-markers-to-move nil)
  336. (message "Subtree archived %s"
  337. (if (eq this-buffer buffer)
  338. (concat "under heading: " heading)
  339. (concat "in file: " (abbreviate-file-name afile))))))
  340. (org-reveal)
  341. (if (looking-at "^[ \t]*$")
  342. (outline-next-visible-heading 1))))
  343. (defun org-archive-to-archive-sibling ()
  344. "Archive the current heading by moving it under the archive sibling.
  345. The archive sibling is a sibling of the heading with the heading name
  346. `org-archive-sibling-heading' and an `org-archive-tag' tag. If this
  347. sibling does not exist, it will be created at the end of the subtree."
  348. (interactive)
  349. (if (and (org-region-active-p) org-loop-over-headlines-in-active-region)
  350. (let ((cl (when (eq org-loop-over-headlines-in-active-region 'start-level)
  351. 'region-start-level 'region))
  352. org-loop-over-headlines-in-active-region)
  353. (org-map-entries
  354. '(progn (setq org-map-continue-from
  355. (progn (org-back-to-heading)
  356. (if (looking-at (concat "^.*:" org-archive-tag ":.*$"))
  357. (org-end-of-subtree t)
  358. (point))))
  359. (when (org-at-heading-p)
  360. (org-archive-to-archive-sibling)))
  361. org-loop-over-headlines-in-active-region
  362. cl (if (outline-invisible-p) (org-end-of-subtree nil t))))
  363. (save-restriction
  364. (widen)
  365. (let (b e pos leader level)
  366. (org-back-to-heading t)
  367. (looking-at org-outline-regexp)
  368. (setq leader (match-string 0)
  369. level (funcall outline-level))
  370. (setq pos (point))
  371. (condition-case nil
  372. (outline-up-heading 1 t)
  373. (error (setq e (point-max)) (goto-char (point-min))))
  374. (setq b (point))
  375. (unless e
  376. (condition-case nil
  377. (org-end-of-subtree t t)
  378. (error (goto-char (point-max))))
  379. (setq e (point)))
  380. (goto-char b)
  381. (unless (re-search-forward
  382. (concat "^" (regexp-quote leader)
  383. "[ \t]*"
  384. org-archive-sibling-heading
  385. "[ \t]*:"
  386. org-archive-tag ":") e t)
  387. (goto-char e)
  388. (or (bolp) (newline))
  389. (insert leader org-archive-sibling-heading "\n")
  390. (beginning-of-line 0)
  391. (org-toggle-tag org-archive-tag 'on))
  392. (beginning-of-line 1)
  393. (if org-archive-reversed-order
  394. (outline-next-heading)
  395. (org-end-of-subtree t t))
  396. (save-excursion
  397. (goto-char pos)
  398. (let ((this-command this-command)) (org-cut-subtree)))
  399. (org-paste-subtree (org-get-valid-level level 1))
  400. (org-set-property
  401. "ARCHIVE_TIME"
  402. (format-time-string
  403. (substring (cdr org-time-stamp-formats) 1 -1)
  404. (current-time)))
  405. (outline-up-heading 1 t)
  406. (hide-subtree)
  407. (org-cycle-show-empty-lines 'folded)
  408. (goto-char pos)))
  409. (org-reveal)
  410. (if (looking-at "^[ \t]*$")
  411. (outline-next-visible-heading 1))))
  412. (defun org-archive-all-done (&optional tag)
  413. "Archive sublevels of the current tree without open TODO items.
  414. If the cursor is not on a headline, try all level 1 trees. If
  415. it is on a headline, try all direct children.
  416. When TAG is non-nil, don't move trees, but mark them with the ARCHIVE tag."
  417. (let ((re org-not-done-heading-regexp) re1
  418. (rea (concat ".*:" org-archive-tag ":"))
  419. (begm (make-marker))
  420. (endm (make-marker))
  421. (question (if tag "Set ARCHIVE tag (no open TODO items)? "
  422. "Move subtree to archive (no open TODO items)? "))
  423. beg end (cntarch 0))
  424. (if (org-at-heading-p)
  425. (progn
  426. (setq re1 (concat "^" (regexp-quote
  427. (make-string
  428. (+ (- (match-end 0) (match-beginning 0) 1)
  429. (if org-odd-levels-only 2 1))
  430. ?*))
  431. " "))
  432. (move-marker begm (point))
  433. (move-marker endm (org-end-of-subtree t)))
  434. (setq re1 "^* ")
  435. (move-marker begm (point-min))
  436. (move-marker endm (point-max)))
  437. (save-excursion
  438. (goto-char begm)
  439. (while (re-search-forward re1 endm t)
  440. (setq beg (match-beginning 0)
  441. end (save-excursion (org-end-of-subtree t) (point)))
  442. (goto-char beg)
  443. (if (re-search-forward re end t)
  444. (goto-char end)
  445. (goto-char beg)
  446. (if (and (or (not tag) (not (looking-at rea)))
  447. (y-or-n-p question))
  448. (progn
  449. (if tag
  450. (org-toggle-tag org-archive-tag 'on)
  451. (org-archive-subtree))
  452. (setq cntarch (1+ cntarch)))
  453. (goto-char end)))))
  454. (message "%d trees archived" cntarch)))
  455. (defun org-toggle-archive-tag (&optional find-done)
  456. "Toggle the archive tag for the current headline.
  457. With prefix ARG, check all children of current headline and offer tagging
  458. the children that do not contain any open TODO items."
  459. (interactive "P")
  460. (if (and (org-region-active-p) org-loop-over-headlines-in-active-region)
  461. (let ((cl (if (eq org-loop-over-headlines-in-active-region 'start-level)
  462. 'region-start-level 'region))
  463. org-loop-over-headlines-in-active-region)
  464. (org-map-entries
  465. `(org-toggle-archive-tag ,find-done)
  466. org-loop-over-headlines-in-active-region
  467. cl (if (outline-invisible-p) (org-end-of-subtree nil t))))
  468. (if find-done
  469. (org-archive-all-done 'tag)
  470. (let (set)
  471. (save-excursion
  472. (org-back-to-heading t)
  473. (setq set (org-toggle-tag org-archive-tag))
  474. (when set (hide-subtree)))
  475. (and set (beginning-of-line 1))
  476. (message "Subtree %s" (if set "archived" "unarchived"))))))
  477. (defun org-archive-set-tag ()
  478. "Set the ARCHIVE tag."
  479. (interactive)
  480. (if (and (org-region-active-p) org-loop-over-headlines-in-active-region)
  481. (let ((cl (if (eq org-loop-over-headlines-in-active-region 'start-level)
  482. 'region-start-level 'region))
  483. org-loop-over-headlines-in-active-region)
  484. (org-map-entries
  485. 'org-archive-set-tag
  486. org-loop-over-headlines-in-active-region
  487. cl (if (outline-invisible-p) (org-end-of-subtree nil t))))
  488. (org-toggle-tag org-archive-tag 'on)))
  489. ;;;###autoload
  490. (defun org-archive-subtree-default ()
  491. "Archive the current subtree with the default command.
  492. This command is set with the variable `org-archive-default-command'."
  493. (interactive)
  494. (call-interactively org-archive-default-command))
  495. ;;;###autoload
  496. (defun org-archive-subtree-default-with-confirmation ()
  497. "Archive the current subtree with the default command.
  498. This command is set with the variable `org-archive-default-command'."
  499. (interactive)
  500. (if (y-or-n-p "Archive this subtree or entry? ")
  501. (call-interactively org-archive-default-command)
  502. (error "Abort")))
  503. (provide 'org-archive)
  504. ;; Local variables:
  505. ;; generated-autoload-file: "org-loaddefs.el"
  506. ;; End:
  507. ;;; org-archive.el ends here