aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey C Honig2012-12-09 22:04:15 -0500
committerJeffrey C Honig2012-12-09 22:04:15 -0500
commit6d14beddb06b5ae86f9dd770a1661ebd24846f28 (patch)
tree233fa48718f6dffdcf7d0a24913d22dde8d00185
parente1b489df7af8f7034f8c2ef275b786e93a39df31 (diff)
downloademacs-6d14beddb06b5ae86f9dd770a1661ebd24846f28.tar.gz
emacs-6d14beddb06b5ae86f9dd770a1661ebd24846f28.zip
* mh-folder.el (mh-inc-folder): Revert SF #2321115, SF bugs/250
which processed pending deletes and refiles. Call to mh-process-or-undo-commands to insure that pending changes are properly tagged after including new mail. (Closes SF bugs/271).
-rw-r--r--lisp/mh-e/ChangeLog7
-rw-r--r--lisp/mh-e/mh-folder.el11
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index 196d296fabd..c4d1e213079 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,10 @@
12012-12-10 Jeffrey C Honig <jch@honig.net>
2
3 * mh-folder.el (mh-inc-folder): Revert SF #2321115, SF bugs/250
4 which processed pending deletes and refiles. Call to
5 mh-process-or-undo-commands to insure that pending changes are
6 properly tagged after including new mail. (Closes SF bugs/271).
7
12012-12-08 Jeffrey C Honig <jch@honig.net> 82012-12-08 Jeffrey C Honig <jch@honig.net>
2 9
3 * mh-comp.el: Insure that mail-header-separator is set before 10 * mh-comp.el: Insure that mail-header-separator is set before
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el
index 6b5ff3b62e2..802e75bcc57 100644
--- a/lisp/mh-e/mh-folder.el
+++ b/lisp/mh-e/mh-folder.el
@@ -774,7 +774,7 @@ the message."
774 return-value)) 774 return-value))
775 775
776;;;###mh-autoload 776;;;###mh-autoload
777(defun mh-inc-folder (&optional file folder dont-exec-pending) 777(defun mh-inc-folder (&optional file folder)
778 "Incorporate new mail into a folder. 778 "Incorporate new mail into a folder.
779 779
780You can incorporate mail from any file into the current folder by 780You can incorporate mail from any file into the current folder by
@@ -785,10 +785,7 @@ The hook `mh-inc-folder-hook' is run after incorporating new
785mail. 785mail.
786 786
787Do not call this function from outside MH-E; use \\[mh-rmail] 787Do not call this function from outside MH-E; use \\[mh-rmail]
788instead. 788instead."
789
790In a program, the processing of outstanding commands is not performed
791if DONT-EXEC-PENDING is non-nil."
792 (interactive (list (if current-prefix-arg 789 (interactive (list (if current-prefix-arg
793 (expand-file-name 790 (expand-file-name
794 (read-file-name "inc mail from file: " 791 (read-file-name "inc mail from file: "
@@ -797,8 +794,6 @@ if DONT-EXEC-PENDING is non-nil."
797 (mh-prompt-for-folder "inc mail into" mh-inbox t)))) 794 (mh-prompt-for-folder "inc mail into" mh-inbox t))))
798 (if (not folder) 795 (if (not folder)
799 (setq folder mh-inbox)) 796 (setq folder mh-inbox))
800 (unless dont-exec-pending
801 (mh-process-or-undo-commands folder))
802 (let ((threading-needed-flag nil)) 797 (let ((threading-needed-flag nil))
803 (let ((config (current-window-configuration))) 798 (let ((config (current-window-configuration)))
804 (when (and mh-show-buffer (get-buffer mh-show-buffer)) 799 (when (and mh-show-buffer (get-buffer mh-show-buffer))
@@ -820,6 +815,8 @@ if DONT-EXEC-PENDING is non-nil."
820 nil)))) 815 nil))))
821 (mh-toggle-threads)) 816 (mh-toggle-threads))
822 (beginning-of-line) 817 (beginning-of-line)
818 (when (mh-outstanding-commands-p)
819 (mh-notate-deleted-and-refiled))
823 (if (and mh-showing-mode (looking-at mh-scan-valid-regexp)) (mh-show)) 820 (if (and mh-showing-mode (looking-at mh-scan-valid-regexp)) (mh-show))
824 (run-hooks 'mh-inc-folder-hook))) 821 (run-hooks 'mh-inc-folder-hook)))
825 822