aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2006-03-10 23:43:54 +0000
committerMiles Bader2006-03-10 23:43:54 +0000
commitea8ae7654a60bf4598a6b6269fe75fb859b91651 (patch)
tree96a407a30821c25fe11f1e4e8743a449d663976f /lisp
parentaf467e285ed142761527612f2c40fd6dfd02d345 (diff)
downloademacs-ea8ae7654a60bf4598a6b6269fe75fb859b91651.tar.gz
emacs-ea8ae7654a60bf4598a6b6269fe75fb859b91651.zip
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-147
Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 56) - Update from CVS
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog24
-rw-r--r--lisp/gnus/gnus-group.el5
-rw-r--r--lisp/gnus/gnus-nocem.el18
-rw-r--r--lisp/gnus/gnus-start.el9
-rw-r--r--lisp/gnus/gnus.el18
-rw-r--r--lisp/gnus/smiley.el42
6 files changed, 91 insertions, 25 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 374c3da2994..8023af47bfd 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,27 @@
12006-03-10 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * smiley.el: Add more test smileys.
4 (smiley-data-directory, smiley-regexp-alist)
5 (gnus-smiley-file-types): Fix doc strings.
6 (smiley-update-cache): Clear smiley-cached-regexp-alist before
7 adding new elements.
8 (smiley-mouse-map): Unused code. Make it a comment.
9
102006-03-10 Katsumi Yamaoka <yamaoka@jpl.org>
11
12 * gnus-nocem.el (gnus-nocem-scan-groups): Add autoload cookie;
13 scan latest NoCeM messages instead of old ones.
14 (gnus-nocem-check-article): Fix regexps so as to match to PGP
15 delimiters that are recently used.
16 (gnus-nocem-load-cache): Add autoload cookie.
17
18 * gnus.el (gnus-use-nocem): Enable it to be set to also a number.
19
20 * gnus-start.el (gnus-setup-news): Scan NoCeM messages if a group
21 level which is larger than gnus-use-nocem is specified.
22
23 * gnus-group.el (gnus-group-get-new-news): Ditto.
24
12006-03-08 Reiner Steib <Reiner.Steib@gmx.de> 252006-03-08 Reiner Steib <Reiner.Steib@gmx.de>
2 26
3 * gnus-util.el (gnus-tool-bar-update): New function. 27 * gnus-util.el (gnus-tool-bar-update): New function.
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 3d20af8b0df..0ed72433115 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -3622,7 +3622,10 @@ re-scanning. If ARG is non-nil and not a number, this will force
3622 3622
3623 ;; We might read in new NoCeM messages here. 3623 ;; We might read in new NoCeM messages here.
3624 (when (and gnus-use-nocem 3624 (when (and gnus-use-nocem
3625 (null arg)) 3625 (or (and (numberp gnus-use-nocem)
3626 (numberp arg)
3627 (>= arg gnus-use-nocem))
3628 (not arg)))
3626 (gnus-nocem-scan-groups)) 3629 (gnus-nocem-scan-groups))
3627 ;; If ARG is not a number, then we read the active file. 3630 ;; If ARG is not a number, then we read the active file.
3628 (when (and arg (not (numberp arg))) 3631 (when (and arg (not (numberp arg)))
diff --git a/lisp/gnus/gnus-nocem.el b/lisp/gnus/gnus-nocem.el
index b17c33a5d7f..e75b25282b0 100644
--- a/lisp/gnus/gnus-nocem.el
+++ b/lisp/gnus/gnus-nocem.el
@@ -136,6 +136,7 @@ valid issuer, which is much faster if you are selective about the issuers."
136 (gnus-sethash group t gnus-nocem-real-group-hashtb)) 136 (gnus-sethash group t gnus-nocem-real-group-hashtb))
137 gnus-newsrc-alist)) 137 gnus-newsrc-alist))
138 138
139;;;###autoload
139(defun gnus-nocem-scan-groups () 140(defun gnus-nocem-scan-groups ()
140 "Scan all NoCeM groups for new NoCeM messages." 141 "Scan all NoCeM groups for new NoCeM messages."
141 (interactive) 142 (interactive)
@@ -206,10 +207,10 @@ valid issuer, which is much faster if you are selective about the issuers."
206 (not (member (mail-header-message-id header) 207 (not (member (mail-header-message-id header)
207 gnus-nocem-seen-message-ids)))) 208 gnus-nocem-seen-message-ids))))
208 (push header check-headers))) 209 (push header check-headers)))
209 (let* ((i 0) 210 (setq check-headers (last (nreverse check-headers)
210 (check-headers 211 gnus-nocem-check-article-limit))
211 (last check-headers gnus-nocem-check-article-limit)) 212 (let ((i 0)
212 (len (length check-headers))) 213 (len (length check-headers)))
213 (dolist (h check-headers) 214 (dolist (h check-headers)
214 (gnus-message 215 (gnus-message
215 7 "Checking article %d in %s for NoCeM (%d of %d)..." 216 7 "Checking article %d in %s for NoCeM (%d of %d)..."
@@ -235,9 +236,13 @@ valid issuer, which is much faster if you are selective about the issuers."
235 (days-to-time gnus-nocem-expiry-wait))) 236 (days-to-time gnus-nocem-expiry-wait)))
236 (gnus-request-article-this-buffer (mail-header-number header) group) 237 (gnus-request-article-this-buffer (mail-header-number header) group)
237 (goto-char (point-min)) 238 (goto-char (point-min))
238 (when (re-search-forward "-----BEGIN PGP MESSAGE-----" nil t) 239 (when (re-search-forward
240 "-----BEGIN PGP\\( SIGNED\\)? MESSAGE-----"
241 nil t)
239 (delete-region (point-min) (match-beginning 0))) 242 (delete-region (point-min) (match-beginning 0)))
240 (when (re-search-forward "-----END PGP MESSAGE-----\n?" nil t) 243 (when (re-search-forward
244 "-----END PGP \\(MESSAGE\\|SIGNATURE\\)-----\n?"
245 nil t)
241 (delete-region (match-end 0) (point-max))) 246 (delete-region (match-end 0) (point-max)))
242 (goto-char (point-min)) 247 (goto-char (point-min))
243 ;; The article has to have proper NoCeM headers. 248 ;; The article has to have proper NoCeM headers.
@@ -334,6 +339,7 @@ valid issuer, which is much faster if you are selective about the issuers."
334 gnus-nocem-alist)) 339 gnus-nocem-alist))
335 t))) 340 t)))
336 341
342;;;###autoload
337(defun gnus-nocem-load-cache () 343(defun gnus-nocem-load-cache ()
338 "Load the NoCeM cache." 344 "Load the NoCeM cache."
339 (interactive) 345 (interactive)
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 465ce0627b7..00defe58943 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1047,9 +1047,12 @@ If LEVEL is non-nil, the news will be set up at level LEVEL."
1047 (gnus-check-bogus-newsgroups)) 1047 (gnus-check-bogus-newsgroups))
1048 1048
1049 ;; We might read in new NoCeM messages here. 1049 ;; We might read in new NoCeM messages here.
1050 (when (and gnus-use-nocem 1050 (when (and (not dont-connect)
1051 (not level) 1051 gnus-use-nocem
1052 (not dont-connect)) 1052 (or (and (numberp gnus-use-nocem)
1053 (numberp level)
1054 (>= level gnus-use-nocem))
1055 (not level)))
1053 (gnus-nocem-scan-groups)) 1056 (gnus-nocem-scan-groups))
1054 1057
1055 ;; Read any slave files. 1058 ;; Read any slave files.
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 2caccc0b70e..7a04c61151a 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -1580,9 +1580,23 @@ articles. This is not a good idea."
1580 :value t))) 1580 :value t)))
1581 1581
1582(defcustom gnus-use-nocem nil 1582(defcustom gnus-use-nocem nil
1583 "*If non-nil, Gnus will read NoCeM cancel messages." 1583 "*If non-nil, Gnus will read NoCeM cancel messages.
1584You can also set this variable to a positive number as a group level.
1585In that case, Gnus scans NoCeM messages when checking new news if this
1586value is not exceeding a group level that you specify as the prefix
1587argument to some commands, e.g. `gnus', `gnus-group-get-new-news', etc.
1588Otherwise, Gnus does not scan NoCeM messages if you specify a group
1589level to those commands."
1584 :group 'gnus-meta 1590 :group 'gnus-meta
1585 :type 'boolean) 1591 :type '(choice
1592 (const :tag "off" nil)
1593 (const :tag "on" t)
1594 (list :convert-widget
1595 (lambda (widget)
1596 (list 'integer :tag "group level"
1597 :value (if (boundp 'gnus-level-default-subscribed)
1598 gnus-level-default-subscribed
1599 3))))))
1586 1600
1587(defcustom gnus-suppress-duplicates nil 1601(defcustom gnus-suppress-duplicates nil
1588 "*If non-nil, Gnus will mark duplicate copies of the same article as read." 1602 "*If non-nil, Gnus will mark duplicate copies of the same article as read."
diff --git a/lisp/gnus/smiley.el b/lisp/gnus/smiley.el
index d7657e444b8..e8afe9dd10d 100644
--- a/lisp/gnus/smiley.el
+++ b/lisp/gnus/smiley.el
@@ -31,8 +31,21 @@
31;; I'm not sure we need that degree of rococoness and defaults like a 31;; I'm not sure we need that degree of rococoness and defaults like a
32;; yellow background. Also, using PBM means we can display the images 32;; yellow background. Also, using PBM means we can display the images
33;; more generally. -- fx 33;; more generally. -- fx
34 34;; `smiley.el' was replaced by `smiley-ems.el' on 2002-01-26 (after fx'
35;;; Test smileys: :-) :-\ :-( :-/ 35;; comment).
36
37;; Test smileys:
38;; smile ^:-) ^:)
39;; blink ;-) ;)
40;; forced :-]
41;; braindamaged 8-)
42;; indifferent :-|
43;; wry :-/ :-\
44;; sad :-(
45;; evil >:-)
46;; cry ;-(
47;; dead X-)
48;; grin :-D
36 49
37;;; Code: 50;;; Code:
38 51
@@ -45,8 +58,9 @@
45 :group 'gnus-visual) 58 :group 'gnus-visual)
46 59
47;; Maybe this should go. 60;; Maybe this should go.
48(defcustom smiley-data-directory (nnheader-find-etc-directory "images/smilies") 61(defcustom smiley-data-directory
49 "*Location of the smiley faces files." 62 (nnheader-find-etc-directory "images/smilies")
63 "Location of the smiley faces files."
50 :type 'directory 64 :type 'directory
51 :group 'smiley) 65 :group 'smiley)
52 66
@@ -61,8 +75,8 @@
61 ("\\(:-(\\)\\W" 1 "sad") 75 ("\\(:-(\\)\\W" 1 "sad")
62 ("\\(:-{\\)\\W" 1 "frown")) 76 ("\\(:-{\\)\\W" 1 "frown"))
63 "*A list of regexps to map smilies to images. 77 "*A list of regexps to map smilies to images.
64The elements are (REGEXP MATCH FILE), where MATCH is the submatch in 78The elements are (REGEXP MATCH IMAGE), where MATCH is the submatch in
65regexp to replace with IMAGE. IMAGE is the name of a PBM file in 79regexp to replace with IMAGE. IMAGE is the name of an image file in
66`smiley-data-directory'." 80`smiley-data-directory'."
67 :type '(repeat (list regexp 81 :type '(repeat (list regexp
68 (integer :tag "Regexp match number") 82 (integer :tag "Regexp match number")
@@ -78,7 +92,7 @@ regexp to replace with IMAGE. IMAGE is the name of a PBM file in
78 (when (gnus-image-type-available-p 'xpm) 92 (when (gnus-image-type-available-p 'xpm)
79 (push "xpm" types)) 93 (push "xpm" types))
80 types) 94 types)
81 "*List of suffixes on picon file names to try." 95 "*List of suffixes on smiley file names to try."
82 :version "22.1" 96 :version "22.1"
83 :type '(repeat string) 97 :type '(repeat string)
84 :group 'smiley) 98 :group 'smiley)
@@ -86,6 +100,7 @@ regexp to replace with IMAGE. IMAGE is the name of a PBM file in
86(defvar smiley-cached-regexp-alist nil) 100(defvar smiley-cached-regexp-alist nil)
87 101
88(defun smiley-update-cache () 102(defun smiley-update-cache ()
103 (setq smiley-cached-regexp-alist nil)
89 (dolist (elt (if (symbolp smiley-regexp-alist) 104 (dolist (elt (if (symbolp smiley-regexp-alist)
90 (symbol-value smiley-regexp-alist) 105 (symbol-value smiley-regexp-alist)
91 smiley-regexp-alist)) 106 smiley-regexp-alist))
@@ -104,12 +119,13 @@ regexp to replace with IMAGE. IMAGE is the name of a PBM file in
104 (push (list (car elt) (cadr elt) image) 119 (push (list (car elt) (cadr elt) image)
105 smiley-cached-regexp-alist))))))) 120 smiley-cached-regexp-alist)))))))
106 121
107(defvar smiley-mouse-map 122;; Not implemented:
108 (let ((map (make-sparse-keymap))) 123;; (defvar smiley-mouse-map
109 (define-key map [down-mouse-2] 'ignore) ; override widget 124;; (let ((map (make-sparse-keymap)))
110 (define-key map [mouse-2] 125;; (define-key map [down-mouse-2] 'ignore) ; override widget
111 'smiley-mouse-toggle-buffer) 126;; (define-key map [mouse-2]
112 map)) 127;; 'smiley-mouse-toggle-buffer)
128;; map))
113 129
114;;;###autoload 130;;;###autoload
115(defun smiley-region (start end) 131(defun smiley-region (start end)