Function: mh-search-folder

mh-search-folder is an interactive and byte-compiled function defined in mh-search.el.gz.

Signature

(mh-search-folder FOLDER WINDOW-CONFIG)

Documentation

Search FOLDER for messages matching a pattern.

In a program, argument WINDOW-CONFIG is the current window configuration and is used when the search folder is dismissed.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
(defun mh-search-folder (folder window-config)
  "Search FOLDER for messages matching a pattern.

In a program, argument WINDOW-CONFIG is the current window
configuration and is used when the search folder is dismissed."
  (interactive (list (mh-prompt-for-folder "Search" mh-current-folder nil nil t)
                     (current-window-configuration)))
  ;; FIXME: `pick-folder' is unused!
  (let () ;; (pick-folder (if (equal folder "+") mh-current-folder folder))
    (switch-to-buffer-other-window "search-pattern")
    (if (or (zerop (buffer-size))
            (not (y-or-n-p "Reuse pattern? ")))
        (mh-make-pick-template)
      (message ""))
    (setq-local mh-current-folder folder
                mh-previous-window-config window-config)
    (message "%s" (substitute-command-keys
                   (concat "Type \\[mh-index-do-search] to search messages, "
                           "\\[mh-pick-do-search] to use pick, "
                           "\\[mh-help] for help")))))