]> git.eshelyaron.com Git - emacs.git/commitdiff
Use message instead of gnus-message in gnus-summary-current-score
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 20 Nov 2017 22:21:32 +0000 (14:21 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 20 Nov 2017 22:21:32 +0000 (14:21 -0800)
* lisp/gnus/gnus-score.el (gnus-summary-current-score): The only point
  of this function is to display the score to the user, there's no
  need to do gnus-message filtering.

lisp/gnus/gnus-score.el

index bc11aa528faeffbec1f548fb5a307d948b7ef3e6..6c3a8b4cecf67e2f1a9116e735d16e9450c7353f 100644 (file)
@@ -1078,11 +1078,11 @@ EXTRA is the possible non-standard header."
   "Return the score of the current article.
   With prefix ARG, return the total score of the current (sub)thread."
   (interactive "P")
-  (gnus-message 1 "%s" (if arg
-                          (gnus-thread-total-score
-                           (gnus-id-to-thread
-                            (mail-header-id (gnus-summary-article-header))))
-                          (gnus-summary-article-score))))
+  (message "%s" (if arg
+                   (gnus-thread-total-score
+                    (gnus-id-to-thread
+                     (mail-header-id (gnus-summary-article-header))))
+                 (gnus-summary-article-score))))
 
 (defun gnus-score-change-score-file (file)
   "Change current score alist."