comparison lisp/mh-e/mh-print.el @ 67313:2ae99b10dd40

* 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.
author Bill Wohler <wohler@newt.com>
date Sun, 04 Dec 2005 22:34:49 +0000
parents bce5c0d2041c
children 3a8785724cca
comparison
equal deleted inserted replaced
67312:30f08a0ab43b 67313:2ae99b10dd40
86 (mh-ps-spool-buffer (if buffer buffer mh-show-buffer))) 86 (mh-ps-spool-buffer (if buffer buffer mh-show-buffer)))
87 (if buffer 87 (if buffer
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
95 (unwind-protect 96 (unwind-protect
96 (mh-ps-spool-msg msg)) 97 (mh-ps-spool-msg msg))
103 (let ((buffer-file-name (format "mh-%s" (substring (buffer-name) 1)))) 104 (let ((buffer-file-name (format "mh-%s" (substring (buffer-name) 1))))
104 (ps-print-preprint prefix-arg))) 105 (ps-print-preprint prefix-arg)))
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.
112 113
113 This command will print inline text attachments but will not decrypt messages. 114 This command will print inline text attachments but will not decrypt messages.
124 (interactive (list (mh-interactive-range "Print"))) 125 (interactive (list (mh-interactive-range "Print")))
125 (mh-ps-print-range range nil)) 126 (mh-ps-print-range range nil))
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.
133 134
134 This command will print inline text attachments but will not decrypt messages. 135 This command will print inline text attachments but will not decrypt messages.
183 (message "Colors will not be printed")))) 184 (message "Colors will not be printed"))))
184 185
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').
192 193
193 Check the documentation of `mh-interactive-range' to see how RANGE is read in 194 Check the documentation of `mh-interactive-range' to see how RANGE is read in