diff options
| author | Julien Danjou | 2011-03-01 14:32:24 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-03-01 14:32:24 +0000 |
| commit | fb9b91be56a3d294cf5a96a279e7f0d4edf64e41 (patch) | |
| tree | 7fbf3389cccdbbbb83fd09bb5d29094d8fd317a7 /lisp | |
| parent | 3b0468c4a6089cf4910a9c88c7a3c328110d9a02 (diff) | |
| download | emacs-fb9b91be56a3d294cf5a96a279e7f0d4edf64e41.tar.gz emacs-fb9b91be56a3d294cf5a96a279e7f0d4edf64e41.zip | |
gnus-art.el (list-identifier): Add list-identifier as a parameter group.
(article-hide-list-identifiers): Use list-identifier group parameter.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 27 |
2 files changed, 29 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9e8d96449bf..4562d544a58 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-03-01 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * gnus-art.el (list-identifier): Add list-identifier as a parameter | ||
| 4 | group. | ||
| 5 | (article-hide-list-identifiers): Use list-identifier group parameter. | ||
| 6 | |||
| 1 | 2011-02-28 Julien Danjou <julien@danjou.info> | 7 | 2011-02-28 Julien Danjou <julien@danjou.info> |
| 2 | 8 | ||
| 3 | * sieve.el (sieve-buffer-script-name): New local variable to store | 9 | * sieve.el (sieve-buffer-script-name): New local variable to store |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 250ebaf3f95..7469c4445c6 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1253,6 +1253,24 @@ predicate. See Info node `(gnus)Customizing Articles'." | |||
| 1253 | :link '(custom-manual "(gnus)Customizing Articles") | 1253 | :link '(custom-manual "(gnus)Customizing Articles") |
| 1254 | :type gnus-article-treat-custom) | 1254 | :type gnus-article-treat-custom) |
| 1255 | 1255 | ||
| 1256 | (gnus-define-group-parameter | ||
| 1257 | list-identifier | ||
| 1258 | :variable-document | ||
| 1259 | "Alist of regexps and correspondent identifiers." | ||
| 1260 | :variable-group gnus-article-washing | ||
| 1261 | :parameter-type | ||
| 1262 | '(choice :tag "Identifier" | ||
| 1263 | :value nil | ||
| 1264 | (symbol :tag "Item in `gnus-list-identifiers'" none) | ||
| 1265 | regexp | ||
| 1266 | (const :tag "None" nil)) | ||
| 1267 | :parameter-document | ||
| 1268 | "If non-nil, specify how to remove `identifiers' from articles' subject. | ||
| 1269 | |||
| 1270 | Any symbol is used to look up a regular expression to match the | ||
| 1271 | banner in `gnus-list-identifiers'. A string is used as a regular | ||
| 1272 | expression to match the identifier directly.") | ||
| 1273 | |||
| 1256 | (make-obsolete-variable 'gnus-treat-strip-pgp nil | 1274 | (make-obsolete-variable 'gnus-treat-strip-pgp nil |
| 1257 | "Gnus 5.10 (Emacs 22.1)") | 1275 | "Gnus 5.10 (Emacs 22.1)") |
| 1258 | 1276 | ||
| @@ -3056,10 +3074,11 @@ images if any to the browser, and deletes them when exiting the group | |||
| 3056 | The `gnus-list-identifiers' variable specifies what to do." | 3074 | The `gnus-list-identifiers' variable specifies what to do." |
| 3057 | (interactive) | 3075 | (interactive) |
| 3058 | (let ((inhibit-point-motion-hooks t) | 3076 | (let ((inhibit-point-motion-hooks t) |
| 3059 | (regexp (if (consp gnus-list-identifiers) | 3077 | (regexp (or (gnus-parameter-list-identifier gnus-newsgroup-name) |
| 3060 | (mapconcat 'identity gnus-list-identifiers " *\\|") | 3078 | (if (consp gnus-list-identifiers) |
| 3061 | gnus-list-identifiers)) | 3079 | (mapconcat 'identity gnus-list-identifiers " *\\|") |
| 3062 | (inhibit-read-only t)) | 3080 | gnus-list-identifiers))) |
| 3081 | (inhibit-read-only t)) | ||
| 3063 | (when regexp | 3082 | (when regexp |
| 3064 | (save-excursion | 3083 | (save-excursion |
| 3065 | (save-restriction | 3084 | (save-restriction |