Variable: org-archive-subtree-save-file-p

org-archive-subtree-save-file-p is a customizable variable defined in org-archive.el.gz.

Value

from-org

Documentation

Conditionally save the archive file after archiving a subtree.

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.

Note that, regardless of this value, the archive buffer is never saved when archiving into a location in the current buffer.

This variable was added, or its default value changed, in Org version
9.4.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-archive.el.gz
(defcustom org-archive-subtree-save-file-p 'from-org
  "Conditionally save the archive file after archiving a subtree.
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.

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 "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")))