Function: mh-read-seq
mh-read-seq is a byte-compiled function defined in mh-seq.el.gz.
Signature
(mh-read-seq PROMPT NOT-EMPTY &optional DEFAULT)
Documentation
Read and return a sequence name.
Prompt with PROMPT, raise an error if the sequence is empty and
the NOT-EMPTY flag is non-nil, and supply an optional DEFAULT
sequence. A reply of % defaults to the first sequence
containing the current message.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-seq.el.gz
(defun mh-read-seq (prompt not-empty &optional default)
"Read and return a sequence name.
Prompt with PROMPT, raise an error if the sequence is empty and
the NOT-EMPTY flag is non-nil, and supply an optional DEFAULT
sequence. A reply of `%' defaults to the first sequence
containing the current message."
(let* ((input (completing-read (format-prompt "%s sequence" default prompt)
(mh-seq-names mh-seq-list)
nil nil nil 'mh-sequence-history))
(seq (cond ((equal input "%")
(car (mh-seq-containing-msg (mh-get-msg-num t) nil)))
((equal input "") default)
(t (intern input))))
(msgs (mh-seq-to-msgs seq)))
(if (and (null msgs) not-empty)
(error "No messages in sequence %s" seq))
seq))