]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-sum.el (gnus-summary-show-article): Don't load shr unconditionally.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 8 Dec 2011 06:22:03 +0000 (06:22 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 8 Dec 2011 06:22:03 +0000 (06:22 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index bdc7313e57aeaf6442cf71d08c7f483533fe490e..e8d0fb25bb541c33a495dafcdc0ce2ad58196b24 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-08  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-sum.el (gnus-summary-show-article): Don't load shr
+       unconditionally.
+
 2011-12-07  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * message.el (message-pop-to-buffer): Use pop-to-buffer instead of
index 10d1b467c37c156e26fc0a11df57f6960babdd96..17ccae986e97c05954222789cc51863be17cf88f 100644 (file)
@@ -9611,9 +9611,12 @@ C-u g', show the raw article."
        (when (gnus-summary-goto-subject (cdr gnus-article-current) nil t)
          (gnus-summary-update-secondary-mark (cdr gnus-article-current))))))
    ((not arg)
-    (require 'shr)
-    (let ((shr-ignore-cache t))
-      ;; Select the article the normal way.
+    ;; Select the article the normal way.
+    (if (eq mm-text-html-renderer 'shr)
+       (progn
+         (require 'shr)
+         (let ((shr-ignore-cache t))
+           (gnus-summary-select-article nil 'force)))
       (gnus-summary-select-article nil 'force)))
    ((equal arg '(16))
     ;; C-u C-u g