specifiers.
* mime-view.el (mime-view-insert-entity-button): Fix misplaced let form.
+2004-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mime-image.el (mime-image-normalize-xbm-buffer): Add missing
+ format specifiers.
+
+ * mime-view.el (mime-view-insert-entity-button): Fix misplaced let
+ form.
+
2004-01-15 Katsumi Yamaoka <yamaoka@jpl.org>
* mime-edit.el (mime-edit-normalize-body): Fix a comment that the
(let ((case-fold-search t) width height xbytes right margin)
(goto-char (point-min))
(or (re-search-forward "_width[\t ]+\\([0-9]+\\)" nil t)
- (error "!! Illegal xbm file format" (current-buffer)))
+ (error "!! Illegal xbm file format in the buffer: %s"
+ (current-buffer)))
(setq width (string-to-int (match-string 1))
xbytes (/ (+ width 7) 8))
(goto-char (point-min))
(or (re-search-forward "_height[\t ]+\\([0-9]+\\)" nil t)
- (error "!! Illegal xbm file format" (current-buffer)))
+ (error "!! Illegal xbm file format in the buffer: %s"
+ (current-buffer)))
(setq height (string-to-int (match-string 1)))
(goto-char (point-min))
(re-search-forward "0x[0-9a-f][0-9a-f],")
)))
)
(t
- (let ((media-type (mime-entity-media-type entity))
- (media-subtype (mime-entity-media-subtype entity))
- (charset (cdr (assoc "charset" params)))
- (encoding (mime-entity-encoding entity)))
+ (let* ((charset (cdr (assoc "charset" params)))
+ (encoding (mime-entity-encoding entity))
+ (rest (format " <%s/%s%s%s>"
+ (mime-entity-media-type entity)
+ (mime-entity-media-subtype entity)
+ (if charset
+ (concat "; " charset)
+ "")
+ (if encoding
+ (concat " (" encoding ")")
+ ""))))
(concat
num " " subject
- (let ((rest
- (format " <%s/%s%s%s>"
- media-type media-subtype
- (if charset
- (concat "; " charset)
- "")
- (if encoding
- (concat " (" encoding ")")
- ""))))
- (if (>= (+ (current-column)(length rest))(window-width))
- "\n\t")
- rest)))
+ (if (>= (+ (current-column)(length rest))(window-width))
+ "\n\t")
+ rest))
)))
(function mime-preview-play-current-entity))
))