Variable: denote-rename-confirmations

denote-rename-confirmations is a customizable variable defined in denote.el.

Value

(rewrite-front-matter modify-file-name)

Documentation

Make renaming commands prompt for confirmations.

This affects the behaviour of renaming commands. The value is either nil, in which case no confirmation is ever requested, or a list of symbols among the following:

- modify-file-name means that renaming commands will ask for
  confirmation before modifying the file name.

- rewrite-front-matter means that renaming commands will ask for
  confirmation before rewritting the front matter.

- add-front-matter means that renaming commands will ask for
  confirmation before adding new front matter to the file.

The default behaviour of the denote-rename-file command (and others like it) is to ask for an affirmative answer as a final step before changing the file name and, where relevant, inserting or updating the corresponding front matter.

Specialized commands that build on top of denote-rename-file (or related) may internally bind this user option to a non-nil value in order to perform their operation (e.g. denote-dired-rename-files goes through each marked Dired file, prompting for the information to use, but carries out the renaming without asking for confirmation).

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defcustom denote-rename-confirmations '(rewrite-front-matter modify-file-name)
  "Make renaming commands prompt for confirmations.

This affects the behaviour of renaming commands.  The value is either
nil, in which case no confirmation is ever requested, or a list of
symbols among the following:

- `modify-file-name' means that renaming commands will ask for
  confirmation before modifying the file name.

- `rewrite-front-matter' means that renaming commands will ask for
  confirmation before rewritting the front matter.

- `add-front-matter' means that renaming commands will ask for
  confirmation before adding new front matter to the file.

The default behaviour of the `denote-rename-file' command (and others
like it) is to ask for an affirmative answer as a final step before
changing the file name and, where relevant, inserting or updating the
corresponding front matter.

Specialized commands that build on top of `denote-rename-file' (or
related) may internally bind this user option to a non-nil value in
order to perform their operation (e.g. `denote-dired-rename-files' goes
through each marked Dired file, prompting for the information to use,
but carries out the renaming without asking for confirmation)."
  :group 'denote
  :type '(radio (const :tag "Disable all confirmations" nil)
                (set :tag "Available confirmations" :greedy t
                     (const :tag "Add front matter" add-front-matter)
                     (const :tag "Rewrite front matter" rewrite-front-matter)
                     (const :tag "Modify file name" modify-file-name))))