diff options
| author | Bill Wohler | 2005-12-04 22:34:49 +0000 |
|---|---|---|
| committer | Bill Wohler | 2005-12-04 22:34:49 +0000 |
| commit | 2be362c2d561922b4c6603630165d8ef5e30a894 (patch) | |
| tree | e2cc2277b682cedce57ef9e007e96a18501b0f15 | |
| parent | 7b18d88fe2382d1fbc5f3a1d202c3d3efb7a93fe (diff) | |
| download | emacs-2be362c2d561922b4c6603630165d8ef5e30a894.tar.gz emacs-2be362c2d561922b4c6603630165d8ef5e30a894.zip | |
* mh-comp.el (mh-forward): Went over all uses of the word "RANGE" in
the docstrings and made usage consistent. Generally speaking,
"messages in range" and "range of messages" is redundant and just
"range" can be used in most circumstances. Also ensured that
mh-interactive-range was mentioned in all interactive functions that
use a range which describes the range argument for both users and
programmers.
* mh-e.el (mh-delete-msg-no-motion, mh-refile-msg)
(mh-refile-or-write-again, mh-rescan-folder, mh-undo)
(mh-visit-folder, mh-scan-folder, mh-regenerate-headers)
(mh-notate-user-sequences, mh-delete-msg-from-seq, mh-catchup): Ditto.
* mh-funcs.el (mh-copy-msg, mh-pack-folder, mh-pack-folder-1): Ditto.
* mh-junk.el (mh-junk-blacklist, mh-junk-whitelist): Ditto.
* mh-print.el (mh-ps-print-range, mh-ps-print-msg)
(mh-ps-print-msg-file, mh-print-msg): Ditto.
* mh-seq.el (mh-put-msg-in-seq, mh-range-to-msg-list)
(mh-narrow-to-range, mh-toggle-tick): Ditto.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 27 | ||||
| -rw-r--r-- | lisp/mh-e/mh-comp.el | 7 | ||||
| -rw-r--r-- | lisp/mh-e/mh-e.el | 105 | ||||
| -rw-r--r-- | lisp/mh-e/mh-funcs.el | 27 | ||||
| -rw-r--r-- | lisp/mh-e/mh-junk.el | 18 | ||||
| -rw-r--r-- | lisp/mh-e/mh-print.el | 9 | ||||
| -rw-r--r-- | lisp/mh-e/mh-seq.el | 21 |
7 files changed, 149 insertions, 65 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 746157e6e51..780b5cd067e 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,30 @@ | |||
| 1 | 2005-12-04 Bill Wohler <wohler@newt.com> | ||
| 2 | |||
| 3 | * mh-comp.el (mh-forward): Went over all uses of the word "RANGE" | ||
| 4 | in the docstrings and made usage consistent. Generally speaking, | ||
| 5 | "messages in range" and "range of messages" is redundant and just | ||
| 6 | "range" can be used in most circumstances. Also ensured that | ||
| 7 | mh-interactive-range was mentioned in all interactive functions | ||
| 8 | that use a range which describes the range argument for both | ||
| 9 | users and programmers. | ||
| 10 | |||
| 11 | * mh-e.el (mh-delete-msg-no-motion, mh-refile-msg) | ||
| 12 | (mh-refile-or-write-again, mh-rescan-folder, mh-undo) | ||
| 13 | (mh-visit-folder, mh-scan-folder, mh-regenerate-headers) | ||
| 14 | (mh-notate-user-sequences, mh-delete-msg-from-seq, mh-catchup): | ||
| 15 | Ditto. | ||
| 16 | |||
| 17 | * mh-funcs.el (mh-copy-msg, mh-pack-folder, mh-pack-folder-1): | ||
| 18 | Ditto. | ||
| 19 | |||
| 20 | * mh-junk.el (mh-junk-blacklist, mh-junk-whitelist): Ditto. | ||
| 21 | |||
| 22 | * mh-print.el (mh-ps-print-range, mh-ps-print-msg) | ||
| 23 | (mh-ps-print-msg-file, mh-print-msg): Ditto. | ||
| 24 | |||
| 25 | * mh-seq.el (mh-put-msg-in-seq, mh-range-to-msg-list) | ||
| 26 | (mh-narrow-to-range, mh-toggle-tick): Ditto. | ||
| 27 | |||
| 1 | 2005-12-01 Bill Wohler <wohler@newt.com> | 28 | 2005-12-01 Bill Wohler <wohler@newt.com> |
| 2 | 29 | ||
| 3 | Rewrote Reading Mail chapter in manual which affected mh-show | 30 | Rewrote Reading Mail chapter in manual which affected mh-show |
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index d8d8b48d74d..4a812d6822c 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el | |||
| @@ -327,18 +327,15 @@ See also `mh-send'." | |||
| 327 | 327 | ||
| 328 | ;;;###mh-autoload | 328 | ;;;###mh-autoload |
| 329 | (defun mh-forward (to cc &optional range) | 329 | (defun mh-forward (to cc &optional range) |
| 330 | "Forward message(s). | 330 | "Forward message. |
| 331 | 331 | ||
| 332 | You are prompted for the TO and CC recipients. You are given a draft to edit | 332 | You are prompted for the TO and CC recipients. You are given a draft to edit |
| 333 | that looks like it would if you had run the MH command \"forw\". You are given | 333 | that looks like it would if you had run the MH command \"forw\". You are given |
| 334 | a chance to add some text. | 334 | a chance to add some text. |
| 335 | 335 | ||
| 336 | You can forward several messages by using a RANGE. All of the messages in the | 336 | You can forward several messages by using a RANGE. Check the documentation of |
| 337 | range are inserted into your draft. Check the documentation of | ||
| 338 | `mh-interactive-range' to see how RANGE is read in interactive use. | 337 | `mh-interactive-range' to see how RANGE is read in interactive use. |
| 339 | 338 | ||
| 340 | The default message is the current message. | ||
| 341 | |||
| 342 | See also `mh-compose-forward-as-mime-flag', `mh-forward-subject-format', | 339 | See also `mh-compose-forward-as-mime-flag', `mh-forward-subject-format', |
| 343 | and `mh-send'." | 340 | and `mh-send'." |
| 344 | (interactive (list (mh-interactive-read-address "To: ") | 341 | (interactive (list (mh-interactive-read-address "To: ") |
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 86d9bbfcddf..c69c62bd734 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el | |||
| @@ -552,11 +552,10 @@ interactive use." | |||
| 552 | (if (looking-at mh-scan-deleted-msg-regexp) (mh-next-msg))) | 552 | (if (looking-at mh-scan-deleted-msg-regexp) (mh-next-msg))) |
| 553 | 553 | ||
| 554 | (defun mh-delete-msg-no-motion (range) | 554 | (defun mh-delete-msg-no-motion (range) |
| 555 | "Delete message, don't move to next message. | 555 | "Delete RANGE, don't move to next message. |
| 556 | 556 | ||
| 557 | This command marks the message (or messages in RANGE) for deletion but leaves | 557 | This command marks the RANGE for deletion but leaves the cursor at the current |
| 558 | the cursor at the current message in case you wish to perform other operations | 558 | message in case you wish to perform other operations on the message. |
| 559 | on the message. | ||
| 560 | 559 | ||
| 561 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 560 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 562 | interactive use." | 561 | interactive use." |
| @@ -744,14 +743,20 @@ The default folder name is generated by the option | |||
| 744 | t)) | 743 | t)) |
| 745 | 744 | ||
| 746 | (defun mh-refile-msg (range folder &optional dont-update-last-destination-flag) | 745 | (defun mh-refile-msg (range folder &optional dont-update-last-destination-flag) |
| 747 | "Refile RANGE into FOLDER. | 746 | "Refile (output) RANGE into FOLDER. |
| 747 | |||
| 748 | You are prompted for the folder name. Note that this command can also be used | ||
| 749 | to create folders. If you specify a folder that does not exist, you will be | ||
| 750 | prompted to create it. | ||
| 751 | |||
| 752 | The hook `mh-refile-msg-hook' is called after a message is marked to be | ||
| 753 | refiled. | ||
| 748 | 754 | ||
| 749 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 755 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 750 | interactive use. | 756 | interactive use. |
| 751 | 757 | ||
| 752 | If optional argument DONT-UPDATE-LAST-DESTINATION-FLAG is non-nil then the | 758 | If DONT-UPDATE-LAST-DESTINATION-FLAG is non-nil, then the variables |
| 753 | variables `mh-last-destination' and `mh-last-destination-folder' are not | 759 | `mh-last-destination' and `mh-last-destination-folder' are not updated." |
| 754 | updated." | ||
| 755 | (interactive (list (mh-interactive-range "Refile") | 760 | (interactive (list (mh-interactive-range "Refile") |
| 756 | (intern (mh-prompt-for-refile-folder)))) | 761 | (intern (mh-prompt-for-refile-folder)))) |
| 757 | (unless dont-update-last-destination-flag | 762 | (unless dont-update-last-destination-flag |
| @@ -765,7 +770,7 @@ updated." | |||
| 765 | "Repeat last output command. | 770 | "Repeat last output command. |
| 766 | 771 | ||
| 767 | If you are refiling several messages into the same folder, you can use this | 772 | If you are refiling several messages into the same folder, you can use this |
| 768 | command to repeat the last refile or write. Or, you can use a range. | 773 | command to repeat the last refile or write. You can use a range. |
| 769 | 774 | ||
| 770 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 775 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 771 | interactive use. | 776 | interactive use. |
| @@ -1054,11 +1059,19 @@ Also removes all content from the folder buffer." | |||
| 1054 | (let ((buffer-read-only nil)) (erase-buffer))) | 1059 | (let ((buffer-read-only nil)) (erase-buffer))) |
| 1055 | 1060 | ||
| 1056 | (defun mh-rescan-folder (&optional range dont-exec-pending) | 1061 | (defun mh-rescan-folder (&optional range dont-exec-pending) |
| 1057 | "Rescan a folder after optionally processing the outstanding commands. | 1062 | "Rescan folder\\<mh-folder-mode-map>. |
| 1058 | If optional prefix argument RANGE is provided, prompt for the range of | 1063 | |
| 1059 | messages to display. Otherwise show the entire folder. | 1064 | This command is useful to grab all messages in your \"+inbox\" after |
| 1060 | If optional argument DONT-EXEC-PENDING is non-nil then pending deletes and | 1065 | processing your new mail for the first time. If you don't want to rescan the |
| 1061 | refiles aren't carried out." | 1066 | entire folder, this command will accept a RANGE. Check the documentation of |
| 1067 | `mh-interactive-range' to see how RANGE is read in interactive use. | ||
| 1068 | |||
| 1069 | This command will ask if you want to process refiles or deletes first and then | ||
| 1070 | either run \\[mh-execute-commands] for you or undo the pending refiles and | ||
| 1071 | deletes, which are lost. | ||
| 1072 | |||
| 1073 | In a program, the processing of outstanding commands is not performed if | ||
| 1074 | DONT-EXEC-PENDING is non-nil." | ||
| 1062 | (interactive (list (if current-prefix-arg | 1075 | (interactive (list (if current-prefix-arg |
| 1063 | (mh-read-range "Rescan" mh-current-folder t nil t | 1076 | (mh-read-range "Rescan" mh-current-folder t nil t |
| 1064 | mh-interpret-number-as-range-flag) | 1077 | mh-interpret-number-as-range-flag) |
| @@ -1109,7 +1122,12 @@ can be made with the command \\[mh-refile-or-write-again]." | |||
| 1109 | (mh-show))) | 1122 | (mh-show))) |
| 1110 | 1123 | ||
| 1111 | (defun mh-undo (range) | 1124 | (defun mh-undo (range) |
| 1112 | "Undo the pending deletion or refile of the specified RANGE. | 1125 | "Undo pending deletes or refiles in RANGE. |
| 1126 | |||
| 1127 | If you've deleted a message or refiled it, but changed your mind, you can | ||
| 1128 | cancel the action before you've executed it. Use this command to undo a refile | ||
| 1129 | on or deletion of a single message. You can also undo refiles and deletes for | ||
| 1130 | messages that are found in a given RANGE. | ||
| 1113 | 1131 | ||
| 1114 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 1132 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 1115 | interactive use." | 1133 | interactive use." |
| @@ -1254,17 +1272,29 @@ used to avoid problems in corner cases involving folders whose names end with a | |||
| 1254 | (mh-folder-size-folder folder))) | 1272 | (mh-folder-size-folder folder))) |
| 1255 | 1273 | ||
| 1256 | (defun mh-visit-folder (folder &optional range index-data) | 1274 | (defun mh-visit-folder (folder &optional range index-data) |
| 1257 | "Visit FOLDER and display RANGE of messages. | 1275 | "Visit FOLDER. |
| 1258 | Do not call this function from outside MH-E; see \\[mh-rmail] instead. | 1276 | |
| 1277 | When you want to read the messages that you have refiled into folders, use | ||
| 1278 | this command to visit the folder. You are prompted for the folder name. | ||
| 1279 | |||
| 1280 | The folder buffer will show just unseen messages if there are any; otherwise, | ||
| 1281 | it will show all the messages in the buffer as long there are fewer than | ||
| 1282 | `mh-large-folder' messages. If there are more, then you are prompted for a | ||
| 1283 | range of messages to scan. | ||
| 1284 | |||
| 1285 | You can provide a prefix argument in order to specify a RANGE of messages to | ||
| 1286 | show when you visit the folder. In this case, regions are not used to specify | ||
| 1287 | the range and `mh-large-folder' is ignored. Check the documentation of | ||
| 1288 | `mh-interactive-range' to see how RANGE is read in interactive use. | ||
| 1259 | 1289 | ||
| 1260 | If RANGE is nil (the default if it is omitted when called non-interactively), | 1290 | Note that this command can also be used to create folders. If you specify a |
| 1261 | then all messages in FOLDER are displayed. | 1291 | folder that does not exist, you will be prompted to create it. |
| 1262 | 1292 | ||
| 1263 | If an index buffer is being created then INDEX-DATA is used to initialize the | 1293 | Do not call this function from outside MH-E; use \\[mh-rmail] instead. |
| 1264 | index buffer specific data structures. | ||
| 1265 | 1294 | ||
| 1266 | A prefix argument will cause a prompt for the RANGE of messages | 1295 | If, in a program, RANGE is nil (the default), then all messages in FOLDER are |
| 1267 | regardless of the size of the `mh-large-folder' variable." | 1296 | displayed. If an index buffer is being created then INDEX-DATA is used to |
| 1297 | initialize the index buffer specific data structures." | ||
| 1268 | (interactive (let ((folder-name (mh-prompt-for-folder "Visit" mh-inbox t))) | 1298 | (interactive (let ((folder-name (mh-prompt-for-folder "Visit" mh-inbox t))) |
| 1269 | (list folder-name | 1299 | (list folder-name |
| 1270 | (mh-read-range "Scan" folder-name t nil | 1300 | (mh-read-range "Scan" folder-name t nil |
| @@ -1762,10 +1792,15 @@ DESKTOP-BUFFER-MISC holds a list of miscellaneous info used by the | |||
| 1762 | '(mh-folder-mode . mh-restore-desktop-buffer))) | 1792 | '(mh-folder-mode . mh-restore-desktop-buffer))) |
| 1763 | 1793 | ||
| 1764 | (defun mh-scan-folder (folder range &optional dont-exec-pending) | 1794 | (defun mh-scan-folder (folder range &optional dont-exec-pending) |
| 1765 | "Scan the FOLDER over the RANGE. | 1795 | "Scan FOLDER over RANGE. |
| 1766 | If the optional argument DONT-EXEC-PENDING is non-nil then pending deletes and | 1796 | |
| 1767 | refiles aren't carried out. | 1797 | After the scan is performed, switch to the buffer associated with FOLDER. |
| 1768 | Return in the folder's buffer." | 1798 | |
| 1799 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | ||
| 1800 | interactive use. | ||
| 1801 | |||
| 1802 | The processing of outstanding commands is not performed if DONT-EXEC-PENDING | ||
| 1803 | is non-nil." | ||
| 1769 | (when (stringp range) | 1804 | (when (stringp range) |
| 1770 | (setq range (delete "" (split-string range "[ \t\n]")))) | 1805 | (setq range (delete "" (split-string range "[ \t\n]")))) |
| 1771 | (cond ((null (get-buffer folder)) | 1806 | (cond ((null (get-buffer folder)) |
| @@ -1804,7 +1839,7 @@ Note that columns in Emacs start with 0." | |||
| 1804 | (setq mh-cmd-note column)) | 1839 | (setq mh-cmd-note column)) |
| 1805 | 1840 | ||
| 1806 | (defun mh-regenerate-headers (range &optional update) | 1841 | (defun mh-regenerate-headers (range &optional update) |
| 1807 | "Scan folder over range RANGE. | 1842 | "Scan folder over RANGE. |
| 1808 | If UPDATE, append the scan lines, otherwise replace." | 1843 | If UPDATE, append the scan lines, otherwise replace." |
| 1809 | (let ((folder mh-current-folder) | 1844 | (let ((folder mh-current-folder) |
| 1810 | (range (if (and range (atom range)) (list range) range)) | 1845 | (range (if (and range (atom range)) (list range) range)) |
| @@ -2331,9 +2366,10 @@ Expands ranges into set of individual numbers." | |||
| 2331 | msgs)) | 2366 | msgs)) |
| 2332 | 2367 | ||
| 2333 | (defun mh-notate-user-sequences (&optional range) | 2368 | (defun mh-notate-user-sequences (&optional range) |
| 2334 | "Mark user-defined sequences in the messages specified by RANGE. | 2369 | "Mark user-defined sequences in RANGE. |
| 2335 | The optional argument RANGE can be a message number, a list of message | 2370 | |
| 2336 | numbers, a sequence, a region in a cons cell. If nil all messages are notated." | 2371 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 2372 | interactive use; if nil all messages are notated." | ||
| 2337 | (unless range | 2373 | (unless range |
| 2338 | (setq range (cons (point-min) (point-max)))) | 2374 | (setq range (cons (point-min) (point-max)))) |
| 2339 | (let ((seqs mh-seq-list) | 2375 | (let ((seqs mh-seq-list) |
| @@ -2366,8 +2402,7 @@ numbers, a sequence, a region in a cons cell. If nil all messages are notated." | |||
| 2366 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 2402 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 2367 | interactive use. | 2403 | interactive use. |
| 2368 | 2404 | ||
| 2369 | Optional third arg INTERNAL-FLAG non-nil means do not inform MH of the | 2405 | In a program, non-nil INTERNAL-FLAG means do not inform MH of the change." |
| 2370 | change." | ||
| 2371 | (interactive (list (mh-interactive-range "Delete") | 2406 | (interactive (list (mh-interactive-range "Delete") |
| 2372 | (mh-read-seq-default "Delete from" t) | 2407 | (mh-read-seq-default "Delete from" t) |
| 2373 | nil)) | 2408 | nil)) |
| @@ -2393,9 +2428,9 @@ change." | |||
| 2393 | (apply #'mh-speed-flists t folders-changed))))) | 2428 | (apply #'mh-speed-flists t folders-changed))))) |
| 2394 | 2429 | ||
| 2395 | (defun mh-catchup (range) | 2430 | (defun mh-catchup (range) |
| 2396 | "Delete RANGE from the `mh-unseen-seq' sequence. | 2431 | "Delete RANGE from the \"unseen\" sequence. |
| 2397 | 2432 | ||
| 2398 | Check the document of `mh-interactive-range' to see how RANGE is read in | 2433 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 2399 | interactive use." | 2434 | interactive use." |
| 2400 | (interactive (list (mh-interactive-range "Catchup" | 2435 | (interactive (list (mh-interactive-range "Catchup" |
| 2401 | (cons (point-min) (point-max))))) | 2436 | (cons (point-min) (point-max))))) |
diff --git a/lisp/mh-e/mh-funcs.el b/lisp/mh-e/mh-funcs.el index 4f9adbe970b..ca2f7333eb8 100644 --- a/lisp/mh-e/mh-funcs.el +++ b/lisp/mh-e/mh-funcs.el | |||
| @@ -79,7 +79,14 @@ field yourself." | |||
| 79 | 79 | ||
| 80 | ;;;###mh-autoload | 80 | ;;;###mh-autoload |
| 81 | (defun mh-copy-msg (range folder) | 81 | (defun mh-copy-msg (range folder) |
| 82 | "Copy the specified RANGE to another FOLDER without deleting them. | 82 | "Copy RANGE to FOLDER\\<mh-folder-mode-map>. |
| 83 | |||
| 84 | If you wish to copy a message to another folder, you can use this command | ||
| 85 | \(see the \"-link\" argument to \"refile\"). Like the command | ||
| 86 | \\[mh-refile-msg], this command prompts you for the name of the target folder | ||
| 87 | and you can specify a range. Note that unlike the command \\[mh-refile-msg], | ||
| 88 | the copy takes place immediately. The original copy remains in the current | ||
| 89 | folder. | ||
| 83 | 90 | ||
| 84 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 91 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 85 | interactive use." | 92 | interactive use." |
| @@ -156,10 +163,16 @@ Display the results only if something went wrong." | |||
| 156 | 163 | ||
| 157 | ;;;###mh-autoload | 164 | ;;;###mh-autoload |
| 158 | (defun mh-pack-folder (range) | 165 | (defun mh-pack-folder (range) |
| 159 | "Renumber the messages of a folder to be 1..n. | 166 | "Pack folder\\<mh-folder-mode-map>. |
| 160 | First, offer to execute any outstanding commands for the current folder. If | 167 | |
| 161 | optional prefix argument provided, prompt for the RANGE of messages to display | 168 | This command packs the folder, removing gaps from the numbering sequence. If |
| 162 | after packing. Otherwise, show the entire folder." | 169 | you don't want to rescan the entire folder afterward, this command will accept |
| 170 | a RANGE. Check the documentation of `mh-interactive-range' to see how RANGE is | ||
| 171 | read in interactive use. | ||
| 172 | |||
| 173 | This command will ask if you want to process refiles or deletes first and then | ||
| 174 | either run \\[mh-execute-commands] for you or undo the pending refiles and | ||
| 175 | deletes, which are lost." | ||
| 163 | (interactive (list (if current-prefix-arg | 176 | (interactive (list (if current-prefix-arg |
| 164 | (mh-read-range "Scan" mh-current-folder t nil t | 177 | (mh-read-range "Scan" mh-current-folder t nil t |
| 165 | mh-interpret-number-as-range-flag) | 178 | mh-interpret-number-as-range-flag) |
| @@ -175,8 +188,8 @@ after packing. Otherwise, show the entire folder." | |||
| 175 | 188 | ||
| 176 | (defun mh-pack-folder-1 (range) | 189 | (defun mh-pack-folder-1 (range) |
| 177 | "Close and pack the current folder. | 190 | "Close and pack the current folder. |
| 178 | Display the given RANGE of messages after packing. If RANGE is nil, show the | 191 | |
| 179 | entire folder." | 192 | Display RANGE after packing, or the entire folder if RANGE is nil." |
| 180 | (mh-process-or-undo-commands mh-current-folder) | 193 | (mh-process-or-undo-commands mh-current-folder) |
| 181 | (message "Packing folder...") | 194 | (message "Packing folder...") |
| 182 | (mh-set-folder-modified-p t) ; lock folder while packing | 195 | (mh-set-folder-modified-p t) ; lock folder while packing |
diff --git a/lisp/mh-e/mh-junk.el b/lisp/mh-e/mh-junk.el index 54d21db443a..5cbc7b77b47 100644 --- a/lisp/mh-e/mh-junk.el +++ b/lisp/mh-e/mh-junk.el | |||
| @@ -41,9 +41,12 @@ | |||
| 41 | (defun mh-junk-blacklist (range) | 41 | (defun mh-junk-blacklist (range) |
| 42 | "Blacklist RANGE as spam. | 42 | "Blacklist RANGE as spam. |
| 43 | 43 | ||
| 44 | This command trains the spam program in use (see the `mh-junk-program' option) | 44 | This command trains the spam program in use (see the option `mh-junk-program') |
| 45 | with the content of the range (see `mh-interactive-range') and then handles | 45 | with the content of RANGE and then handles the message(s) as specified by the |
| 46 | the message(s) as specified by the `mh-junk-disposition' option. | 46 | option `mh-junk-disposition'. |
| 47 | |||
| 48 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | ||
| 49 | interactive use. | ||
| 47 | 50 | ||
| 48 | For more information about using your particular spam fighting program, see: | 51 | For more information about using your particular spam fighting program, see: |
| 49 | 52 | ||
| @@ -77,11 +80,12 @@ For more information about using your particular spam fighting program, see: | |||
| 77 | (defun mh-junk-whitelist (range) | 80 | (defun mh-junk-whitelist (range) |
| 78 | "Whitelist RANGE as ham. | 81 | "Whitelist RANGE as ham. |
| 79 | 82 | ||
| 80 | This command reclassifies a range of messages (see `mh-interactive-range') as | 83 | This command reclassifies the RANGE as ham if it were incorrectly classified |
| 81 | ham if it were incorrectly classified as spam. It then refiles the message | 84 | as spam (see the option `mh-junk-program'). It then refiles the message into |
| 82 | into the `+inbox' folder. | 85 | the \"+inbox\" folder. |
| 83 | 86 | ||
| 84 | The `mh-junk-program' option specifies the spam program in use." | 87 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 88 | interactive use." | ||
| 85 | (interactive (list (mh-interactive-range "Whitelist"))) | 89 | (interactive (list (mh-interactive-range "Whitelist"))) |
| 86 | (let ((whitelist-func (nth 2 (assoc mh-junk-choice mh-junk-function-alist)))) | 90 | (let ((whitelist-func (nth 2 (assoc mh-junk-choice mh-junk-function-alist)))) |
| 87 | (unless whitelist-func | 91 | (unless whitelist-func |
diff --git a/lisp/mh-e/mh-print.el b/lisp/mh-e/mh-print.el index 8cf91f08d74..cc35926aecc 100644 --- a/lisp/mh-e/mh-print.el +++ b/lisp/mh-e/mh-print.el | |||
| @@ -88,7 +88,8 @@ Sensible choices are the functions `ps-spool-buffer' and | |||
| 88 | (kill-buffer buffer))))) | 88 | (kill-buffer buffer))))) |
| 89 | 89 | ||
| 90 | (defun mh-ps-print-range (range file) | 90 | (defun mh-ps-print-range (range file) |
| 91 | "Print the messages in RANGE to FILE. | 91 | "Print RANGE to FILE. |
| 92 | |||
| 92 | This is the function that actually does the work. | 93 | This is the function that actually does the work. |
| 93 | If FILE is nil, then the messages are spooled to the printer." | 94 | If FILE is nil, then the messages are spooled to the printer." |
| 94 | (mh-iterate-on-range msg range | 95 | (mh-iterate-on-range msg range |
| @@ -105,7 +106,7 @@ Pass along the PREFIX-ARG to it." | |||
| 105 | 106 | ||
| 106 | ;;;###mh-autoload | 107 | ;;;###mh-autoload |
| 107 | (defun mh-ps-print-msg (range) | 108 | (defun mh-ps-print-msg (range) |
| 108 | "Print the messages in RANGE\\<mh-folder-mode-map>. | 109 | "Print RANGE\\<mh-folder-mode-map>. |
| 109 | 110 | ||
| 110 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 111 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 111 | interactive use. | 112 | interactive use. |
| @@ -126,7 +127,7 @@ and \\[mh-ps-print-toggle-faces]." | |||
| 126 | 127 | ||
| 127 | ;;;###mh-autoload | 128 | ;;;###mh-autoload |
| 128 | (defun mh-ps-print-msg-file (range file) | 129 | (defun mh-ps-print-msg-file (range file) |
| 129 | "Print the messages in RANGE to FILE\\<mh-folder-mode-map>. | 130 | "Print RANGE to FILE\\<mh-folder-mode-map>. |
| 130 | 131 | ||
| 131 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 132 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 132 | interactive use. | 133 | interactive use. |
| @@ -185,7 +186,7 @@ best. You change this setting permanently by customizing the option | |||
| 185 | ;;; Old non-PS based printing | 186 | ;;; Old non-PS based printing |
| 186 | ;;;###mh-autoload | 187 | ;;;###mh-autoload |
| 187 | (defun mh-print-msg (range) | 188 | (defun mh-print-msg (range) |
| 188 | "Print the messages in RANGE the old fashioned way\\<mh-folder-mode-map>. | 189 | "Print RANGE the old fashioned way\\<mh-folder-mode-map>. |
| 189 | 190 | ||
| 190 | The message is formatted with \"mhl\" (see option `mh-mhl-format-file') and | 191 | The message is formatted with \"mhl\" (see option `mh-mhl-format-file') and |
| 191 | printed with the \"lpr\" command (see option `mh-lpr-command-format'). | 192 | printed with the \"lpr\" command (see option `mh-lpr-command-format'). |
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el index 6dbb5f26c07..fcf9c64e266 100644 --- a/lisp/mh-e/mh-seq.el +++ b/lisp/mh-e/mh-seq.el | |||
| @@ -273,10 +273,16 @@ When you want to widen the view to all your messages again, use \\[mh-widen]." | |||
| 273 | 273 | ||
| 274 | ;;;###mh-autoload | 274 | ;;;###mh-autoload |
| 275 | (defun mh-put-msg-in-seq (range sequence) | 275 | (defun mh-put-msg-in-seq (range sequence) |
| 276 | "Add RANGE to SEQUENCE. | 276 | "Add RANGE to SEQUENCE\\<mh-folder-mode-map>. |
| 277 | 277 | ||
| 278 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 278 | To place a message in a sequence, use this command to do it manually, or use |
| 279 | interactive use." | 279 | the MH command \"pick\" or the MH-E version of \"pick\", \\[mh-search-folder], |
| 280 | which create a sequence automatically. | ||
| 281 | |||
| 282 | Give this command a RANGE and you can add all the messages in a sequence to | ||
| 283 | another sequence (for example, \"\\[universal-argument] \\[mh-put-msg-in-seq] | ||
| 284 | SourceSequence RET DestSequence RET\"). Check the documentation of | ||
| 285 | `mh-interactive-range' to see how RANGE is read in interactive use." | ||
| 280 | (interactive (list (mh-interactive-range "Add messages from") | 286 | (interactive (list (mh-interactive-range "Add messages from") |
| 281 | (mh-read-seq-default "Add to" nil))) | 287 | (mh-read-seq-default "Add to" nil))) |
| 282 | (unless (mh-valid-seq-p sequence) | 288 | (unless (mh-valid-seq-p sequence) |
| @@ -661,8 +667,9 @@ in order to provide a uniform interface to MH-E functions." | |||
| 661 | ;;;###mh-autoload | 667 | ;;;###mh-autoload |
| 662 | (defun mh-range-to-msg-list (range) | 668 | (defun mh-range-to-msg-list (range) |
| 663 | "Return a list of messages for RANGE. | 669 | "Return a list of messages for RANGE. |
| 664 | RANGE can be a message number, a list of message numbers, a sequence, or | 670 | |
| 665 | a region in a cons cell." | 671 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 672 | interactive use." | ||
| 666 | (let (msg-list) | 673 | (let (msg-list) |
| 667 | (mh-iterate-on-range msg range | 674 | (mh-iterate-on-range msg range |
| 668 | (push msg msg-list)) | 675 | (push msg msg-list)) |
| @@ -915,7 +922,7 @@ The MH command pick is used to do the match." | |||
| 915 | 922 | ||
| 916 | ;;;###mh-autoload | 923 | ;;;###mh-autoload |
| 917 | (defun mh-narrow-to-range (range) | 924 | (defun mh-narrow-to-range (range) |
| 918 | "Limit to messages in RANGE. | 925 | "Limit to RANGE. |
| 919 | 926 | ||
| 920 | Check the documentation of `mh-interactive-range' to see how RANGE is read in | 927 | Check the documentation of `mh-interactive-range' to see how RANGE is read in |
| 921 | interactive use. | 928 | interactive use. |
| @@ -1679,7 +1686,7 @@ start of the region and the second is the point at the end." | |||
| 1679 | 1686 | ||
| 1680 | ;;;###mh-autoload | 1687 | ;;;###mh-autoload |
| 1681 | (defun mh-toggle-tick (range) | 1688 | (defun mh-toggle-tick (range) |
| 1682 | "Toggle tick mark of all messages in RANGE. | 1689 | "Toggle tick mark of RANGE. |
| 1683 | 1690 | ||
| 1684 | This command adds messages to the \"tick\" sequence (which you can customize | 1691 | This command adds messages to the \"tick\" sequence (which you can customize |
| 1685 | via the option `mh-tick-seq'). This sequence can be viewed later with the | 1692 | via the option `mh-tick-seq'). This sequence can be viewed later with the |