diff options
| author | Stephen Gildea | 2018-09-02 17:06:29 -0700 |
|---|---|---|
| committer | Stephen Gildea | 2018-09-05 06:49:36 -0700 |
| commit | e932395656b80cc30ba3a53d83bddf57339aef7d (patch) | |
| tree | 65f6c8b6b4242c64ed9579715e4342dc185cf05a | |
| parent | baa6ae8724fd4cd7631164a89bf8eed4ff79cfc0 (diff) | |
| download | emacs-e932395656b80cc30ba3a53d83bddf57339aef7d.tar.gz emacs-e932395656b80cc30ba3a53d83bddf57339aef7d.zip | |
Do not call mh-next-msg from mh-junk-process-* fns
* mh-junk.el (mh-junk-process-blacklist, mh-junk-process-whitelist): Do
not call mh-next-msg. Now that these functions are called from
mh-execute-commands, they should not change the current message pointer.
The calls to mh-next-msg are probably left over from when blacklist and
whitelist message processing was done immediately.
| -rw-r--r-- | lisp/mh-e/mh-junk.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/mh-e/mh-junk.el b/lisp/mh-e/mh-junk.el index 61226066ed3..0a50e027ce0 100644 --- a/lisp/mh-e/mh-junk.el +++ b/lisp/mh-e/mh-junk.el | |||
| @@ -108,8 +108,7 @@ message(s) as specified by the option `mh-junk-disposition'." | |||
| 108 | (mh-iterate-on-range msg range | 108 | (mh-iterate-on-range msg range |
| 109 | (message "Blacklisting message %d..." msg) | 109 | (message "Blacklisting message %d..." msg) |
| 110 | (funcall (symbol-function blacklist-func) msg) | 110 | (funcall (symbol-function blacklist-func) msg) |
| 111 | (message "Blacklisting message %d...done" msg)) | 111 | (message "Blacklisting message %d...done" msg)))) |
| 112 | (mh-next-msg))) | ||
| 113 | 112 | ||
| 114 | ;;;###mh-autoload | 113 | ;;;###mh-autoload |
| 115 | (defun mh-junk-whitelist (range) | 114 | (defun mh-junk-whitelist (range) |
| @@ -164,8 +163,7 @@ classified as spam (see the option `mh-junk-program')." | |||
| 164 | (mh-iterate-on-range msg range | 163 | (mh-iterate-on-range msg range |
| 165 | (message "Whitelisting message %d..." msg) | 164 | (message "Whitelisting message %d..." msg) |
| 166 | (funcall (symbol-function whitelist-func) msg) | 165 | (funcall (symbol-function whitelist-func) msg) |
| 167 | (message "Whitelisting message %d...done" msg)) | 166 | (message "Whitelisting message %d...done" msg)))) |
| 168 | (mh-next-msg))) | ||
| 169 | 167 | ||
| 170 | 168 | ||
| 171 | 169 | ||