aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/enriched.el16
-rw-r--r--lisp/mail/mh-comp.el68
-rw-r--r--lisp/mail/mh-utils.el54
3 files changed, 94 insertions, 44 deletions
diff --git a/lisp/enriched.el b/lisp/enriched.el
index 8cc47361bab..10bbb23b4f2 100644
--- a/lisp/enriched.el
+++ b/lisp/enriched.el
@@ -46,8 +46,14 @@
46;;; Variables controlling the display 46;;; Variables controlling the display
47;;; 47;;;
48 48
49(defvar enriched-verbose t 49(defgroup enriched nil
50 "*If non-nil, give status messages when reading and writing files.") 50 "Read and save files in text/enriched format"
51 :group 'wp)
52
53(defcustom enriched-verbose t
54 "*If non-nil, give status messages when reading and writing files."
55 :type 'boolean
56 :group 'enriched)
51 57
52;;; 58;;;
53;;; Set up faces & display table 59;;; Set up faces & display table
@@ -143,11 +149,13 @@ Any property that is neither on this list nor dealt with by
143 (cons '(enriched-mode " Enriched") 149 (cons '(enriched-mode " Enriched")
144 minor-mode-alist))) 150 minor-mode-alist)))
145 151
146(defvar enriched-mode-hook nil 152(defcustom enriched-mode-hook nil
147 "Functions to run when entering Enriched mode. 153 "Functions to run when entering Enriched mode.
148If you set variables in this hook, you should arrange for them to be restored 154If you set variables in this hook, you should arrange for them to be restored
149to their old values if you leave Enriched mode. One way to do this is to add 155to their old values if you leave Enriched mode. One way to do this is to add
150them and their old values to `enriched-old-bindings'.") 156them and their old values to `enriched-old-bindings'."
157 :type 'hook
158 :group 'enriched)
151 159
152(defvar enriched-old-bindings nil 160(defvar enriched-old-bindings nil
153 "Store old variable values that we change when entering mode. 161 "Store old variable values that we change when entering mode.
diff --git a/lisp/mail/mh-comp.el b/lisp/mail/mh-comp.el
index 25117cac6c2..43ff93b7098 100644
--- a/lisp/mail/mh-comp.el
+++ b/lisp/mail/mh-comp.el
@@ -1,7 +1,7 @@
1;;; mh-comp --- mh-e functions for composing messages 1;;; mh-comp --- mh-e functions for composing messages
2;; Time-stamp: <95/08/19 17:48:59 gildea> 2;; Time-stamp: <95/08/19 17:48:59 gildea>
3 3
4;; Copyright (C) 1993, 1995 Free Software Foundation, Inc. 4;; Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
5 5
6;; This file is part of mh-e, part of GNU Emacs. 6;; This file is part of mh-e, part of GNU Emacs.
7 7
@@ -26,7 +26,7 @@
26 26
27;;; Change Log: 27;;; Change Log:
28 28
29;; $Id: mh-comp.el,v 1.7 1995/11/03 02:28:52 kwzh Exp erik $ 29;; $Id: mh-comp.el,v 1.8 1996/01/14 07:34:30 erik Exp rms $
30 30
31;;; Code: 31;;; Code:
32 32
@@ -35,6 +35,12 @@
35 35
36;;; Site customization (see also mh-utils.el): 36;;; Site customization (see also mh-utils.el):
37 37
38(defgroup mh-compose nil
39 "Mh-e functions for composing messages"
40 :prefix "mh-"
41 :group 'mh)
42
43
38(defvar mh-send-prog "send" 44(defvar mh-send-prog "send"
39 "Name of the MH send program. 45 "Name of the MH send program.
40Some sites need to change this because of a name conflict.") 46Some sites need to change this because of a name conflict.")
@@ -81,37 +87,51 @@ much of the message passed to the hook.")
81 87
82;;; Personal preferences: 88;;; Personal preferences:
83 89
84(defvar mh-delete-yanked-msg-window nil 90(defcustom mh-delete-yanked-msg-window nil
85 "*Controls window display when a message is yanked by \\<mh-letter-mode-map>\\[mh-yank-cur-msg]. 91 "*Controls window display when a message is yanked by \\<mh-letter-mode-map>\\[mh-yank-cur-msg].
86If non-nil, yanking the current message into a draft letter deletes any 92If non-nil, yanking the current message into a draft letter deletes any
87windows displaying the message.") 93windows displaying the message."
94 :type 'boolean
95 :group 'mh-compose)
88 96
89(defvar mh-yank-from-start-of-msg t 97(defcustom mh-yank-from-start-of-msg t
90 "*Controls which part of a message is yanked by \\<mh-letter-mode-map>\\[mh-yank-cur-msg]. 98 "*Controls which part of a message is yanked by \\<mh-letter-mode-map>\\[mh-yank-cur-msg].
91If non-nil, include the entire message. If the symbol `body', then yank the 99If non-nil, include the entire message. If the symbol `body', then yank the
92message minus the header. If nil, yank only the portion of the message 100message minus the header. If nil, yank only the portion of the message
93following the point. If the show buffer has a region, this variable is 101following the point. If the show buffer has a region, this variable is
94ignored.") 102ignored."
103 :type '(choice (const t) (const nil) (const body))
104 :group 'mh-compose)
95 105
96(defvar mh-ins-buf-prefix "> " 106(defcustom mh-ins-buf-prefix "> "
97 "*String to put before each non-blank line of a yanked or inserted message. 107 "*String to put before each non-blank line of a yanked or inserted message.
98\\<mh-letter-mode-map>Used when the message is inserted into an outgoing letter 108\\<mh-letter-mode-map>Used when the message is inserted into an outgoing letter
99by \\[mh-insert-letter] or \\[mh-yank-cur-msg].") 109by \\[mh-insert-letter] or \\[mh-yank-cur-msg]."
110 :type 'string
111 :group 'mh-compose)
100 112
101(defvar mh-reply-default-reply-to nil 113(defcustom mh-reply-default-reply-to nil
102 "*Sets the person or persons to whom a reply will be sent. 114 "*Sets the person or persons to whom a reply will be sent.
103If nil, prompt for recipient. If non-nil, then \\<mh-folder-mode-map>`\\[mh-reply]' will use this 115If nil, prompt for recipient. If non-nil, then \\<mh-folder-mode-map>`\\[mh-reply]' will use this
104value and it should be one of \"from\", \"to\", \"cc\", or \"all\". 116value and it should be one of \"from\", \"to\", \"cc\", or \"all\".
105The values \"cc\" and \"all\" do the same thing.") 117The values \"cc\" and \"all\" do the same thing."
118 :type '(choice (const :tag "Prompt" nil)
119 (const "from") (const "to")
120 (const "cc") (const "all"))
121 :group 'mh-compose)
106 122
107(defvar mh-signature-file-name "~/.signature" 123(defcustom mh-signature-file-name "~/.signature"
108 "*Name of file containing the user's signature. 124 "*Name of file containing the user's signature.
109Inserted into message by \\<mh-letter-mode-map>\\[mh-insert-signature].") 125Inserted into message by \\<mh-letter-mode-map>\\[mh-insert-signature]."
126 :type 'file
127 :group 'mh-compose)
110 128
111(defvar mh-forward-subject-format "%s: %s" 129(defcustom mh-forward-subject-format "%s: %s"
112 "*Format to generate the Subject: line contents for a forwarded message. 130 "*Format to generate the Subject: line contents for a forwarded message.
113The two string arguments to the format are the sender of the original 131The two string arguments to the format are the sender of the original
114message and the original subject line.") 132message and the original subject line."
133 :type 'string
134 :group 'mh-compose)
115 135
116(defvar mh-comp-formfile "components" 136(defvar mh-comp-formfile "components"
117 "Name of file to be used as a skeleton for composing messages. 137 "Name of file to be used as a skeleton for composing messages.
@@ -127,15 +147,21 @@ system MH lib directory.")
127 147
128;;; Hooks: 148;;; Hooks:
129 149
130(defvar mh-letter-mode-hook nil 150(defcustom mh-letter-mode-hook nil
131 "Invoked in `mh-letter-mode' on a new letter.") 151 "Invoked in `mh-letter-mode' on a new letter."
152 :type 'hook
153 :group 'mh-compose)
132 154
133(defvar mh-compose-letter-function nil 155(defcustom mh-compose-letter-function nil
134 "Invoked when setting up a letter draft. 156 "Invoked when setting up a letter draft.
135It is passed three arguments: TO recipients, SUBJECT, and CC recipients.") 157It is passed three arguments: TO recipients, SUBJECT, and CC recipients."
136 158 :type 'function
137(defvar mh-before-send-letter-hook nil 159 :group 'mh-compose)
138 "Invoked at the beginning of the \\<mh-letter-mode-map>\\[mh-send-letter] command.") 160
161(defcustom mh-before-send-letter-hook nil
162 "Invoked at the beginning of the \\<mh-letter-mode-map>\\[mh-send-letter] command."
163 :type 'hook
164 :group 'mh-compose)
139 165
140 166
141(defvar mh-rejected-letter-start 167(defvar mh-rejected-letter-start
diff --git a/lisp/mail/mh-utils.el b/lisp/mail/mh-utils.el
index e7c7460ceab..9503c04fd43 100644
--- a/lisp/mail/mh-utils.el
+++ b/lisp/mail/mh-utils.el
@@ -1,7 +1,7 @@
1;;; mh-utils.el --- mh-e code needed for both sending and reading 1;;; mh-utils.el --- mh-e code needed for both sending and reading
2;; Time-stamp: <95/10/22 17:58:16 gildea> 2;; Time-stamp: <95/10/22 17:58:16 gildea>
3 3
4;; Copyright (C) 1993, 1995 Free Software Foundation, Inc. 4;; Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
5 5
6;; This file is part of mh-e, part of GNU Emacs. 6;; This file is part of mh-e, part of GNU Emacs.
7 7
@@ -24,10 +24,6 @@
24 24
25;; Internal support for mh-e package. 25;; Internal support for mh-e package.
26 26
27;;; Change Log:
28
29;; $Id: mh-utils.el,v 1.10 1996/06/28 06:56:17 rms Exp rms $
30
31;;; Code: 27;;; Code:
32 28
33;;; Set for local environment: 29;;; Set for local environment:
@@ -51,23 +47,37 @@ the mhl program and the components file.")
51 47
52;;; User preferences: 48;;; User preferences:
53 49
54(defvar mh-auto-folder-collect t 50(defgroup mh-buffer nil
51 "Layout of MH-E buffers"
52 :prefix "mh-"
53 :group 'mh)
54
55
56(defcustom mh-auto-folder-collect t
55 "*Whether to start collecting MH folder names immediately in the background. 57 "*Whether to start collecting MH folder names immediately in the background.
56Non-nil means start a background process collecting the names of all 58Non-nil means start a background process collecting the names of all
57folders as soon as mh-e is loaded.") 59folders as soon as mh-e is loaded."
60 :type 'boolean
61 :group 'mh)
58 62
59(defvar mh-recursive-folders nil 63(defcustom mh-recursive-folders nil
60 "*If non-nil, then commands which operate on folders do so recursively.") 64 "*If non-nil, then commands which operate on folders do so recursively."
65 :type 'boolean
66 :group 'mh)
61 67
62(defvar mh-clean-message-header nil 68(defcustom mh-clean-message-header nil
63 "*Non-nil means clean headers of messages that are displayed or inserted. 69 "*Non-nil means clean headers of messages that are displayed or inserted.
64The variables `mh-visible-headers' and `mh-invisible-headers' control what 70The variables `mh-visible-headers' and `mh-invisible-headers' control what
65is removed.") 71is removed."
72 :type 'boolean
73 :group 'mh-buffer)
66 74
67(defvar mh-visible-headers nil 75(defcustom mh-visible-headers nil
68 "*If non-nil, contains a regexp specifying the headers to keep when cleaning. 76 "*If non-nil, contains a regexp specifying the headers to keep when cleaning.
69Only used if `mh-clean-message-header' is non-nil. Setting this variable 77Only used if `mh-clean-message-header' is non-nil. Setting this variable
70overrides `mh-invisible-headers'.") 78overrides `mh-invisible-headers'."
79 :type '(choice (const nil) regexp)
80 :group 'mh-buffer)
71 81
72(defvar mh-invisible-headers 82(defvar mh-invisible-headers
73 "^Received: \\|^Message-Id: \\|^Remailed-\\|^Via: \\|^Mail-from: \\|^Return-Path: \\|^Delivery-Date: \\|^In-Reply-To: \\|^Resent-" 83 "^Received: \\|^Message-Id: \\|^Remailed-\\|^Via: \\|^Mail-from: \\|^Return-Path: \\|^Delivery-Date: \\|^In-Reply-To: \\|^Resent-"
@@ -75,11 +85,15 @@ overrides `mh-invisible-headers'.")
75If `mh-visible-headers' is non-nil, it is used instead to specify what 85If `mh-visible-headers' is non-nil, it is used instead to specify what
76to keep.") 86to keep.")
77 87
78(defvar mh-bury-show-buffer t 88(defcustom mh-bury-show-buffer t
79 "*Non-nil means that the displayed show buffer for a folder is buried.") 89 "*Non-nil means that the displayed show buffer for a folder is buried."
90 :type 'boolean
91 :group 'mh-buffer)
80 92
81(defvar mh-summary-height 4 93(defcustom mh-summary-height 4
82 "*Number of lines in MH-Folder window (including the mode line).") 94 "*Number of lines in MH-Folder window (including the mode line)."
95 :type 'integer
96 :group 'mh-buffer)
83 97
84(defvar mh-msg-number-regexp "^ *\\([0-9]+\\)" 98(defvar mh-msg-number-regexp "^ *\\([0-9]+\\)"
85 "Regexp to find the number of a message in a scan line. 99 "Regexp to find the number of a message in a scan line.
@@ -89,13 +103,15 @@ The message's number must be surrounded with \\( \\)")
89 "Format string containing a regexp matching the scan listing for a message. 103 "Format string containing a regexp matching the scan listing for a message.
90The desired message's number will be an argument to format.") 104The desired message's number will be an argument to format.")
91 105
92(defvar mhl-formfile nil 106(defcustom mhl-formfile nil
93 "*Name of format file to be used by mhl to show and print messages. 107 "*Name of format file to be used by mhl to show and print messages.
94A value of T means use the default format file. 108A value of T means use the default format file.
95Nil means don't use mhl to format messages when showing; mhl is still used, 109Nil means don't use mhl to format messages when showing; mhl is still used,
96with the default format file, to format messages when printing them. 110with the default format file, to format messages when printing them.
97The format used should specify a non-zero value for overflowoffset so 111The format used should specify a non-zero value for overflowoffset so
98the message continues to conform to RFC 822 and mh-e can parse the headers.") 112the message continues to conform to RFC 822 and mh-e can parse the headers."
113 :type '(choice (const nil) (const t) string)
114 :group 'mh)
99(put 'mhl-formfile 'info-file "mh-e") 115(put 'mhl-formfile 'info-file "mh-e")
100 116
101(defvar mh-default-folder-for-message-function nil 117(defvar mh-default-folder-for-message-function nil