* mime-image.el (mime-image-normalize-xbm-buffer): Add missing format
authoryamaoka <yamaoka>
Fri, 6 Feb 2004 06:03:17 +0000 (06:03 +0000)
committeryamaoka <yamaoka>
Fri, 6 Feb 2004 06:03:17 +0000 (06:03 +0000)
 specifiers.
* mime-view.el (mime-view-insert-entity-button): Fix misplaced let form.

ChangeLog
mime-image.el
mime-view.el

index fce677f..e8fdc2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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
index 70347b0..28f3aab 100644 (file)
     (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],")
index 81386cb..41d4329 100644 (file)
@@ -599,24 +599,22 @@ mother-buffer."
                  )))
            )
           (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))
     ))