(mime-image-insert) [XEmacs]: Insert `string' only if it is non-nil.
authorteranisi <teranisi>
Tue, 4 Jul 2000 12:12:35 +0000 (12:12 +0000)
committerteranisi <teranisi>
Tue, 4 Jul 2000 12:12:35 +0000 (12:12 +0000)
mime-image.el

index 48e1230..76c2335 100644 (file)
            glyph)))
 
       (defun mime-image-insert (image &optional string area)
-       (let ((extent (make-extent (point) (progn (insert string)(point)))))
+       (let ((extent (make-extent (point)
+                                  (progn (and string
+                                              (insert string))
+                                         (point)))))
          (set-extent-property extent 'invisible t)
          (set-extent-end-glyph extent image))))
   (condition-case nil