Function: mh-update-scan-format

mh-update-scan-format is a byte-compiled function defined in mh-scan.el.gz.

Signature

(mh-update-scan-format FMT WIDTH)

Documentation

Return a scan format with the (msg) width in the FMT replaced with WIDTH.

The message number width portion of the format is discovered using mh-scan-msg-format-regexp. Its replacement is controlled with mh-scan-msg-format-string.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-scan.el.gz
(defun mh-update-scan-format (fmt width)
  "Return a scan format with the (msg) width in the FMT replaced with WIDTH.

The message number width portion of the format is discovered
using `mh-scan-msg-format-regexp'.  Its replacement is controlled
with `mh-scan-msg-format-string'."
  (or (and
       (string-match mh-scan-msg-format-regexp fmt)
       (let ((begin (match-beginning 1))
             (end (match-end 1)))
         (concat (substring fmt 0 begin)
                 (format mh-scan-msg-format-string width)
                 (substring fmt end))))
      fmt))