Function: mh-previous-undeleted-msg

mh-previous-undeleted-msg is an autoloaded, interactive and byte-compiled function defined in mh-folder.el.gz.

Signature

(mh-previous-undeleted-msg &optional COUNT WAIT-AFTER-COMPLAINING-FLAG)

Documentation

Display previous message.

This command can be given a prefix argument COUNT to specify how many unread messages to skip.

In a program, pause for a second after printing message if we are at the last undeleted message and optional argument WAIT-AFTER-COMPLAINING-FLAG is non-nil.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-folder.el.gz
;;;###mh-autoload
(defun mh-previous-undeleted-msg (&optional count wait-after-complaining-flag)
  "Display previous message.

This command can be given a prefix argument COUNT to specify how
many unread messages to skip.

In a program, pause for a second after printing message if we are
at the last undeleted message and optional argument
WAIT-AFTER-COMPLAINING-FLAG is non-nil."
  (interactive "p")
  (setq mh-next-direction 'backward)
  (beginning-of-line)
  (cond ((re-search-backward mh-scan-good-msg-regexp nil t count)
         (mh-maybe-show))
        (t (message "No previous undeleted message")
           (if wait-after-complaining-flag (sit-for 1)))))