diff options
| author | Bastien Guerry | 2008-02-10 22:10:09 +0000 |
|---|---|---|
| committer | Bastien Guerry | 2008-02-10 22:10:09 +0000 |
| commit | be16d955c87a73ec4d585f5d001971f90bcccd17 (patch) | |
| tree | aad6bd9e2b67cfb8361a545f82347ee4bf5616fa | |
| parent | 78df961d5989299fc8e663fd83a33ea65256efdd (diff) | |
| download | emacs-be16d955c87a73ec4d585f5d001971f90bcccd17.tar.gz emacs-be16d955c87a73ec4d585f5d001971f90bcccd17.zip | |
(rmail-nonignored-headers): Allow to be nil.
(rmail-clear-headers): Don't check `rmail-nonignored-headers' when
it is nil.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3157aeef6e6..0e664149b94 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-02-10 Bastien Guerry <bzg@altern.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-nonignored-headers): Allow to be nil. | ||
| 4 | (rmail-clear-headers): Don't check `rmail-nonignored-headers' when | ||
| 5 | it is nil. | ||
| 6 | |||
| 1 | 2008-02-10 Daiki Ueno <ueno@unixuser.org> | 7 | 2008-02-10 Daiki Ueno <ueno@unixuser.org> |
| 2 | 8 | ||
| 3 | * epg-config.el: Expand the contents of epg-package-info.el. | 9 | * epg-config.el: Expand the contents of epg-package-info.el. |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 7ea89ab84bf..ed434ad75cb 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -299,6 +299,7 @@ go to that message and type \\[rmail-toggle-header] twice." | |||
| 299 | "*Regexp to match X header fields that Rmail should show. | 299 | "*Regexp to match X header fields that Rmail should show. |
| 300 | This regexp overrides `rmail-ignored-headers'; if both this regexp | 300 | This regexp overrides `rmail-ignored-headers'; if both this regexp |
| 301 | and that one match a certain header field, Rmail shows the field. | 301 | and that one match a certain header field, Rmail shows the field. |
| 302 | If this is nil, ignore all header fields in `rmail-ignored-headers'. | ||
| 302 | 303 | ||
| 303 | This variable is used for reformatting the message header, | 304 | This variable is used for reformatting the message header, |
| 304 | which normally happens once for each message, | 305 | which normally happens once for each message, |
| @@ -306,7 +307,7 @@ when you view the message for the first time in Rmail. | |||
| 306 | To make a change in this variable take effect | 307 | To make a change in this variable take effect |
| 307 | for a message that you have already viewed, | 308 | for a message that you have already viewed, |
| 308 | go to that message and type \\[rmail-toggle-header] twice." | 309 | go to that message and type \\[rmail-toggle-header] twice." |
| 309 | :type 'regexp | 310 | :type '(choice (const nil) (regexp)) |
| 310 | :group 'rmail-headers) | 311 | :group 'rmail-headers) |
| 311 | 312 | ||
| 312 | ;;;###autoload | 313 | ;;;###autoload |
| @@ -2329,7 +2330,8 @@ unless they also match `rmail-nonignored-headers'." | |||
| 2329 | (while (and ignored-headers | 2330 | (while (and ignored-headers |
| 2330 | (re-search-forward ignored-headers nil t)) | 2331 | (re-search-forward ignored-headers nil t)) |
| 2331 | (beginning-of-line) | 2332 | (beginning-of-line) |
| 2332 | (if (looking-at rmail-nonignored-headers) | 2333 | (if (and rmail-nonignored-headers |
| 2334 | (looking-at rmail-nonignored-headers)) | ||
| 2333 | (forward-line 1) | 2335 | (forward-line 1) |
| 2334 | (delete-region (point) | 2336 | (delete-region (point) |
| 2335 | (save-excursion | 2337 | (save-excursion |