diff options
| -rw-r--r-- | lisp/enriched.el | 16 | ||||
| -rw-r--r-- | lisp/mail/mh-comp.el | 68 | ||||
| -rw-r--r-- | lisp/mail/mh-utils.el | 54 |
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. |
| 148 | If you set variables in this hook, you should arrange for them to be restored | 154 | If you set variables in this hook, you should arrange for them to be restored |
| 149 | to their old values if you leave Enriched mode. One way to do this is to add | 155 | to their old values if you leave Enriched mode. One way to do this is to add |
| 150 | them and their old values to `enriched-old-bindings'.") | 156 | them 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. |
| 40 | Some sites need to change this because of a name conflict.") | 46 | Some 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]. |
| 86 | If non-nil, yanking the current message into a draft letter deletes any | 92 | If non-nil, yanking the current message into a draft letter deletes any |
| 87 | windows displaying the message.") | 93 | windows 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]. |
| 91 | If non-nil, include the entire message. If the symbol `body', then yank the | 99 | If non-nil, include the entire message. If the symbol `body', then yank the |
| 92 | message minus the header. If nil, yank only the portion of the message | 100 | message minus the header. If nil, yank only the portion of the message |
| 93 | following the point. If the show buffer has a region, this variable is | 101 | following the point. If the show buffer has a region, this variable is |
| 94 | ignored.") | 102 | ignored." |
| 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 |
| 99 | by \\[mh-insert-letter] or \\[mh-yank-cur-msg].") | 109 | by \\[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. |
| 103 | If nil, prompt for recipient. If non-nil, then \\<mh-folder-mode-map>`\\[mh-reply]' will use this | 115 | If nil, prompt for recipient. If non-nil, then \\<mh-folder-mode-map>`\\[mh-reply]' will use this |
| 104 | value and it should be one of \"from\", \"to\", \"cc\", or \"all\". | 116 | value and it should be one of \"from\", \"to\", \"cc\", or \"all\". |
| 105 | The values \"cc\" and \"all\" do the same thing.") | 117 | The 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. |
| 109 | Inserted into message by \\<mh-letter-mode-map>\\[mh-insert-signature].") | 125 | Inserted 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. |
| 113 | The two string arguments to the format are the sender of the original | 131 | The two string arguments to the format are the sender of the original |
| 114 | message and the original subject line.") | 132 | message 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. |
| 135 | It is passed three arguments: TO recipients, SUBJECT, and CC recipients.") | 157 | It 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. |
| 56 | Non-nil means start a background process collecting the names of all | 58 | Non-nil means start a background process collecting the names of all |
| 57 | folders as soon as mh-e is loaded.") | 59 | folders 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. |
| 64 | The variables `mh-visible-headers' and `mh-invisible-headers' control what | 70 | The variables `mh-visible-headers' and `mh-invisible-headers' control what |
| 65 | is removed.") | 71 | is 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. |
| 69 | Only used if `mh-clean-message-header' is non-nil. Setting this variable | 77 | Only used if `mh-clean-message-header' is non-nil. Setting this variable |
| 70 | overrides `mh-invisible-headers'.") | 78 | overrides `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'.") | |||
| 75 | If `mh-visible-headers' is non-nil, it is used instead to specify what | 85 | If `mh-visible-headers' is non-nil, it is used instead to specify what |
| 76 | to keep.") | 86 | to 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. |
| 90 | The desired message's number will be an argument to format.") | 104 | The 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. |
| 94 | A value of T means use the default format file. | 108 | A value of T means use the default format file. |
| 95 | Nil means don't use mhl to format messages when showing; mhl is still used, | 109 | Nil means don't use mhl to format messages when showing; mhl is still used, |
| 96 | with the default format file, to format messages when printing them. | 110 | with the default format file, to format messages when printing them. |
| 97 | The format used should specify a non-zero value for overflowoffset so | 111 | The format used should specify a non-zero value for overflowoffset so |
| 98 | the message continues to conform to RFC 822 and mh-e can parse the headers.") | 112 | the 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 |