Function: mh-index-insert-folder-headers
mh-index-insert-folder-headers is an autoloaded and byte-compiled
function defined in mh-search.el.gz.
Signature
(mh-index-insert-folder-headers)
Documentation
Annotate the search results with original folder names.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
;;;###mh-autoload
(defun mh-index-insert-folder-headers ()
"Annotate the search results with original folder names."
(let ((cur-msg (mh-get-msg-num nil))
(old-buffer-modified-flag (buffer-modified-p))
(buffer-read-only nil)
current-folder last-folder)
(goto-char (point-min))
(while (not (eobp))
(setq current-folder (car (gethash (gethash (mh-get-msg-num nil)
mh-index-msg-checksum-map)
mh-index-checksum-origin-map)))
(when (and current-folder (not (equal current-folder last-folder)))
(insert (if last-folder "\n" "") current-folder "\n")
(setq last-folder current-folder))
(forward-line))
(when cur-msg
(mh-notate-cur)
(mh-goto-msg cur-msg t))
(set-buffer-modified-p old-buffer-modified-flag))
(mh-index-create-imenu-index))