X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fgnus-xmas.el;h=f13a1e443b0d8491a04d3d99d87137f7f962ed7a;hb=e2696774a2e225ea60d46cc665d4232c80412731;hp=92d9d8e30c167ca341575fec0be4ba00cb17cf9d;hpb=5357096aae0887174a86d6a6796112d6b3d2d53e;p=elisp%2Fgnus.git- diff --git a/lisp/gnus-xmas.el b/lisp/gnus-xmas.el index 92d9d8e..f13a1e4 100644 --- a/lisp/gnus-xmas.el +++ b/lisp/gnus-xmas.el @@ -914,12 +914,13 @@ Warning: Don't insert text immediately after the image." glyph) (defun gnus-xmas-remove-image (image &optional category) + "Remove the image matching IMAGE and CATEGORY found first." (map-extents (lambda (ext unused) (when (equal (extent-end-glyph ext) image) (set-extent-property ext 'invisible nil) - (set-extent-property ext 'end-glyph nil)) - nil) + (set-extent-property ext 'end-glyph nil) + t)) nil nil nil nil nil 'gnus-image category)) (defun gnus-xmas-assq-delete-all (key alist)