comparison lisp/gnus/gnus-score.el @ 62907:88db2adda4b7

Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-339 Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 76) - Update from CVS 2005-05-30 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/gnus-agent.el (gnus-agent-regenerate-group) (gnus-agent-fetch-articles): Replace `string-to-int' by `string-to-number'. * lisp/gnus/gnus-art.el (gnus-button-fetch-group): Ditto. * lisp/gnus/gnus-cache.el (gnus-cache-generate-active) (gnus-cache-articles-in-group): Ditto. * lisp/gnus/gnus-group.el (gnus-group-set-current-level) (gnus-group-insert-group-line): Ditto. * lisp/gnus/gnus-score.el (gnus-score-set-expunge-below) (gnus-score-set-mark-below, gnus-summary-score-effect) (gnus-summary-score-entry): Ditto. * lisp/gnus/gnus-soup.el (gnus-soup-send-packet, gnus-soup-parse-areas) (gnus-soup-pack): Ditto. * lisp/gnus/gnus-spec.el (gnus-xmas-format): Ditto. * lisp/gnus/gnus-start.el (gnus-newsrc-to-gnus-format): Ditto. * lisp/gnus/gnus-sum.el (gnus-create-xref-hashtb): Ditto. * lisp/gnus/gnus-uu.el (gnus-uu-expand-numbers): Ditto. * lisp/gnus/nnbabyl.el (nnbabyl-article-group-number): Ditto. * lisp/gnus/nndb.el (nndb-get-remote-expire-response): Ditto. * lisp/gnus/nndiary.el (nndiary-parse-schedule-value) (nndiary-string-to-number, nndiary-request-replace-article) (nndiary-request-article): Ditto. * lisp/gnus/nndoc.el (nndoc-rnews-body-end, nndoc-mbox-body-end): Ditto. * lisp/gnus/nndraft.el (nndraft-articles, nndraft-request-group): Ditto. * lisp/gnus/nneething.el (nneething-make-head): Ditto. * lisp/gnus/nnfolder.el (nnfolder-request-article) (nnfolder-retrieve-headers): Ditto. * lisp/gnus/nnheader.el (nnheader-file-to-number): Ditto. * lisp/gnus/nnkiboze.el (nnkiboze-request-article): Ditto. * lisp/gnus/nnmail.el (nnmail-process-unix-mail-format) (nnmail-process-babyl-mail-format): Ditto. * lisp/gnus/nnmbox.el (nnmbox-read-mbox, nnmbox-article-group-number): Ditto. * lisp/gnus/nnmh.el (nnmh-update-gnus-unreads, nnmh-active-number) (nnmh-request-create-group, nnmh-request-list-1) (nnmh-request-group, nnmh-request-article): Ditto. * lisp/gnus/nnml.el (nnml-request-replace-article, nnml-request-article): Ditto. * lisp/gnus/nnrss.el (nnrss-find-rss-via-syndic8): Ditto. * lisp/gnus/nnsoup.el (nnsoup-make-active): Ditto. * lisp/gnus/nnspool.el (nnspool-find-id, nnspool-request-group): Ditto. * lisp/gnus/nntp.el (nntp-find-group-and-number) (nntp-retrieve-headers-with-xover): Ditto. * lisp/gnus/pgg-gpg.el (pgg-gpg-snarf-keys-region): Ditto. * lisp/gnus/pgg-parse.el (pgg-read-body, pgg-read-bytes) (pgg-format-key-identifier): Ditto. * lisp/gnus/pop3.el (pop3-last, pop3-stat): Ditto. * lisp/gnus/qp.el (quoted-printable-decode-region): Ditto. * lisp/gnus/spam-report.el (spam-report-url-ping-mm-url): Use format instead of concat.
author Miles Bader <miles@gnu.org>
date Mon, 30 May 2005 17:13:58 +0000
parents aac0a33f5772
children 18a818a2ee7c 01137c1fdbe9
comparison
equal deleted inserted replaced
62906:9736cb0522cd 62907:88db2adda4b7
824 match)))) 824 match))))
825 825
826 ;; If this is an integer comparison, we transform from string to int. 826 ;; If this is an integer comparison, we transform from string to int.
827 (if (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer) 827 (if (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer)
828 (if (stringp match) 828 (if (stringp match)
829 (setq match (string-to-int match))) 829 (setq match (string-to-number match)))
830 (set-text-properties 0 (length match) nil match)) 830 (set-text-properties 0 (length match) nil match))
831 831
832 (unless (eq date 'now) 832 (unless (eq date 'now)
833 ;; Add the score entry to the score file. 833 ;; Add the score entry to the score file.
834 (when (= score gnus-score-interactive-default-score) 834 (when (= score gnus-score-interactive-default-score)
889 gnus-header-index 889 gnus-header-index
890 (lambda (x) (fboundp (nth 2 x))) 890 (lambda (x) (fboundp (nth 2 x)))
891 t) 891 t)
892 (read-string "Match: ") 892 (read-string "Match: ")
893 (if (y-or-n-p "Use regexp match? ") 'r 's) 893 (if (y-or-n-p "Use regexp match? ") 'r 's)
894 (string-to-int (read-string "Score: ")))) 894 (string-to-number (read-string "Score: "))))
895 (save-excursion 895 (save-excursion
896 (unless (and (stringp match) (> (length match) 0)) 896 (unless (and (stringp match) (> (length match) 0))
897 (error "No match")) 897 (error "No match"))
898 (goto-char (point-min)) 898 (goto-char (point-min))
899 (let ((regexp (cond ((eq type 'f) 899 (let ((regexp (cond ((eq type 'f)
943 943
944 (defun gnus-score-set-mark-below (score) 944 (defun gnus-score-set-mark-below (score)
945 "Automatically mark articles with score below SCORE as read." 945 "Automatically mark articles with score below SCORE as read."
946 (interactive 946 (interactive
947 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg)) 947 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg))
948 (string-to-int (read-string "Mark below: "))))) 948 (string-to-number (read-string "Mark below: ")))))
949 (setq score (or score gnus-summary-default-score 0)) 949 (setq score (or score gnus-summary-default-score 0))
950 (gnus-score-set 'mark (list score)) 950 (gnus-score-set 'mark (list score))
951 (gnus-score-set 'touched '(t)) 951 (gnus-score-set 'touched '(t))
952 (setq gnus-summary-mark-below score) 952 (setq gnus-summary-mark-below score)
953 (gnus-score-update-lines)) 953 (gnus-score-update-lines))
977 977
978 (defun gnus-score-set-expunge-below (score) 978 (defun gnus-score-set-expunge-below (score)
979 "Automatically expunge articles with score below SCORE." 979 "Automatically expunge articles with score below SCORE."
980 (interactive 980 (interactive
981 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg)) 981 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg))
982 (string-to-int (read-string "Set expunge below: "))))) 982 (string-to-number (read-string "Set expunge below: ")))))
983 (setq score (or score gnus-summary-default-score 0)) 983 (setq score (or score gnus-summary-default-score 0))
984 (gnus-score-set 'expunge (list score)) 984 (gnus-score-set 'expunge (list score))
985 (gnus-score-set 'touched '(t))) 985 (gnus-score-set 'touched '(t)))
986 986
987 (defun gnus-score-followup-article (&optional score) 987 (defun gnus-score-followup-article (&optional score)