Function: mh-mime-part-index

mh-mime-part-index is a byte-compiled function defined in mh-mime.el.gz.

Signature

(mh-mime-part-index HANDLE)

Documentation

Generate the button number for MIME part, HANDLE.

Notice that a hash table is used to display the same number when buttons need to be displayed multiple times (for instance when nested messages are opened).

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
(defun mh-mime-part-index (handle)
  "Generate the button number for MIME part, HANDLE.
Notice that a hash table is used to display the same number when
buttons need to be displayed multiple times (for instance when
nested messages are opened)."
  (or (gethash handle (mh-mime-part-index-hash (mh-buffer-data)))
      (setf (gethash handle (mh-mime-part-index-hash (mh-buffer-data)))
            (cl-incf (mh-mime-parts-count (mh-buffer-data))))))