summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-04-07 22:39:12 -0400
committerKyle Meyer <kyle@kyleam.com>2020-04-07 22:48:06 -0400
commit60adefb10328f71036beffa7e8808ad9da9b8045 (patch)
treeb11cda31a8042487a06560a7a5882d49ff71c05a
parent374cb4b4153fe353ce21310bbfada3697e0868c0 (diff)
downloadorg-mode-60adefb10328f71036beffa7e8808ad9da9b8045.tar.gz
org-archive-subtree-save-file-p: Tweak :tag text
* lisp/org-archive.el (org-archive-subtree-save-file-p): Minor edits to :tag text. The main thing change is to avoid saying "always" save the archive buffer because it's not saved when the current buffer is the archive buffer. Also, mention this in the docstring. Reported-by: Nicholas Vollmer <iarchivedmywholelife@gmail.com> <87zhcybjz5.fsf@gmail.com>
-rw-r--r--lisp/org-archive.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/org-archive.el b/lisp/org-archive.el
index 3246b2b..7be1ed8 100644
--- a/lisp/org-archive.el
+++ b/lisp/org-archive.el
@@ -98,14 +98,17 @@ This variable can be any of the following symbols:
t saves in all cases.
`from-org' prevents saving from an agenda-view.
`from-agenda' saves only when the archive is initiated from an agenda-view.
-nil prevents saving in all cases."
+nil prevents saving in all cases.
+
+Note that, regardless of this value, the archive buffer is never
+saved when archiving into a location in the current buffer."
:group 'org-archive
:package-version '(Org . "9.4")
:type '(choice
- (const :tag "Always save the archive buffer" t)
- (const :tag "Save target buffer when archiving from an agenda view" from-agenda)
- (const :tag "Save target buffer when archiving from an org buffer" from-org)
- (const :tag "Do not save the archive buffer")))
+ (const :tag "Save archive buffer" t)
+ (const :tag "Save when archiving from agenda" from-agenda)
+ (const :tag "Save when archiving from an Org buffer" from-org)
+ (const :tag "Do not save")))
(defcustom org-archive-save-context-info '(time file olpath category todo itags)
"Parts of context info that should be stored as properties when archiving.