]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not call mh-next-msg from mh-junk-process-* fns
authorStephen Gildea <stepheng+emacs@gildea.com>
Mon, 3 Sep 2018 00:06:29 +0000 (17:06 -0700)
committerStephen Gildea <stepheng+emacs@gildea.com>
Wed, 5 Sep 2018 13:49:36 +0000 (06:49 -0700)
* 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.

lisp/mh-e/mh-junk.el

index 61226066ed36f9d5e159a34d31869c4f325219f3..0a50e027ce01c1e9a53a2417c25fd0e412b8ecb9 100644 (file)
@@ -108,8 +108,7 @@ message(s) as specified by the option `mh-junk-disposition'."
     (mh-iterate-on-range msg range
       (message "Blacklisting message %d..." msg)
       (funcall (symbol-function blacklist-func) msg)
-      (message "Blacklisting message %d...done" msg))
-    (mh-next-msg)))
+      (message "Blacklisting message %d...done" msg))))
 
 ;;;###mh-autoload
 (defun mh-junk-whitelist (range)
@@ -164,8 +163,7 @@ classified as spam (see the option `mh-junk-program')."
     (mh-iterate-on-range msg range
       (message "Whitelisting message %d..." msg)
       (funcall (symbol-function whitelist-func) msg)
-      (message "Whitelisting message %d...done" msg))
-    (mh-next-msg)))
+      (message "Whitelisting message %d...done" msg))))
 
 \f