summaryrefslogtreecommitdiff
path: root/lisp/gnus-score.el
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>1996-06-29 00:29:17 +0000
committerLars Magne Ingebrigtsen <larsi@gnus.org>1996-06-29 00:29:17 +0000
commit5c59a4cf3ac74d8ae9abd5abcaece30ec035df44 (patch)
treed59dbcea6357d631d5ddb4e252aaeb1d80741409 /lisp/gnus-score.el
parent0c6bcf794af36c6bc115322133e759ad7961a24f (diff)
downloademacs-5c59a4cf3ac74d8ae9abd5abcaece30ec035df44.tar.gz
Synched with Gnus 5.2.31.
Diffstat (limited to 'lisp/gnus-score.el')
-rw-r--r--lisp/gnus-score.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/gnus-score.el b/lisp/gnus-score.el
index c0686ef6903..523fa13587f 100644
--- a/lisp/gnus-score.el
+++ b/lisp/gnus-score.el
@@ -551,7 +551,7 @@ If optional argument `SILENT' is nil, show effect of score entry."
((eq type 'f)
(setq match (gnus-simplify-subject-fuzzy match))))
(let ((score (gnus-score-default score))
- (header (downcase header))
+ (header (format "%s" (downcase header)))
new)
(and prompt (setq match (read-string
(format "Match %s on %s, %s: "
@@ -566,6 +566,9 @@ If optional argument `SILENT' is nil, show effect of score entry."
(int-to-string match)
match))))
+ ;; Get rid of string props.
+ (setq match (format "%s" match))
+
;; If this is an integer comparison, we transform from string to int.
(and (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer)
(setq match (string-to-int match)))
@@ -720,11 +723,11 @@ SCORE is the score to add."
(setq score (gnus-score-default score))
(when (gnus-buffer-live-p gnus-summary-buffer)
(save-excursion
- (set-buffer gnus-summary-buffer)
(save-restriction
(goto-char (point-min))
(let ((id (mail-fetch-field "message-id")))
(when id
+ (set-buffer gnus-summary-buffer)
(gnus-summary-score-entry
"references" (concat id "[ \t]*$") 'r
score (current-time-string) nil t)))))))
@@ -735,11 +738,11 @@ SCORE is the score to add."
(setq score (gnus-score-default score))
(when (gnus-buffer-live-p gnus-summary-buffer)
(save-excursion
- (set-buffer gnus-summary-buffer)
(save-restriction
(goto-char (point-min))
(let ((id (mail-fetch-field "message-id")))
(when id
+ (set-buffer gnus-summary-buffer)
(gnus-summary-score-entry
"references" id 's
score (current-time-string))))))))