diff options
| author | Miles Bader | 2006-03-10 23:43:54 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-03-10 23:43:54 +0000 |
| commit | ea8ae7654a60bf4598a6b6269fe75fb859b91651 (patch) | |
| tree | 96a407a30821c25fe11f1e4e8743a449d663976f | |
| parent | af467e285ed142761527612f2c40fd6dfd02d345 (diff) | |
| download | emacs-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
| -rw-r--r-- | lisp/gnus/ChangeLog | 24 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-nocem.el | 18 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 18 | ||||
| -rw-r--r-- | lisp/gnus/smiley.el | 42 | ||||
| -rw-r--r-- | man/ChangeLog | 9 | ||||
| -rw-r--r-- | man/gnus.texi | 51 |
8 files changed, 131 insertions, 45 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 @@ | |||
| 1 | 2006-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 | |||
| 10 | 2006-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 | |||
| 1 | 2006-03-08 Reiner Steib <Reiner.Steib@gmx.de> | 25 | 2006-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. |
| 1584 | You can also set this variable to a positive number as a group level. | ||
| 1585 | In that case, Gnus scans NoCeM messages when checking new news if this | ||
| 1586 | value is not exceeding a group level that you specify as the prefix | ||
| 1587 | argument to some commands, e.g. `gnus', `gnus-group-get-new-news', etc. | ||
| 1588 | Otherwise, Gnus does not scan NoCeM messages if you specify a group | ||
| 1589 | level 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. |
| 64 | The elements are (REGEXP MATCH FILE), where MATCH is the submatch in | 78 | The elements are (REGEXP MATCH IMAGE), where MATCH is the submatch in |
| 65 | regexp to replace with IMAGE. IMAGE is the name of a PBM file in | 79 | regexp 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) |
diff --git a/man/ChangeLog b/man/ChangeLog index c0060317a5c..ca301d27c03 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2006-03-10 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus.texi (NoCeM): Mention gnus-use-nocem can also be a number. | ||
| 4 | |||
| 5 | 2006-03-10 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 6 | |||
| 7 | * gnus.texi (Fancy Mail Splitting): Improve sentences so as to be | ||
| 8 | easy to understand. | ||
| 9 | |||
| 1 | 2006-03-09 Katsumi Yamaoka <yamaoka@jpl.org> | 10 | 2006-03-09 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 11 | ||
| 3 | * gnus.texi: Markup fix. | 12 | * gnus.texi: Markup fix. |
diff --git a/man/gnus.texi b/man/gnus.texi index 72596ed26ce..c64305a3a66 100644 --- a/man/gnus.texi +++ b/man/gnus.texi | |||
| @@ -14007,18 +14007,21 @@ If the split is a string, that will be taken as a group name. Normal | |||
| 14007 | regexp match expansion will be done. See below for examples. | 14007 | regexp match expansion will be done. See below for examples. |
| 14008 | 14008 | ||
| 14009 | @c Don't fold this line. | 14009 | @c Don't fold this line. |
| 14010 | @item (@var{field} @var{value} [- @var{restrict} [@dots{}] ] @var{split} [@var{invert-match-partial-words}]) | 14010 | @item (@var{field} @var{value} [- @var{restrict} [@dots{}] ] @var{split} [@var{invert-partial}]) |
| 14011 | If the split is a list, the first element of which is a string, then | 14011 | The split can be a list containing at least three elements. If the |
| 14012 | store the message as specified by @var{split}, if header @var{field} | 14012 | first element @var{field} (a regexp matching a header) contains |
| 14013 | (a regexp) contains @var{value} (also a regexp). If @var{restrict} | 14013 | @var{value} (also a regexp) then store the message as specified by |
| 14014 | (yet another regexp) matches some string after @var{field} and before | 14014 | @var{split}. |
| 14015 | the end of the matched @var{value}, the @var{split} is ignored. If | 14015 | |
| 14016 | none of the @var{restrict} clauses match, @var{split} is processed. | 14016 | If @var{restrict} (yet another regexp) matches some string after |
| 14017 | 14017 | @var{field} and before the end of the matched @var{value}, the | |
| 14018 | The last element @var{invert-match-partial-words} is optional. If it is | 14018 | @var{split} is ignored. If none of the @var{restrict} clauses match, |
| 14019 | not omitted and the value is non-@code{nil}, the match-partial-words | 14019 | @var{split} is processed. |
| 14020 | behavior controlled by the @code{nnmail-split-fancy-match-partial-words} | 14020 | |
| 14021 | variable (see below) will be inverted. (New in Gnus 5.10.7) | 14021 | The last element @var{invert-partial} is optional. If it is |
| 14022 | non-@code{nil}, the match-partial-words behavior controlled by the | ||
| 14023 | variable @code{nnmail-split-fancy-match-partial-words} (see below) is | ||
| 14024 | be inverted. (New in Gnus 5.10.7) | ||
| 14022 | 14025 | ||
| 14023 | @item (| @var{split} @dots{}) | 14026 | @item (| @var{split} @dots{}) |
| 14024 | If the split is a list, and the first element is @code{|} (vertical | 14027 | If the split is a list, and the first element is @code{|} (vertical |
| @@ -14108,14 +14111,13 @@ in the rear of a word will be ignored. For example, the @var{value} | |||
| 14108 | @code{".*@@example\\.com"} does. | 14111 | @code{".*@@example\\.com"} does. |
| 14109 | 14112 | ||
| 14110 | @item | 14113 | @item |
| 14111 | You can set the @var{invert-match-partial-words} flag in your split | 14114 | You can set the @var{invert-partial} flag in your split rules of the |
| 14112 | rules of the @samp{(@var{field} @var{value} @dots{})} types, | 14115 | @samp{(@var{field} @var{value} @dots{})} types, aforementioned in this |
| 14113 | aforementioned in this section. If the flag is set, word boundaries on | 14116 | section. If the flag is set, word boundaries on both sides of a word |
| 14114 | both sides of a word are ignored even if | 14117 | are ignored even if @code{nnmail-split-fancy-match-partial-words} is |
| 14115 | @code{nnmail-split-fancy-match-partial-words} is @code{nil}. | 14118 | @code{nil}. Contrarily, if the flag is set, word boundaries are not |
| 14116 | Contrarily, if the flag is set, word boundaries are not ignored even if | 14119 | ignored even if @code{nnmail-split-fancy-match-partial-words} is |
| 14117 | @code{nnmail-split-fancy-match-partial-words} is non-@code{nil}. (New | 14120 | non-@code{nil}. (New in Gnus 5.10.7) |
| 14118 | in Gnus 5.10.7) | ||
| 14119 | @end enumerate | 14121 | @end enumerate |
| 14120 | 14122 | ||
| 14121 | @vindex nnmail-split-abbrev-alist | 14123 | @vindex nnmail-split-abbrev-alist |
| @@ -21793,6 +21795,15 @@ There are some variables to customize, of course: | |||
| 21793 | Set this variable to @code{t} to set the ball rolling. It is @code{nil} | 21795 | Set this variable to @code{t} to set the ball rolling. It is @code{nil} |
| 21794 | by default. | 21796 | by default. |
| 21795 | 21797 | ||
| 21798 | You can also set this variable to a positive number as a group level. | ||
| 21799 | In that case, Gnus scans NoCeM messages when checking new news if this | ||
| 21800 | value is not exceeding a group level that you specify as the prefix | ||
| 21801 | argument to some commands, e.g. @code{gnus}, | ||
| 21802 | @code{gnus-group-get-new-news}, etc. Otherwise, Gnus does not scan | ||
| 21803 | NoCeM messages if you specify a group level to those commands. For | ||
| 21804 | example, if you use 1 or 2 on the mail groups and the levels on the news | ||
| 21805 | groups remain the default, 3 is the best choice. | ||
| 21806 | |||
| 21796 | @item gnus-nocem-groups | 21807 | @item gnus-nocem-groups |
| 21797 | @vindex gnus-nocem-groups | 21808 | @vindex gnus-nocem-groups |
| 21798 | Gnus will look for NoCeM messages in the groups in this list. The | 21809 | Gnus will look for NoCeM messages in the groups in this list. The |