Mercurial > emacs
comparison lisp/gnus/gnus-score.el @ 90188:01137c1fdbe9
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-57
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 324-352)
- Merge from gnus--rel--5.10
- Update from CVS
- etc/emacs-buffer.gdb: Remove RCS keywords
* gnus--rel--5.10 (patch 70-79)
- Update from CVS
- Merge from emacs--cvs-trunk--0
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 06 Jun 2005 02:39:45 +0000 |
parents | 3ebd9bdb4fe5 88db2adda4b7 |
children | f9a65d7ebd29 |
comparison
equal
deleted
inserted
replaced
90187:587ea1490d70 | 90188:01137c1fdbe9 |
---|---|
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) |