Prechádzať zdrojové kódy

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>
Kyle Meyer 5 rokov pred
rodič
commit
60adefb103
1 zmenil súbory, kde vykonal 8 pridanie a 5 odobranie
  1. 8 5
      lisp/org-archive.el

+ 8 - 5
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.