diff options
| author | Katsumi Yamaoka | 2010-08-31 00:51:08 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-08-31 00:51:08 +0000 |
| commit | 0c32d7821250d2543ca16ba96b4b15ea30bb381c (patch) | |
| tree | 5b3eda0643ab60bba84f2a2498e283a901b38b28 | |
| parent | c2861968e445cb584c3a52f311d513d4240fd7b0 (diff) | |
| download | emacs-0c32d7821250d2543ca16ba96b4b15ea30bb381c.tar.gz emacs-0c32d7821250d2543ca16ba96b4b15ea30bb381c.zip | |
Fix previous merge from Gnus trunk.
| -rw-r--r-- | lisp/gnus/gnus-ems.el | 16 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 3 |
2 files changed, 9 insertions, 10 deletions
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el index ab9782ab36c..efa74146a91 100644 --- a/lisp/gnus/gnus-ems.el +++ b/lisp/gnus/gnus-ems.el | |||
| @@ -274,15 +274,13 @@ | |||
| 274 | (setq props (plist-put props :background (face-background face)))) | 274 | (setq props (plist-put props :background (face-background face)))) |
| 275 | (apply 'create-image file type data-p props))) | 275 | (apply 'create-image file type data-p props))) |
| 276 | 276 | ||
| 277 | (defun gnus-put-image (glyph &optional string category point) | 277 | (defun gnus-put-image (glyph &optional string category) |
| 278 | (let ((point (or point (point)))) | 278 | (let ((point (point))) |
| 279 | (save-excursion | 279 | (insert-image glyph (or string " ")) |
| 280 | (goto-char point) | 280 | (put-text-property point (point) 'gnus-image-category category) |
| 281 | (insert-image glyph (or string " ")) | 281 | (unless string |
| 282 | (put-text-property point (point) 'gnus-image-category category) | 282 | (put-text-property (1- (point)) (point) |
| 283 | (unless string | 283 | 'gnus-image-text-deletable t)) |
| 284 | (put-text-property (1- (point)) (point) | ||
| 285 | 'gnus-image-text-deletable t))) | ||
| 286 | glyph)) | 284 | glyph)) |
| 287 | 285 | ||
| 288 | (defun gnus-remove-image (image &optional category) | 286 | (defun gnus-remove-image (image &optional category) |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index ba1420fb8ac..e82fee839d0 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -172,7 +172,8 @@ | |||
| 172 | (if (and image | 172 | (if (and image |
| 173 | ;; Kludge to avoid displaying 30x30 gif images, which | 173 | ;; Kludge to avoid displaying 30x30 gif images, which |
| 174 | ;; seems to be a signal of a broken image. | 174 | ;; seems to be a signal of a broken image. |
| 175 | (not (and (eq (getf (cdr image) :type) 'gif) | 175 | (not (and (listp image) |
| 176 | (eq (getf (cdr image) :type) 'gif) | ||
| 176 | (= (car (image-size image t)) 30) | 177 | (= (car (image-size image t)) 30) |
| 177 | (= (cdr (image-size image t)) 30)))) | 178 | (= (cdr (image-size image t)) 30)))) |
| 178 | (progn | 179 | (progn |