Variable: mh-kill-folder-suppress-prompt-functions

mh-kill-folder-suppress-prompt-functions is a customizable variable defined in mh-e.el.gz.

Value

(mh-search-p)

Documentation

Abnormal hook run at the beginning of F k (mh-kill-folder).

The hook functions are called with no arguments and should return a non-nil value to suppress the normal prompt when you remove a folder. This is useful for folders that are easily regenerated.

The default value of mh-search-p suppresses the prompt on folders generated by searching.

WARNING: Use this hook with care. If there is a bug in your hook which returns t on "+inbox" and you hit F k (mh-kill-folder) by accident in the "+inbox" folder, you will not be happy.

This variable was added, or its default value changed, in MH-E version
7.4.

Aliases

mh-kill-folder-suppress-prompt-hooks (obsolete since 24.3)

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-e.el.gz
(defcustom-mh mh-kill-folder-suppress-prompt-functions '(mh-search-p)
  "Abnormal hook run at the beginning of \\<mh-folder-mode-map>\\[mh-kill-folder].

The hook functions are called with no arguments and should return
a non-nil value to suppress the normal prompt when you remove a
folder. This is useful for folders that are easily regenerated.

The default value of `mh-search-p' suppresses the prompt on
folders generated by searching.

WARNING: Use this hook with care. If there is a bug in your hook
which returns t on \"+inbox\" and you hit \\[mh-kill-folder] by
accident in the \"+inbox\" folder, you will not be happy."
  :type 'hook
  :group 'mh-hooks
  :group 'mh-folder
  :package-version '(MH-E . "7.4"))