Function: mh-thread-container-subject

mh-thread-container-subject is a byte-compiled function defined in mh-thread.el.gz.

Signature

(mh-thread-container-subject CONTAINER)

Documentation

Return the subject of CONTAINER.

If CONTAINER is empty return the subject info of one of its children.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-thread.el.gz
(defun mh-thread-container-subject (container)
  "Return the subject of CONTAINER.
If CONTAINER is empty return the subject info of one of its
children."
  (cond ((and (mh-container-message container)
              (mh-message-id (mh-container-message container)))
         (mh-message-subject (mh-container-message container)))
        (t (cl-block nil
             (dolist (kid (mh-container-children container))
               (when (and (mh-container-message kid)
                          (mh-message-id (mh-container-message kid)))
                 (let ((kid-message (mh-container-message kid)))
                   (cl-return (mh-message-subject kid-message)))))
             (error "This can't happen")))))