Function: mh-index-visit-folder
mh-index-visit-folder is an autoloaded, interactive and byte-compiled
function defined in mh-search.el.gz.
Signature
(mh-index-visit-folder)
Documentation
Visit original folder from where the message at point was found.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
;;;###mh-autoload
(defun mh-index-visit-folder ()
"Visit original folder from where the message at point was found."
(interactive)
(unless mh-index-data
(error "Not in an index folder"))
(let (folder msg)
(save-excursion
(cond ((and (bolp) (eolp))
(ignore-errors (forward-line -1))
(setq msg (mh-get-msg-num t)))
((equal (char-after (line-beginning-position)) ?+)
(setq folder (buffer-substring-no-properties
(line-beginning-position)
(line-end-position))))
(t (setq msg (mh-get-msg-num t)))))
(when (not folder)
(setq folder (car (gethash (gethash msg mh-index-msg-checksum-map)
mh-index-checksum-origin-map))))
(when (or (not (get-buffer folder))
(y-or-n-p (format "Reuse buffer displaying %s? " folder)))
(mh-visit-folder
folder (cl-loop
for x being the hash-keys of (gethash folder mh-index-data)
when (mh-msg-exists-p x folder) collect x)))))