Mercurial > emacs
annotate lisp/mh-e/mh-letter.el @ 69423:cb37d3ec5eb1
Add period to last sentence added.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Sat, 11 Mar 2006 22:50:06 +0000 |
parents | 0b84cb235f62 |
children | 5259cc742763 |
rev | line source |
---|---|
68465 | 1 ;;; mh-letter.el --- MH-Letter mode |
2 | |
3 ;; Copyright (C) 1993, 1995, 1997, | |
4 ;; 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
5 | |
6 ;; Author: Bill Wohler <wohler@newt.com> | |
7 ;; Maintainer: Bill Wohler <wohler@newt.com> | |
8 ;; Keywords: mail | |
9 ;; See: mh-e.el | |
10 | |
11 ;; This file is part of GNU Emacs. | |
12 | |
13 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
14 ;; it under the terms of the GNU General Public License as published by | |
15 ;; the Free Software Foundation; either version 2, or (at your option) | |
16 ;; any later version. | |
17 | |
18 ;; GNU Emacs is distributed in the hope that it will be useful, | |
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 ;; GNU General Public License for more details. | |
22 | |
23 ;; You should have received a copy of the GNU General Public License | |
24 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
25 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
26 ;; Boston, MA 02110-1301, USA. | |
27 | |
28 ;;; Commentary: | |
29 | |
30 ;; Mode for composing and sending a draft message. | |
31 | |
32 ;; Functions that would ordinarily be in here that are needed by | |
33 ;; mh-show.el should be placed in the Message Utilities section in | |
34 ;; mh-utils.el. That will help prevent the loading of this file until | |
35 ;; a message is actually composed. | |
36 | |
37 ;;; Change Log: | |
38 | |
39 ;;; Code: | |
40 | |
41 (require 'mh-e) | |
42 | |
43 (require 'gnus-util) | |
44 | |
69245
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
45 ;; Dynamically-created functions not found in mh-loaddefs.el. |
68465 | 46 (autoload 'mh-tool-bar-letter-buttons-init "mh-tool-bar") |
69245
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
47 (autoload 'mh-tool-bar-init "mh-tool-bar") |
68465 | 48 |
49 (autoload 'mml-insert-tag "mml") | |
50 | |
51 ;;; Variables | |
52 | |
53 (defvar mh-letter-complete-function-alist | |
54 '((bcc . mh-alias-letter-expand-alias) | |
55 (cc . mh-alias-letter-expand-alias) | |
56 (dcc . mh-alias-letter-expand-alias) | |
57 (fcc . mh-folder-expand-at-point) | |
58 (from . mh-alias-letter-expand-alias) | |
59 (mail-followup-to . mh-alias-letter-expand-alias) | |
60 (mail-reply-to . mh-alias-letter-expand-alias) | |
61 (reply-to . mh-alias-letter-expand-alias) | |
62 (to . mh-alias-letter-expand-alias)) | |
63 "Alist of header fields and completion functions to use.") | |
64 | |
65 (defvar mh-yank-hooks nil | |
66 "Obsolete hook for modifying a citation just inserted in the mail buffer. | |
67 | |
68 Each hook function can find the citation between point and mark. | |
69 And each hook function should leave point and mark around the | |
70 citation text as modified. | |
71 | |
72 This is a normal hook, misnamed for historical reasons. It is | |
73 semi-obsolete and is only used if `mail-citation-hook' is nil.") | |
74 | |
75 | |
76 | |
77 ;;; Letter Menu | |
78 | |
79 (easy-menu-define | |
80 mh-letter-menu mh-letter-mode-map "Menu for MH-E letter mode." | |
81 '("Letter" | |
82 ["Send This Draft" mh-send-letter t] | |
83 ["Split Current Line" mh-open-line t] | |
84 ["Check Recipient" mh-check-whom t] | |
85 ["Yank Current Message" mh-yank-cur-msg t] | |
86 ["Insert a Message..." mh-insert-letter t] | |
87 ["Insert Signature" mh-insert-signature t] | |
88 ("Encrypt/Sign Message" | |
89 ["Sign Message" | |
90 mh-mml-secure-message-sign mh-pgp-support-flag] | |
91 ["Encrypt Message" | |
92 mh-mml-secure-message-encrypt mh-pgp-support-flag] | |
93 ["Sign+Encrypt Message" | |
94 mh-mml-secure-message-signencrypt mh-pgp-support-flag] | |
95 ["Disable Security" | |
96 mh-mml-unsecure-message mh-pgp-support-flag] | |
97 "--" | |
98 "Security Method" | |
99 ["PGP (MIME)" (setq mh-mml-method-default "pgpmime") | |
100 :style radio | |
101 :selected (equal mh-mml-method-default "pgpmime")] | |
102 ["PGP" (setq mh-mml-method-default "pgp") | |
103 :style radio | |
104 :selected (equal mh-mml-method-default "pgp")] | |
105 ["S/MIME" (setq mh-mml-method-default "smime") | |
106 :style radio | |
107 :selected (equal mh-mml-method-default "smime")] | |
108 "--" | |
109 ["Save Method as Default" | |
110 (customize-save-variable 'mh-mml-method-default mh-mml-method-default) t] | |
111 ) | |
112 ["Compose Insertion..." mh-compose-insertion t] | |
113 ["Compose Compressed tar (MH)..." | |
114 mh-mh-compose-external-compressed-tar t] | |
115 ["Compose Get File (MH)..." mh-mh-compose-anon-ftp t] | |
116 ["Compose Forward..." mh-compose-forward t] | |
117 ;; The next two will have to be merged. But I also need to make sure the | |
118 ;; user can't mix tags of both types. | |
119 ["Pull in All Compositions (MH)" | |
120 mh-mh-to-mime (mh-mh-directive-present-p)] | |
121 ["Pull in All Compositions (MML)" | |
122 mh-mml-to-mime (mh-mml-tag-present-p)] | |
123 ["Revert to Non-MIME Edit (MH)" | |
124 mh-mh-to-mime-undo (equal mh-compose-insertion 'mh)] | |
125 ["Kill This Draft" mh-fully-kill-draft t])) | |
126 | |
127 | |
128 | |
129 ;;; MH-Letter Keys | |
130 | |
131 ;; If this changes, modify mh-letter-mode-help-messages accordingly, above. | |
132 (gnus-define-keys mh-letter-mode-map | |
133 " " mh-letter-complete-or-space | |
134 "," mh-letter-confirm-address | |
135 "\C-c?" mh-help | |
136 "\C-c\C-\\" mh-fully-kill-draft ;if no C-q | |
137 "\C-c\C-^" mh-insert-signature ;if no C-s | |
138 "\C-c\C-c" mh-send-letter | |
139 "\C-c\C-d" mh-insert-identity | |
140 "\C-c\C-e" mh-mh-to-mime | |
141 "\C-c\C-f\C-a" mh-to-field | |
142 "\C-c\C-f\C-b" mh-to-field | |
143 "\C-c\C-f\C-c" mh-to-field | |
144 "\C-c\C-f\C-d" mh-to-field | |
145 "\C-c\C-f\C-f" mh-to-fcc | |
146 "\C-c\C-f\C-l" mh-to-field | |
147 "\C-c\C-f\C-m" mh-to-field | |
148 "\C-c\C-f\C-r" mh-to-field | |
149 "\C-c\C-f\C-s" mh-to-field | |
150 "\C-c\C-f\C-t" mh-to-field | |
151 "\C-c\C-fa" mh-to-field | |
152 "\C-c\C-fb" mh-to-field | |
153 "\C-c\C-fc" mh-to-field | |
154 "\C-c\C-fd" mh-to-field | |
155 "\C-c\C-ff" mh-to-fcc | |
156 "\C-c\C-fl" mh-to-field | |
157 "\C-c\C-fm" mh-to-field | |
158 "\C-c\C-fr" mh-to-field | |
159 "\C-c\C-fs" mh-to-field | |
160 "\C-c\C-ft" mh-to-field | |
161 "\C-c\C-i" mh-insert-letter | |
162 "\C-c\C-m\C-e" mh-mml-secure-message-encrypt | |
163 "\C-c\C-m\C-f" mh-compose-forward | |
164 "\C-c\C-m\C-g" mh-mh-compose-anon-ftp | |
165 "\C-c\C-m\C-i" mh-compose-insertion | |
166 "\C-c\C-m\C-m" mh-mml-to-mime | |
167 "\C-c\C-m\C-n" mh-mml-unsecure-message | |
168 "\C-c\C-m\C-s" mh-mml-secure-message-sign | |
169 "\C-c\C-m\C-t" mh-mh-compose-external-compressed-tar | |
170 "\C-c\C-m\C-u" mh-mh-to-mime-undo | |
171 "\C-c\C-m\C-x" mh-mh-compose-external-type | |
172 "\C-c\C-mee" mh-mml-secure-message-encrypt | |
173 "\C-c\C-mes" mh-mml-secure-message-signencrypt | |
174 "\C-c\C-mf" mh-compose-forward | |
175 "\C-c\C-mg" mh-mh-compose-anon-ftp | |
176 "\C-c\C-mi" mh-compose-insertion | |
177 "\C-c\C-mm" mh-mml-to-mime | |
178 "\C-c\C-mn" mh-mml-unsecure-message | |
179 "\C-c\C-mse" mh-mml-secure-message-signencrypt | |
180 "\C-c\C-mss" mh-mml-secure-message-sign | |
181 "\C-c\C-mt" mh-mh-compose-external-compressed-tar | |
182 "\C-c\C-mu" mh-mh-to-mime-undo | |
183 "\C-c\C-mx" mh-mh-compose-external-type | |
184 "\C-c\C-o" mh-open-line | |
185 "\C-c\C-q" mh-fully-kill-draft | |
186 "\C-c\C-s" mh-insert-signature | |
187 "\C-c\C-t" mh-letter-toggle-header-field-display | |
188 "\C-c\C-w" mh-check-whom | |
189 "\C-c\C-y" mh-yank-cur-msg | |
190 "\C-c\M-d" mh-insert-auto-fields | |
191 "\M-\t" mh-letter-complete | |
192 "\t" mh-letter-next-header-field-or-indent | |
193 [backtab] mh-letter-previous-header-field) | |
194 | |
195 ;; "C-c /" prefix is used in mh-letter-mode by pgp.el and mailcrypt.el. | |
196 | |
197 | |
198 | |
199 ;;; MH-Letter Help Messages | |
200 | |
201 ;; Group messages logically, more or less. | |
202 (defvar mh-letter-mode-help-messages | |
203 '((nil | |
204 "Send letter: \\[mh-send-letter] " | |
205 "Open line: \\[mh-open-line]\n" | |
206 "Kill letter: \\[mh-fully-kill-draft] " | |
207 "Check recipients: \\[mh-check-whom]\n\n" | |
208 "Insert:\n" | |
209 " Current message: \\[mh-yank-cur-msg]\n" | |
210 " Attachment: \\[mh-compose-insertion]\n" | |
211 " Message to forward: \\[mh-compose-forward]\n" | |
212 " Signature: \\[mh-insert-signature]\n\n" | |
213 "Security:\n" | |
214 " Encrypt message: \\[mh-mml-secure-message-encrypt]\n" | |
215 " Sign message: \\[mh-mml-secure-message-sign]\n" | |
216 " Sign+Encrypt message: \\[mh-mml-secure-message-signencrypt]")) | |
217 "Key binding cheat sheet. | |
218 | |
219 This is an associative array which is used to show the most | |
220 common commands. The key is a prefix char. The value is one or | |
221 more strings which are concatenated together and displayed in the | |
222 minibuffer if ? is pressed after the prefix character. The | |
223 special key nil is used to display the non-prefixed commands. | |
224 | |
225 The substitutions described in `substitute-command-keys' are | |
226 performed as well.") | |
227 | |
228 | |
229 | |
230 ;;; MH-Letter Font Lock | |
231 | |
232 (defvar mh-letter-font-lock-keywords | |
233 `(,@(mh-show-font-lock-keywords-with-cite) | |
234 (mh-font-lock-field-data | |
235 (1 'mh-letter-header-field prepend t))) | |
236 "Additional expressions to highlight in MH-Letter buffers.") | |
237 | |
238 (defun mh-font-lock-field-data (limit) | |
239 "Find header field region between point and LIMIT." | |
240 (and (< (point) (mh-letter-header-end)) | |
241 (< (point) limit) | |
242 (let ((end (min limit (mh-letter-header-end))) | |
243 (point (point)) | |
244 data-end data-begin field) | |
245 (end-of-line) | |
246 (setq data-end (if (re-search-forward "^[^ \t]" end t) | |
247 (match-beginning 0) | |
248 end)) | |
249 (goto-char (1- data-end)) | |
250 (if (not (re-search-backward "\\(^[^ \t][^:]*\\):[ \t]*" nil t)) | |
251 (setq data-begin (point-min)) | |
252 (setq data-begin (match-end 0)) | |
253 (setq field (match-string 1))) | |
254 (setq data-begin (max point data-begin)) | |
255 (goto-char (if (equal point data-end) (1+ data-end) data-end)) | |
256 (cond ((and field (mh-letter-skipped-header-field-p field)) | |
257 (set-match-data nil) | |
258 nil) | |
259 (t (set-match-data | |
260 (list data-begin data-end data-begin data-end)) | |
261 t))))) | |
262 | |
263 (defun mh-letter-header-end () | |
264 "Find the end of the message header. | |
265 This function is to be used only for font locking. It works by | |
266 searching for `mh-mail-header-separator' in the buffer." | |
267 (save-excursion | |
268 (goto-char (point-min)) | |
269 (cond ((equal mh-mail-header-separator "") (point-min)) | |
270 ((search-forward (format "\n%s\n" mh-mail-header-separator) nil t) | |
68529
7daec5f4a289
* mh-alias.el (mh-alias-gecos-name): Use mh-replace-regexp-in-string
Bill Wohler <wohler@newt.com>
parents:
68519
diff
changeset
|
271 (mh-line-beginning-position 0)) |
68465 | 272 (t (point-min))))) |
273 | |
274 | |
275 | |
276 ;;; MH-Letter Mode | |
277 | |
278 (defvar mh-letter-buttons-init-flag nil) | |
279 | |
280 ;; Shush compiler. | |
281 (eval-when-compile (mh-do-in-xemacs (defvar font-lock-defaults))) | |
282 | |
283 ;; Ensure new buffers won't get this mode if default-major-mode is nil. | |
284 (put 'mh-letter-mode 'mode-class 'special) | |
285 | |
286 ;;;###mh-autoload | |
287 (define-derived-mode mh-letter-mode mail-mode "MH-Letter" | |
288 "Mode for composing letters in MH-E\\<mh-letter-mode-map>. | |
289 | |
290 When you have finished composing, type \\[mh-send-letter] to send | |
291 the message using the MH mail handling system. | |
292 | |
293 There are two types of tags used by MH-E when composing MIME | |
294 messages: MML and MH. The option `mh-compose-insertion' controls | |
295 what type of tags are inserted by MH-E commands. These tags can | |
296 be converted to MIME body parts by running \\[mh-mh-to-mime] for | |
297 MH-style directives or \\[mh-mml-to-mime] for MML tags. | |
298 | |
299 Options that control this mode can be changed with | |
300 \\[customize-group]; specify the \"mh-compose\" group. | |
301 | |
302 When a message is composed, the hooks `text-mode-hook', | |
303 `mail-mode-hook', and `mh-letter-mode-hook' are run (in that | |
304 order). | |
305 | |
306 \\{mh-letter-mode-map}" | |
307 (mh-find-path) | |
308 (make-local-variable 'mh-send-args) | |
309 (make-local-variable 'mh-annotate-char) | |
310 (make-local-variable 'mh-annotate-field) | |
311 (make-local-variable 'mh-previous-window-config) | |
312 (make-local-variable 'mh-sent-from-folder) | |
313 (make-local-variable 'mh-sent-from-msg) | |
314 (mh-do-in-gnu-emacs | |
69245
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
315 (unless mh-letter-buttons-init-flag |
69286
0b84cb235f62
* mh-folder.el (mh-folder-mode): Drop 'load-path argument when calling
Bill Wohler <wohler@newt.com>
parents:
69273
diff
changeset
|
316 (let ((load-path (mh-image-load-path-for-library "mh-e" "mh-logo.xpm")) |
69273
b52e0cc8af61
* mh-folder.el (mh-folder-mode): Rename mh-image-load-path to
Bill Wohler <wohler@newt.com>
parents:
69245
diff
changeset
|
317 (image-load-path (mh-image-load-path-for-library |
b52e0cc8af61
* mh-folder.el (mh-folder-mode): Rename mh-image-load-path to
Bill Wohler <wohler@newt.com>
parents:
69245
diff
changeset
|
318 "mh-e" "mh-logo.xpm" 'image-load-path))) |
69245
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
319 (mh-tool-bar-letter-buttons-init) |
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
320 (setq mh-letter-buttons-init-flag t))) |
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
321 (set (make-local-variable 'tool-bar-map) mh-letter-tool-bar-map)) |
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
322 (mh-do-in-xemacs |
f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
Bill Wohler <wohler@newt.com>
parents:
68529
diff
changeset
|
323 (mh-tool-bar-init :letter)) |
68465 | 324 ;; Set the local value of mh-mail-header-separator according to what is |
325 ;; present in the buffer... | |
326 (set (make-local-variable 'mh-mail-header-separator) | |
327 (save-excursion | |
328 (goto-char (mh-mail-header-end)) | |
68529
7daec5f4a289
* mh-alias.el (mh-alias-gecos-name): Use mh-replace-regexp-in-string
Bill Wohler <wohler@newt.com>
parents:
68519
diff
changeset
|
329 (buffer-substring-no-properties (point) (mh-line-end-position)))) |
68465 | 330 (make-local-variable 'mail-header-separator) |
331 (setq mail-header-separator mh-mail-header-separator) ;override sendmail.el | |
332 (mh-set-help mh-letter-mode-help-messages) | |
333 (setq buffer-invisibility-spec '((vanish . t) t)) | |
334 (set (make-local-variable 'line-move-ignore-invisible) t) | |
335 | |
336 ;; Enable undo since a show-mode buffer might have been reused. | |
337 (buffer-enable-undo) | |
338 (make-local-variable 'font-lock-defaults) | |
339 (cond | |
340 ((or (equal mh-highlight-citation-style 'font-lock) | |
341 (equal mh-highlight-citation-style 'gnus)) | |
342 ;; Let's use font-lock even if gnus is used in show-mode. The reason | |
343 ;; is that gnus uses static text properties which are not appropriate | |
344 ;; for a buffer that will be edited. So the choice here is either fontify | |
345 ;; the citations and header... | |
346 (setq font-lock-defaults '(mh-letter-font-lock-keywords t))) | |
347 (t | |
348 ;; ...or the header only | |
349 (setq font-lock-defaults '((mh-show-font-lock-keywords) t)))) | |
350 (easy-menu-add mh-letter-menu) | |
68473
e238dd02cdad
(mh-letter-menu): Remove. Defvar no longer needed to shush compiler.
Bill Wohler <wohler@newt.com>
parents:
68470
diff
changeset
|
351 ;; Maybe we want to use the existing Mail menu from mail-mode in |
e238dd02cdad
(mh-letter-menu): Remove. Defvar no longer needed to shush compiler.
Bill Wohler <wohler@newt.com>
parents:
68470
diff
changeset
|
352 ;; 9.0; in the mean time, let's remove it since the redundancy will |
e238dd02cdad
(mh-letter-menu): Remove. Defvar no longer needed to shush compiler.
Bill Wohler <wohler@newt.com>
parents:
68470
diff
changeset
|
353 ;; only produce confusion. |
e238dd02cdad
(mh-letter-menu): Remove. Defvar no longer needed to shush compiler.
Bill Wohler <wohler@newt.com>
parents:
68470
diff
changeset
|
354 (define-key mh-letter-mode-map [menu-bar mail] 'undefined) |
e238dd02cdad
(mh-letter-menu): Remove. Defvar no longer needed to shush compiler.
Bill Wohler <wohler@newt.com>
parents:
68470
diff
changeset
|
355 (mh-do-in-xemacs (easy-menu-remove mail-menubar-menu)) |
68465 | 356 (setq fill-column mh-letter-fill-column) |
357 ;; If text-mode-hook turned on auto-fill, tune it for messages | |
358 (when auto-fill-function | |
359 (make-local-variable 'auto-fill-function) | |
360 (setq auto-fill-function 'mh-auto-fill-for-letter))) | |
361 | |
362 | |
363 | |
364 ;;; MH-Letter Commands | |
365 | |
366 ;; Alphabetical. | |
367 ;; See also mh-comp.el and mh-mime.el. | |
368 | |
369 (defun mh-check-whom () | |
370 "Verify recipients, showing expansion of any aliases. | |
371 | |
372 This command expands aliases so you can check the actual address(es) | |
373 in the alias. A new buffer named \"*MH-E Recipients*\" is created with | |
374 the output of \"whom\"." | |
375 (interactive) | |
376 (let ((file-name buffer-file-name)) | |
377 (save-buffer) | |
378 (message "Checking recipients...") | |
379 (mh-in-show-buffer (mh-recipients-buffer) | |
380 (bury-buffer (current-buffer)) | |
381 (erase-buffer) | |
382 (mh-exec-cmd-output "whom" t file-name)) | |
383 (message "Checking recipients...done"))) | |
384 | |
385 (defun mh-insert-letter (folder message verbatim) | |
386 "Insert a message. | |
387 | |
388 This command prompts you for the FOLDER and MESSAGE number, which | |
389 defaults to the current message in that folder. It then inserts | |
390 the message, indented by `mh-ins-buf-prefix' (\"> \") unless | |
391 `mh-yank-behavior' is set to one of the supercite flavors in | |
392 which case supercite is used to format the message. Certain | |
393 undesirable header fields (see | |
394 `mh-invisible-header-fields-compiled') are removed before | |
395 insertion. | |
396 | |
397 If given a prefix argument VERBATIM, the header is left intact, the | |
398 message is not indented, and \"> \" is not inserted before each line. | |
399 This command leaves the mark before the letter and point after it." | |
400 (interactive | |
401 (let* ((folder | |
402 (mh-prompt-for-folder "Message from" | |
403 mh-sent-from-folder nil)) | |
404 (default | |
405 (if (and (equal folder mh-sent-from-folder) | |
406 (numberp mh-sent-from-msg)) | |
407 mh-sent-from-msg | |
408 (nth 0 (mh-translate-range folder "cur")))) | |
409 (message | |
410 (read-string (concat "Message number" | |
411 (or (and default | |
412 (format " (default %d): " default)) | |
413 ": "))))) | |
414 (list folder message current-prefix-arg))) | |
415 (save-restriction | |
416 (narrow-to-region (point) (point)) | |
417 (let ((start (point-min))) | |
418 (if (and (equal message "") (numberp mh-sent-from-msg)) | |
419 (setq message (int-to-string mh-sent-from-msg))) | |
420 (insert-file-contents | |
421 (expand-file-name message (mh-expand-file-name folder))) | |
422 (when (not verbatim) | |
423 (mh-clean-msg-header start mh-invisible-header-fields-compiled nil) | |
424 (goto-char (point-max)) ;Needed for sc-cite-original | |
425 (push-mark) ;Needed for sc-cite-original | |
426 (goto-char (point-min)) ;Needed for sc-cite-original | |
427 (mh-insert-prefix-string mh-ins-buf-prefix))))) | |
428 | |
429 ;;;###mh-autoload | |
430 (defun mh-insert-signature (&optional file) | |
431 "Insert signature in message. | |
432 | |
433 This command inserts your signature at the current cursor location. | |
434 | |
435 By default, the text of your signature is taken from the file | |
436 \"~/.signature\". You can read from other sources by changing the | |
437 option `mh-signature-file-name'. | |
438 | |
439 A signature separator (\"-- \") will be added if the signature block | |
440 does not contain one and `mh-signature-separator-flag' is on. | |
441 | |
442 The hook `mh-insert-signature-hook' is run after the signature is | |
443 inserted. Hook functions may access the actual name of the file or the | |
444 function used to insert the signature with `mh-signature-file-name'. | |
445 | |
446 The signature can also be inserted using Identities (see | |
447 `mh-identity-list'). | |
448 | |
449 In a program, you can pass in a signature FILE." | |
450 (interactive) | |
451 (save-excursion | |
452 (insert "\n") | |
453 (let ((mh-signature-file-name (or file mh-signature-file-name)) | |
454 (mh-mh-p (mh-mh-directive-present-p)) | |
455 (mh-mml-p (mh-mml-tag-present-p))) | |
456 (save-restriction | |
457 (narrow-to-region (point) (point)) | |
458 (cond | |
459 ((mh-file-is-vcard-p mh-signature-file-name) | |
460 (if (equal mh-compose-insertion 'mml) | |
461 (insert "<#part type=\"text/x-vcard\" filename=\"" | |
462 mh-signature-file-name | |
463 "\" disposition=inline description=VCard>\n<#/part>") | |
464 (insert "#text/x-vcard; name=\"" | |
465 (file-name-nondirectory mh-signature-file-name) | |
466 "\" [VCard] " (expand-file-name mh-signature-file-name)))) | |
467 (t | |
468 (cond | |
469 (mh-mh-p | |
470 (insert "#\n" "Content-Description: Signature\n")) | |
471 (mh-mml-p | |
472 (mml-insert-tag 'part 'type "text/plain" 'disposition "inline" | |
473 'description "Signature"))) | |
474 (cond ((null mh-signature-file-name)) | |
475 ((and (stringp mh-signature-file-name) | |
476 (file-readable-p mh-signature-file-name)) | |
477 (insert-file-contents mh-signature-file-name)) | |
478 ((functionp mh-signature-file-name) | |
479 (funcall mh-signature-file-name))))) | |
480 (save-restriction | |
481 (widen) | |
482 (run-hooks 'mh-insert-signature-hook)) | |
483 (goto-char (point-min)) | |
484 (when (and (not (mh-file-is-vcard-p mh-signature-file-name)) | |
485 mh-signature-separator-flag | |
486 (> (point-max) (point-min)) | |
487 (not (mh-signature-separator-p))) | |
488 (cond (mh-mh-p | |
489 (forward-line 2)) | |
490 (mh-mml-p | |
491 (forward-line 1))) | |
492 (insert mh-signature-separator)) | |
493 (if (not (> (point-max) (point-min))) | |
494 (message "No signature found"))))) | |
495 (force-mode-line-update)) | |
496 | |
497 (defun mh-letter-complete (arg) | |
498 "Perform completion on header field or word preceding point. | |
499 | |
500 If the field contains addresses (for example, \"To:\" or \"Cc:\") | |
501 or folders (for example, \"Fcc:\") then this command will provide | |
502 alias completion. In the body of the message, this command runs | |
503 `mh-letter-complete-function' instead, which is set to | |
504 `ispell-complete-word' by default. This command takes a prefix | |
505 argument ARG that is passed to the | |
506 `mh-letter-complete-function'." | |
507 (interactive "P") | |
508 (let ((func nil)) | |
509 (cond ((not (mh-in-header-p)) | |
510 (funcall mh-letter-complete-function arg)) | |
511 ((setq func (cdr (assoc (mh-letter-header-field-at-point) | |
512 mh-letter-complete-function-alist))) | |
513 (funcall func)) | |
514 (t (funcall mh-letter-complete-function arg))))) | |
515 | |
516 (defun mh-letter-complete-or-space (arg) | |
517 "Perform completion or insert space. | |
518 | |
519 Turn on the option `mh-compose-space-does-completion-flag' to use | |
520 this command to perform completion in the header. Otherwise, a | |
521 space is inserted; use a prefix argument ARG to specify more than | |
522 one space." | |
523 (interactive "p") | |
524 (let ((func nil) | |
525 (end-of-prev (save-excursion | |
526 (goto-char (mh-beginning-of-word)) | |
527 (mh-beginning-of-word -1)))) | |
528 (cond ((not mh-compose-space-does-completion-flag) | |
529 (self-insert-command arg)) | |
530 ((not (mh-in-header-p)) (self-insert-command arg)) | |
531 ((> (point) end-of-prev) (self-insert-command arg)) | |
532 ((setq func (cdr (assoc (mh-letter-header-field-at-point) | |
533 mh-letter-complete-function-alist))) | |
534 (funcall func)) | |
535 (t (self-insert-command arg))))) | |
536 | |
537 (defun mh-letter-confirm-address () | |
538 "Flash alias expansion. | |
539 | |
540 Addresses are separated by a comma\; when you press the comma, | |
541 this command flashes the alias expansion in the minibuffer if | |
542 `mh-alias-flash-on-comma' is turned on." | |
543 (interactive) | |
544 (cond ((not (mh-in-header-p)) (self-insert-command 1)) | |
545 ((eq (cdr (assoc (mh-letter-header-field-at-point) | |
546 mh-letter-complete-function-alist)) | |
547 'mh-alias-letter-expand-alias) | |
548 (mh-alias-reload-maybe) | |
549 (mh-alias-minibuffer-confirm-address)) | |
550 (t (self-insert-command 1)))) | |
551 | |
552 (defun mh-letter-next-header-field-or-indent (arg) | |
553 "Cycle to next field. | |
554 | |
555 Within the header of the message, this command moves between | |
556 fields that are highlighted with the face | |
557 `mh-letter-header-field', skipping those fields listed in | |
558 `mh-compose-skipped-header-fields'. After the last field, this | |
559 command then moves point to the message body before cycling back | |
560 to the first field. If point is already past the first line of | |
561 the message body, then this command indents by calling | |
562 `indent-relative' with the given prefix argument ARG." | |
563 (interactive "P") | |
564 (let ((header-end (save-excursion | |
565 (goto-char (mh-mail-header-end)) | |
566 (forward-line) | |
567 (point)))) | |
568 (if (> (point) header-end) | |
569 (indent-relative arg) | |
570 (mh-letter-next-header-field)))) | |
571 | |
572 (defun mh-letter-previous-header-field () | |
573 "Cycle to the previous header field. | |
574 | |
575 This command moves backwards between the fields and cycles to the | |
576 body of the message after the first field. Unlike the command | |
577 \\[mh-letter-next-header-field-or-indent], it will always take | |
578 point to the last field from anywhere in the body." | |
579 (interactive) | |
580 (let ((header-end (mh-mail-header-end))) | |
581 (if (>= (point) header-end) | |
582 (goto-char header-end) | |
583 (mh-header-field-beginning)) | |
584 (cond ((re-search-backward mh-letter-header-field-regexp nil t) | |
585 (if (mh-letter-skipped-header-field-p (match-string 1)) | |
586 (mh-letter-previous-header-field) | |
587 (goto-char (match-end 0)) | |
588 (mh-letter-skip-leading-whitespace-in-header-field))) | |
589 (t (goto-char header-end) | |
590 (forward-line))))) | |
591 | |
592 (defun mh-open-line () | |
593 "Insert a newline and leave point before it. | |
594 | |
595 This command is similar to the command \\[open-line] in that it | |
596 inserts a newline after point. It differs in that it also inserts | |
597 the right number of quoting characters and spaces so that the | |
598 next line begins in the same column as it was. This is useful | |
599 when breaking up paragraphs in replies." | |
600 (interactive) | |
601 (let ((column (current-column)) | |
602 (prefix (mh-current-fill-prefix))) | |
603 (if (> (length prefix) column) | |
604 (message "Sorry, point seems to be within the line prefix") | |
605 (newline 2) | |
606 (insert prefix) | |
607 (while (> column (current-column)) | |
608 (insert " ")) | |
609 (forward-line -1)))) | |
610 | |
611 (defun mh-to-fcc (&optional folder) | |
612 "Move to \"Fcc:\" header field. | |
613 | |
614 This command will prompt you for the FOLDER name in which to file | |
615 a copy of the draft." | |
616 (interactive (list (mh-prompt-for-folder | |
617 "Fcc" | |
618 (or (and mh-default-folder-for-message-function | |
619 (save-excursion | |
620 (goto-char (point-min)) | |
621 (funcall | |
622 mh-default-folder-for-message-function))) | |
623 "") | |
624 t))) | |
625 (let ((last-input-char ?\C-f)) | |
626 (expand-abbrev) | |
627 (save-excursion | |
628 (mh-to-field) | |
629 (insert (if (mh-folder-name-p folder) | |
630 (substring folder 1) | |
631 folder))))) | |
632 | |
633 (defvar mh-to-field-choices '(("a" . "Mail-Reply-To:") | |
634 ("b" . "Bcc:") | |
635 ("c" . "Cc:") | |
636 ("d" . "Dcc:") | |
637 ("f" . "Fcc:") | |
638 ("l" . "Mail-Followup-To:") | |
639 ("m" . "From:") | |
640 ("r" . "Reply-To:") | |
641 ("s" . "Subject:") | |
642 ("t" . "To:")) | |
643 "Alist of (final-character . field-name) choices for `mh-to-field'.") | |
644 | |
645 (defun mh-to-field () | |
646 "Move to specified header field. | |
647 | |
648 The field is indicated by the previous keystroke (the last | |
649 keystroke of the command) according to the list in the variable | |
650 `mh-to-field-choices'. | |
651 Create the field if it does not exist. | |
652 Set the mark to point before moving." | |
653 (interactive) | |
654 (expand-abbrev) | |
655 (let ((target (cdr (or (assoc (char-to-string (logior last-input-char ?`)) | |
656 mh-to-field-choices) | |
657 ;; also look for a char for version 4 compat | |
658 (assoc (logior last-input-char ?`) | |
659 mh-to-field-choices)))) | |
660 (case-fold-search t)) | |
661 (push-mark) | |
662 (cond ((mh-position-on-field target) | |
663 (let ((eol (point))) | |
664 (skip-chars-backward " \t") | |
665 (delete-region (point) eol)) | |
666 (if (and (not (eq (logior last-input-char ?`) ?s)) | |
667 (save-excursion | |
668 (backward-char 1) | |
669 (not (looking-at "[:,]")))) | |
670 (insert ", ") | |
671 (insert " "))) | |
672 (t | |
673 (if (mh-position-on-field "To:") | |
674 (forward-line 1)) | |
675 (insert (format "%s \n" target)) | |
676 (backward-char 1))))) | |
677 | |
678 ;;;###mh-autoload | |
679 (defun mh-yank-cur-msg () | |
680 "Insert the current message into the draft buffer. | |
681 | |
682 It is often useful to insert a snippet of text from a letter that | |
683 someone mailed to provide some context for your reply. This | |
684 command does this by adding an attribution, yanking a portion of | |
685 text from the message to which you're replying, and inserting | |
686 `mh-ins-buf-prefix' (`> ') before each line. | |
687 | |
688 The attribution consists of the sender's name and email address | |
689 followed by the content of the option | |
690 `mh-extract-from-attribution-verb'. | |
691 | |
692 You can also turn on the option | |
693 `mh-delete-yanked-msg-window-flag' to delete the window | |
694 containing the original message after yanking it to make more | |
695 room on your screen for your reply. | |
696 | |
697 You can control how the message to which you are replying is | |
698 yanked into your reply using `mh-yank-behavior'. | |
699 | |
700 If this isn't enough, you can gain full control over the | |
701 appearance of the included text by setting `mail-citation-hook' | |
702 to a function that modifies it. For example, if you set this hook | |
703 to `trivial-cite' (which is NOT part of Emacs), set | |
704 `mh-yank-behavior' to \"Body and Header\" (see URL | |
705 `http://shasta.cs.uiuc.edu/~lrclause/tc.html'). | |
706 | |
707 Note that if `mail-citation-hook' is set, `mh-ins-buf-prefix' is | |
708 not inserted. If the option `mh-yank-behavior' is set to one of | |
709 the supercite flavors, the hook `mail-citation-hook' is ignored | |
710 and `mh-ins-buf-prefix' is not inserted." | |
711 (interactive) | |
712 (if (and mh-sent-from-folder | |
713 (save-excursion (set-buffer mh-sent-from-folder) mh-show-buffer) | |
714 (save-excursion (set-buffer mh-sent-from-folder) | |
715 (get-buffer mh-show-buffer)) | |
716 mh-sent-from-msg) | |
717 (let ((to-point (point)) | |
718 (to-buffer (current-buffer))) | |
719 (set-buffer mh-sent-from-folder) | |
720 (if mh-delete-yanked-msg-window-flag | |
721 (delete-windows-on mh-show-buffer)) | |
722 (set-buffer mh-show-buffer) ; Find displayed message | |
723 (let* ((from-attr (mh-extract-from-attribution)) | |
724 (yank-region (mh-mark-active-p nil)) | |
725 (mh-ins-str | |
726 (cond ((and yank-region | |
727 (or (eq 'supercite mh-yank-behavior) | |
728 (eq 'autosupercite mh-yank-behavior) | |
729 (eq t mh-yank-behavior))) | |
730 ;; supercite needs the full header | |
731 (concat | |
732 (buffer-substring (point-min) (mh-mail-header-end)) | |
733 "\n" | |
734 (buffer-substring (region-beginning) (region-end)))) | |
735 (yank-region | |
736 (buffer-substring (region-beginning) (region-end))) | |
737 ((or (eq 'body mh-yank-behavior) | |
738 (eq 'attribution mh-yank-behavior) | |
739 (eq 'autoattrib mh-yank-behavior)) | |
740 (buffer-substring | |
741 (save-excursion | |
742 (goto-char (point-min)) | |
743 (mh-goto-header-end 1) | |
744 (point)) | |
745 (point-max))) | |
746 ((or (eq 'supercite mh-yank-behavior) | |
747 (eq 'autosupercite mh-yank-behavior) | |
748 (eq t mh-yank-behavior)) | |
749 (buffer-substring (point-min) (point-max))) | |
750 (t | |
751 (buffer-substring (point) (point-max)))))) | |
752 (set-buffer to-buffer) | |
753 (save-restriction | |
754 (narrow-to-region to-point to-point) | |
755 (insert (mh-filter-out-non-text mh-ins-str)) | |
756 (goto-char (point-max)) ;Needed for sc-cite-original | |
757 (push-mark) ;Needed for sc-cite-original | |
758 (goto-char (point-min)) ;Needed for sc-cite-original | |
759 (mh-insert-prefix-string mh-ins-buf-prefix) | |
760 (when (or (eq 'attribution mh-yank-behavior) | |
761 (eq 'autoattrib mh-yank-behavior)) | |
762 (insert from-attr) | |
763 (mh-identity-insert-attribution-verb nil) | |
764 (insert "\n\n")) | |
765 ;; If the user has selected a region, he has already "edited" the | |
766 ;; text, so leave the cursor at the end of the yanked text. In | |
767 ;; either case, leave a mark at the opposite end of the included | |
768 ;; text to make it easy to jump or delete to the other end of the | |
769 ;; text. | |
770 (push-mark) | |
771 (goto-char (point-max)) | |
772 (if (null yank-region) | |
773 (mh-exchange-point-and-mark-preserving-active-mark))))) | |
774 (error "There is no current message"))) | |
775 | |
776 | |
777 | |
778 ;;; Support Routines | |
779 | |
780 (defun mh-auto-fill-for-letter () | |
781 "Perform auto-fill for message. | |
782 Header is treated specially by inserting a tab before continuation | |
783 lines." | |
784 (if (mh-in-header-p) | |
785 (let ((fill-prefix "\t")) | |
786 (do-auto-fill)) | |
787 (do-auto-fill))) | |
788 | |
789 (defun mh-filter-out-non-text (string) | |
790 "Return STRING but without adornments such as MIME buttons and smileys." | |
791 (with-temp-buffer | |
792 ;; Insert the string to filter | |
793 (insert string) | |
794 (goto-char (point-min)) | |
795 | |
796 ;; Remove the MIME buttons | |
797 (let ((can-move-forward t) | |
798 (in-button nil)) | |
799 (while can-move-forward | |
800 (cond ((and (not (get-text-property (point) 'mh-data)) | |
801 in-button) | |
802 (delete-region (1- (point)) (point)) | |
803 (setq in-button nil)) | |
804 ((get-text-property (point) 'mh-data) | |
805 (delete-region (point) | |
806 (save-excursion (forward-line) (point))) | |
807 (setq in-button t)) | |
808 (t (setq can-move-forward (= (forward-line) 0)))))) | |
809 | |
810 ;; Return the contents without properties... This gets rid of emphasis | |
811 ;; and smileys | |
812 (buffer-substring-no-properties (point-min) (point-max)))) | |
813 | |
814 (defun mh-current-fill-prefix () | |
815 "Return the `fill-prefix' on the current line as a string." | |
816 (save-excursion | |
817 (beginning-of-line) | |
818 ;; This assumes that the major-mode sets up adaptive-fill-regexp | |
819 ;; correctly such as mh-letter-mode or sendmail.el's mail-mode. But | |
820 ;; perhaps I should use the variable and simply inserts its value here, | |
821 ;; and set it locally in a let scope. --psg | |
822 (if (re-search-forward adaptive-fill-regexp nil t) | |
823 (match-string 0) | |
824 ""))) | |
825 | |
826 ;;;###mh-autoload | |
827 (defun mh-letter-next-header-field () | |
828 "Cycle to the next header field. | |
829 If we are at the last header field go to the start of the message | |
830 body." | |
831 (let ((header-end (mh-mail-header-end))) | |
832 (cond ((>= (point) header-end) (goto-char (point-min))) | |
833 ((< (point) (progn | |
834 (beginning-of-line) | |
835 (re-search-forward mh-letter-header-field-regexp | |
68529
7daec5f4a289
* mh-alias.el (mh-alias-gecos-name): Use mh-replace-regexp-in-string
Bill Wohler <wohler@newt.com>
parents:
68519
diff
changeset
|
836 (mh-line-end-position) t) |
68465 | 837 (point))) |
838 (beginning-of-line)) | |
839 (t (end-of-line))) | |
840 (cond ((re-search-forward mh-letter-header-field-regexp header-end t) | |
841 (if (mh-letter-skipped-header-field-p (match-string 1)) | |
842 (mh-letter-next-header-field) | |
843 (mh-letter-skip-leading-whitespace-in-header-field))) | |
844 (t (goto-char header-end) | |
845 (forward-line))))) | |
846 | |
847 ;;;###mh-autoload | |
848 (defun mh-position-on-field (field &optional ignored) | |
849 "Move to the end of the FIELD in the header. | |
850 Move to end of entire header if FIELD not found. | |
851 Returns non-nil iff FIELD was found. | |
852 The optional second arg is for pre-version 4 compatibility and is | |
853 IGNORED." | |
854 (cond ((mh-goto-header-field field) | |
855 (mh-header-field-end) | |
856 t) | |
857 ((mh-goto-header-end 0) | |
858 nil))) | |
859 | |
860 (defun mh-letter-header-field-at-point () | |
861 "Return the header field name at point. | |
862 A symbol is returned whose name is the string obtained by | |
863 downcasing the field name." | |
864 (save-excursion | |
865 (end-of-line) | |
866 (and (re-search-backward mh-letter-header-field-regexp nil t) | |
867 (intern (downcase (match-string 1)))))) | |
868 | |
869 (defun mh-folder-expand-at-point () | |
870 "Do folder name completion in Fcc header field." | |
871 (let* ((end (point)) | |
872 (beg (mh-beginning-of-word)) | |
873 (folder (buffer-substring beg end)) | |
874 (leading-plus (and (> (length folder) 0) (equal (aref folder 0) ?+))) | |
875 (last-slash (mh-search-from-end ?/ folder)) | |
876 (prefix (and last-slash (substring folder 0 last-slash))) | |
877 (choices (mapcar #'(lambda (x) | |
878 (list (cond (prefix (format "%s/%s" prefix x)) | |
879 (leading-plus (format "+%s" x)) | |
880 (t x)))) | |
881 (mh-folder-completion-function folder nil t)))) | |
882 (mh-complete-word folder choices beg end))) | |
883 | |
884 ;;;###mh-autoload | |
885 (defun mh-complete-word (word choices begin end) | |
886 "Complete WORD at from CHOICES. | |
887 Any match found replaces the text from BEGIN to END." | |
888 (let ((completion (try-completion word choices)) | |
889 (completions-buffer "*Completions*")) | |
890 (cond ((eq completion t) | |
891 (ignore-errors | |
892 (kill-buffer completions-buffer)) | |
893 (message "Completed: %s" word)) | |
894 ((null completion) | |
895 (ignore-errors | |
896 (kill-buffer completions-buffer)) | |
897 (message "No completion for %s" word)) | |
898 ((stringp completion) | |
899 (if (equal word completion) | |
900 (with-output-to-temp-buffer completions-buffer | |
901 (mh-display-completion-list (all-completions word choices) | |
68519
bf46ace1ce4e
(mh-complete-word): Fix bug in call to mh-display-completion-list.
Bill Wohler <wohler@newt.com>
parents:
68477
diff
changeset
|
902 word)) |
68465 | 903 (ignore-errors |
904 (kill-buffer completions-buffer)) | |
905 (delete-region begin end) | |
906 (insert completion)))))) | |
907 | |
908 (defun mh-file-is-vcard-p (file) | |
909 "Return t if FILE is a .vcf vcard." | |
910 (let ((case-fold-search t)) | |
911 (and (stringp file) | |
912 (file-exists-p file) | |
913 (or (and (not (mh-have-file-command)) | |
914 (not (null (string-match "\.vcf$" file)))) | |
915 (string-equal "text/x-vcard" (mh-file-mime-type file)))))) | |
916 | |
68477
0f44616074ba
* mh-comp.el (mh-letter-hide-all-skipped-fields)
Bill Wohler <wohler@newt.com>
parents:
68473
diff
changeset
|
917 ;;;###mh-autoload |
68465 | 918 (defun mh-letter-toggle-header-field-display-button (event) |
919 "Toggle header field display at location of EVENT. | |
920 This function does the same thing as | |
921 `mh-letter-toggle-header-field-display' except that it is | |
922 callable from a mouse button." | |
923 (interactive "e") | |
924 (mh-do-at-event-location event | |
925 (mh-letter-toggle-header-field-display nil))) | |
926 | |
927 (defun mh-extract-from-attribution () | |
928 "Extract phrase or comment from From header field." | |
929 (save-excursion | |
930 (if (not (mh-goto-header-field "From: ")) | |
931 nil | |
932 (skip-chars-forward " ") | |
933 (cond | |
934 ((looking-at "\"\\([^\"\n]+\\)\" \\(<.+>\\)") | |
935 (format "%s %s " (match-string 1)(match-string 2))) | |
936 ((looking-at "\\([^<\n]+<.+>\\)$") | |
937 (format "%s " (match-string 1))) | |
938 ((looking-at "\\([^ ]+@[^ ]+\\) +(\\(.+\\))$") | |
939 (format "%s <%s> " (match-string 2)(match-string 1))) | |
940 ((looking-at " *\\(.+\\)$") | |
941 (format "%s " (match-string 1))))))) | |
942 | |
943 (defun mh-insert-prefix-string (mh-ins-string) | |
944 "Insert prefix string before each line in buffer. | |
945 The inserted letter is cited using `sc-cite-original' if | |
946 `mh-yank-behavior' is one of 'supercite or 'autosupercite. | |
947 Otherwise, simply insert MH-INS-STRING before each line." | |
948 (goto-char (point-min)) | |
949 (cond ((or (eq mh-yank-behavior 'supercite) | |
950 (eq mh-yank-behavior 'autosupercite)) | |
951 (sc-cite-original)) | |
952 (mail-citation-hook | |
953 (run-hooks 'mail-citation-hook)) | |
954 (mh-yank-hooks ;old hook name | |
955 (run-hooks 'mh-yank-hooks)) | |
956 (t | |
957 (or (bolp) (forward-line 1)) | |
958 (while (< (point) (point-max)) | |
959 (insert mh-ins-string) | |
960 (forward-line 1)) | |
961 (goto-char (point-min))))) ;leave point like sc-cite-original | |
962 | |
963 (provide 'mh-letter) | |
964 | |
965 ;; Local Variables: | |
966 ;; indent-tabs-mode: nil | |
967 ;; sentence-end-double-space: nil | |
968 ;; End: | |
969 | |
68470 | 970 ;; arch-tag: 0548632c-aadb-4e3b-bb80-bbd62ff90bf3 |
68465 | 971 ;;; mh-letter.el ends here |