Function: mh-undo-folder

mh-undo-folder is an autoloaded, interactive and byte-compiled function defined in mh-funcs.el.gz.

Signature

(mh-undo-folder &rest IGNORED)

Documentation

Undo all refiles and deletes in the current folder.

Arguments are IGNORED (for revert-buffer).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-funcs.el.gz
;;;###mh-autoload
(defun mh-undo-folder (&rest _ignored)
  "Undo all refiles and deletes in the current folder.
Arguments are IGNORED (for `revert-buffer')."
  (interactive)
  (cond ((or mh-do-not-confirm-flag
             (yes-or-no-p "Undo all commands in folder? "))
         (setq mh-delete-list nil
               mh-refile-list nil
               mh-blocklist nil
               mh-allowlist nil
               mh-seq-list nil
               mh-next-direction 'forward)
         (with-mh-folder-updating (nil)
           (mh-remove-all-notation)))
        (t
         (message "Commands not undone"))))