aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-03 19:16:43 +0000
committerRichard M. Stallman1997-05-03 19:16:43 +0000
commit0a01a04eeeb0810e214ae385e231936a6207c88c (patch)
tree1a6b11011d559ed3456f27ba7469a28dc28513fe /lisp
parent9bb97fe9a1382a01bf3927d7abd22ffe4f625b24 (diff)
downloademacs-0a01a04eeeb0810e214ae385e231936a6207c88c.tar.gz
emacs-0a01a04eeeb0810e214ae385e231936a6207c88c.zip
Use defcustom.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/rmailout.el16
-rw-r--r--lisp/mail/rmailsum.el18
2 files changed, 24 insertions, 10 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index 90ee095a46b..fc2bf545208 100644
--- a/lisp/mail/rmailout.el
+++ b/lisp/mail/rmailout.el
@@ -27,13 +27,18 @@
27(require 'rmail) 27(require 'rmail)
28 28
29;;;###autoload 29;;;###autoload
30(defvar rmail-output-file-alist nil 30(defcustom rmail-output-file-alist nil
31 "*Alist matching regexps to suggested output Rmail files. 31 "*Alist matching regexps to suggested output Rmail files.
32This is a list of elements of the form (REGEXP . NAME-EXP). 32This is a list of elements of the form (REGEXP . NAME-EXP).
33The suggestion is taken if REGEXP matches anywhere in the message buffer. 33The suggestion is taken if REGEXP matches anywhere in the message buffer.
34NAME-EXP may be a string constant giving the file name to use, 34NAME-EXP may be a string constant giving the file name to use,
35or more generally it may be any kind of expression that returns 35or more generally it may be any kind of expression that returns
36a file name as a string.") 36a file name as a string."
37 :type '(repeat (cons regexp
38 (choice :value ""
39 (string :tag "File Name")
40 sexp)))
41 :group 'rmail-output)
37 42
38;;; There are functions elsewhere in Emacs that use this function; check 43;;; There are functions elsewhere in Emacs that use this function; check
39;;; them out before you change the calling method. 44;;; them out before you change the calling method.
@@ -172,8 +177,11 @@ starting with the current one. Deleted messages are skipped and don't count."
172 (rmail-next-undeleted-message 1)))))) 177 (rmail-next-undeleted-message 1))))))
173 178
174;;;###autoload 179;;;###autoload
175(defvar rmail-fields-not-to-output nil 180(defcustom rmail-fields-not-to-output nil
176 "*Regexp describing fields to exclude when outputting a message to a file.") 181 "*Regexp describing fields to exclude when outputting a message to a file."
182 :type '(choice (const :tag "None" nil)
183 regexp)
184 :group 'rmail-output)
177 185
178;; Delete from the buffer header fields we don't want output. 186;; Delete from the buffer header fields we don't want output.
179;; NOT-RMAIL if t means this buffer does not have the full header 187;; NOT-RMAIL if t means this buffer does not have the full header
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 076a3d26aff..4a7dd67b082 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -34,12 +34,16 @@
34(require 'rmail) 34(require 'rmail)
35 35
36;;;###autoload 36;;;###autoload
37(defvar rmail-summary-scroll-between-messages t 37(defcustom rmail-summary-scroll-between-messages t
38 "*Non-nil means Rmail summary scroll commands move between messages.") 38 "*Non-nil means Rmail summary scroll commands move between messages."
39 :type 'boolean
40 :group 'rmail-summary)
39 41
40;;;###autoload 42;;;###autoload
41(defvar rmail-summary-line-count-flag t 43(defcustom rmail-summary-line-count-flag t
42 "*Non-nil if Rmail summary should show the number of lines in each message.") 44 "*Non-nil if Rmail summary should show the number of lines in each message."
45 :type 'boolean
46 :group 'rmail-summary)
43 47
44(defvar rmail-summary-font-lock-keywords 48(defvar rmail-summary-font-lock-keywords
45 '(("^....D.*" . font-lock-string-face) ; Deleted. 49 '(("^....D.*" . font-lock-string-face) ; Deleted.
@@ -267,10 +271,12 @@ nil for FUNCTION means all messages."
267 line)) 271 line))
268 272
269;;;###autoload 273;;;###autoload
270(defvar rmail-summary-line-decoder (function identity) 274(defcustom rmail-summary-line-decoder (function identity)
271 "*Function to decode summary-line. 275 "*Function to decode summary-line.
272 276
273By default, `identity' is set.") 277By default, `identity' is set."
278 :type 'function
279 :group 'rmail-summary)
274 280
275(defun rmail-make-summary-line-1 (msg) 281(defun rmail-make-summary-line-1 (msg)
276 (goto-char (rmail-msgbeg msg)) 282 (goto-char (rmail-msgbeg msg))