]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-gravatar.el (gnus-treat-from-gravatar, gnus-treat-mail-gravatar): Bind gnus...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 8 Oct 2010 07:35:21 +0000 (07:35 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 8 Oct 2010 07:35:21 +0000 (07:35 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-gravatar.el

index 9556827554b2e26245354d66e61b193b4bd2b07a..5867a5c0bc9cc295ba4709b488471b0c3644158b 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-08  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-gravatar.el (gnus-treat-from-gravatar)
+       (gnus-treat-mail-gravatar): Bind gnus-gravatar-too-ugly to nil when
+       called interactively.
+
        * gnus-art.el (gnus-mime-view-part-externally)
        (gnus-mime-view-part-internally): Make predicate function passed to
        gnus-mime-view-part-as-type assume argument is a mime type, not a list
index e974e9a8a8903f853bab283342a10b68d06f5a5c..97f4ba7359bbb2384ba9bce3110ec592fbcf4ded 100644 (file)
@@ -113,7 +113,10 @@ If gravatar is already displayed, remove it."
   (gnus-with-article-buffer
     (if (memq 'from-gravatar gnus-article-wash-types)
         (gnus-delete-images 'from-gravatar)
-      (gnus-gravatar-transform-address "from" 'from-gravatar))))
+      (let ((gnus-gravatar-too-ugly
+            (unless buffer-read-only ;; When type `W D g'
+              gnus-gravatar-too-ugly)))
+       (gnus-gravatar-transform-address "from" 'from-gravatar)))))
 
 ;;;###autoload
 (defun gnus-treat-mail-gravatar ()
@@ -123,8 +126,11 @@ If gravatars are already displayed, remove them."
     (gnus-with-article-buffer
       (if (memq 'mail-gravatar gnus-article-wash-types)
           (gnus-delete-images 'mail-gravatar)
-        (gnus-gravatar-transform-address "cc" 'mail-gravatar)
-        (gnus-gravatar-transform-address "to" 'mail-gravatar))))
+       (let ((gnus-gravatar-too-ugly
+              (unless buffer-read-only ;; When type `W D h'
+                gnus-gravatar-too-ugly)))
+         (gnus-gravatar-transform-address "cc" 'mail-gravatar)
+         (gnus-gravatar-transform-address "to" 'mail-gravatar)))))
 
 (provide 'gnus-gravatar)