aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2009-11-24 09:19:09 +0000
committerKatsumi Yamaoka2009-11-24 09:19:09 +0000
commit937e60c88bfbbc44d44806a7cf43d5f982a8026f (patch)
tree6a08807bd2420787781be5af3e7a2ac3e7696521
parente8e14166989dc9034e2d34c2070803b8a6136763 (diff)
downloademacs-937e60c88bfbbc44d44806a7cf43d5f982a8026f.tar.gz
emacs-937e60c88bfbbc44d44806a7cf43d5f982a8026f.zip
(message-from-style, message-interactive, message-signature): Always set
default values from the corresponding mail-* variables. (message-cite-prefix-regexp, message-sendmail-envelope-from) (message-yank-prefix, message-indentation-spaces, message-signature-file) (message-default-headers): Use boundp rather than (featurep 'xemacs) to check if the corresponding mail-* variables exist.
-rw-r--r--lisp/gnus/ChangeLog11
-rw-r--r--lisp/gnus/message.el54
2 files changed, 53 insertions, 12 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index e29ffcb6732..567b8f76303 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,14 @@
12009-11-24 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * message.el (message-from-style, message-interactive)
4 (message-signature): Always set default values from the corresponding
5 mail-* variables.
6 (message-cite-prefix-regexp, message-sendmail-envelope-from)
7 (message-yank-prefix, message-indentation-spaces)
8 (message-signature-file, message-default-headers): Use boundp rather
9 than (featurep 'xemacs) to check if the corresponding mail-* variables
10 exist.
11
12009-11-20 Chong Yidong <cyd@stupidchicken.com> 122009-11-20 Chong Yidong <cyd@stupidchicken.com>
2 13
3 * message.el (message-send-mail-with-sendmail): Revert last change. 14 * message.el (message-send-mail-with-sendmail): Revert last change.
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index de7d4d54270..3f529047d29 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -159,8 +159,9 @@ If this variable is nil, no such courtesy message will be added."
159 :group 'message-interface 159 :group 'message-interface
160 :type 'regexp) 160 :type 'regexp)
161 161
162(defcustom message-from-style 162(defcustom message-from-style mail-from-style
163 (if (featurep 'xemacs) 'default mail-from-style) 163;; Default to the value of `mail-from-style', available in all Emacsen
164;; that Gnus supports.
164 "*Specifies how \"From\" headers look. 165 "*Specifies how \"From\" headers look.
165 166
166If nil, they contain just the return address like: 167If nil, they contain just the return address like:
@@ -172,6 +173,7 @@ If `angles', they look like:
172 173
173Otherwise, most addresses look like `angles', but they look like 174Otherwise, most addresses look like `angles', but they look like
174`parens' if `angles' would need quoting and `parens' would not." 175`parens' if `angles' would need quoting and `parens' would not."
176 :version "23.2"
175 :type '(choice (const :tag "simple" nil) 177 :type '(choice (const :tag "simple" nil)
176 (const parens) 178 (const parens)
177 (const angles) 179 (const angles)
@@ -434,9 +436,12 @@ whitespace)."
434 :link '(custom-manual "(message)Various Commands") 436 :link '(custom-manual "(message)Various Commands")
435 :group 'message-various) 437 :group 'message-various)
436 438
437(defcustom message-interactive (if (featurep 'xemacs) t mail-interactive) 439(defcustom message-interactive mail-interactive
440;; Default to the value of `mail-interactive', available in all Emacsen
441;; that Gnus supports.
438 "Non-nil means when sending a message wait for and display errors. 442 "Non-nil means when sending a message wait for and display errors.
439nil means let mailer mail back a message to report errors." 443nil means let mailer mail back a message to report errors."
444 :version "23.2"
440 :group 'message-sending 445 :group 'message-sending
441 :group 'message-mail 446 :group 'message-mail
442 :link '(custom-manual "(message)Sending Variables") 447 :link '(custom-manual "(message)Sending Variables")
@@ -611,7 +616,10 @@ Done before generating the new subject of a forward."
611 :type 'regexp) 616 :type 'regexp)
612 617
613(defcustom message-cite-prefix-regexp 618(defcustom message-cite-prefix-regexp
614 (cond ((not (featurep 'xemacs)) 619 ;; Default to the value of `mail-citation-prefix-regexp' if available.
620 ;; Note: as for Emacs 21, XEmacs 21.4 and 21.5, it is unavailable
621 ;; unless sendmail.el is loaded.
622 (cond ((boundp 'mail-citation-prefix-regexp)
615 mail-citation-prefix-regexp) 623 mail-citation-prefix-regexp)
616 ((string-match "[[:digit:]]" "1") 624 ((string-match "[[:digit:]]" "1")
617 ;; Support POSIX? XEmacs 21.5.27 doesn't. 625 ;; Support POSIX? XEmacs 21.5.27 doesn't.
@@ -630,7 +638,7 @@ Done before generating the new subject of a forward."
630 non-word-constituents 638 non-word-constituents
631 "]\\)+>+\\|[ \t]*[]>|}]\\)+"))))) 639 "]\\)+>+\\|[ \t]*[]>|}]\\)+")))))
632 "*Regexp matching the longest possible citation prefix on a line." 640 "*Regexp matching the longest possible citation prefix on a line."
633 :version "22.1" 641 :version "23.2"
634 :group 'message-insertion 642 :group 'message-insertion
635 :link '(custom-manual "(message)Insertion Variables") 643 :link '(custom-manual "(message)Insertion Variables")
636 :type 'regexp 644 :type 'regexp
@@ -820,11 +828,14 @@ Doing so would be even more evil than leaving it out."
820 :type 'boolean) 828 :type 'boolean)
821 829
822(defcustom message-sendmail-envelope-from 830(defcustom message-sendmail-envelope-from
823 (if (featurep 'xemacs) nil mail-envelope-from) 831 ;; Default to the value of `mail-envelope-from' if available.
832 ;; Note: as for Emacsen that Gnus supports, except for SXEmacs, it is
833 ;; unavailable unless sendmail.el is loaded.
834 (if (boundp 'mail-envelope-from) mail-envelope-from)
824 "*Envelope-from when sending mail with sendmail. 835 "*Envelope-from when sending mail with sendmail.
825If this is nil, use `user-mail-address'. If it is the symbol 836If this is nil, use `user-mail-address'. If it is the symbol
826`header', use the From: header of the message." 837`header', use the From: header of the message."
827 :version "22.1" 838 :version "23.2"
828 :type '(choice (string :tag "From name") 839 :type '(choice (string :tag "From name")
829 (const :tag "Use From: header from message" header) 840 (const :tag "Use From: header from message" header)
830 (const :tag "Use `user-mail-address'" nil)) 841 (const :tag "Use `user-mail-address'" nil))
@@ -997,10 +1008,14 @@ Please also read the note in the documentation of
997 :version "23.1" ;; No Gnus 1008 :version "23.1" ;; No Gnus
998 :group 'message-insertion) 1009 :group 'message-insertion)
999 1010
1000(defcustom message-yank-prefix (if (featurep 'xemacs) "> " mail-yank-prefix) 1011(defcustom message-yank-prefix
1012 ;; Default to the value of `mail-yank-prefix' if available.
1013 ;; Note: as for Emacs 21, it is unavailable unless sendmail.el is loaded.
1014 (if (boundp 'mail-yank-prefix) mail-yank-prefix "> ")
1001 "*Prefix inserted on the lines of yanked messages. 1015 "*Prefix inserted on the lines of yanked messages.
1002Fix `message-cite-prefix-regexp' if it is set to an abnormal value. 1016Fix `message-cite-prefix-regexp' if it is set to an abnormal value.
1003See also `message-yank-cited-prefix' and `message-yank-empty-prefix'." 1017See also `message-yank-cited-prefix' and `message-yank-empty-prefix'."
1018 :version "23.2"
1004 :type 'string 1019 :type 'string
1005 :link '(custom-manual "(message)Insertion Variables") 1020 :link '(custom-manual "(message)Insertion Variables")
1006 :group 'message-insertion) 1021 :group 'message-insertion)
@@ -1023,9 +1038,13 @@ See also `message-yank-prefix' and `message-yank-cited-prefix'."
1023 :group 'message-insertion) 1038 :group 'message-insertion)
1024 1039
1025(defcustom message-indentation-spaces 1040(defcustom message-indentation-spaces
1026 (if (featurep 'xemacs) 3 mail-indentation-spaces) 1041 ;; Default to the value of `mail-indentation-spaces' if available.
1042 ;; Note: as for Emacs 21, XEmacs 21.4 and 21.5, it is unavailable
1043 ;; unless sendmail.el is loaded.
1044 (if (boundp 'mail-indentation-spaces) mail-indentation-spaces 3)
1027 "*Number of spaces to insert at the beginning of each cited line. 1045 "*Number of spaces to insert at the beginning of each cited line.
1028Used by `message-yank-original' via `message-yank-cite'." 1046Used by `message-yank-original' via `message-yank-cite'."
1047 :version "23.2"
1029 :group 'message-insertion 1048 :group 'message-insertion
1030 :link '(custom-manual "(message)Insertion Variables") 1049 :link '(custom-manual "(message)Insertion Variables")
1031 :type 'integer) 1050 :type 'integer)
@@ -1052,22 +1071,29 @@ point and mark around the citation text as modified."
1052 :link '(custom-manual "(message)Insertion Variables") 1071 :link '(custom-manual "(message)Insertion Variables")
1053 :group 'message-insertion) 1072 :group 'message-insertion)
1054 1073
1055(defcustom message-signature (if (featurep 'xemacs) t mail-signature) 1074(defcustom message-signature mail-signature
1075 ;; Default to the value of `mail-signature', available in all Emacsen
1076 ;; that Gnus supports.
1056 "*String to be inserted at the end of the message buffer. 1077 "*String to be inserted at the end of the message buffer.
1057If t, the `message-signature-file' file will be inserted instead. 1078If t, the `message-signature-file' file will be inserted instead.
1058If a function, the result from the function will be used instead. 1079If a function, the result from the function will be used instead.
1059If a form, the result from the form will be used instead." 1080If a form, the result from the form will be used instead."
1081 :version "23.2"
1060 :type 'sexp 1082 :type 'sexp
1061 :link '(custom-manual "(message)Insertion Variables") 1083 :link '(custom-manual "(message)Insertion Variables")
1062 :group 'message-insertion) 1084 :group 'message-insertion)
1063 1085
1064(defcustom message-signature-file 1086(defcustom message-signature-file
1065 (if (featurep 'xemacs) "~/.signature" mail-signature-file) 1087 ;; Default to the value of `mail-signature-file' if available.
1088 ;; Note: as for Emacs 21, XEmacs 21.4 and 21.5, it is unavailable
1089 ;; unless sendmail.el is loaded.
1090 (if (boundp 'mail-signature-file) mail-signature-file "~/.signature")
1066 "*Name of file containing the text inserted at end of message buffer. 1091 "*Name of file containing the text inserted at end of message buffer.
1067Ignored if the named file doesn't exist. 1092Ignored if the named file doesn't exist.
1068If nil, don't insert a signature. 1093If nil, don't insert a signature.
1069If a path is specified, the value of `message-signature-directory' is ignored, 1094If a path is specified, the value of `message-signature-directory' is ignored,
1070even if set." 1095even if set."
1096 :version "23.2"
1071 :type '(choice file (const :tags "None" nil)) 1097 :type '(choice file (const :tags "None" nil))
1072 :link '(custom-manual "(message)Insertion Variables") 1098 :link '(custom-manual "(message)Insertion Variables")
1073 :group 'message-insertion) 1099 :group 'message-insertion)
@@ -1138,10 +1164,14 @@ It is a vector of the following headers:
1138 :error "All header lines must be newline terminated") 1164 :error "All header lines must be newline terminated")
1139 1165
1140(defcustom message-default-headers 1166(defcustom message-default-headers
1141 (if (featurep 'xemacs) "" mail-default-headers) 1167 ;; Default to the value of `mail-default-headers' if available.
1168 ;; Note: as for Emacs 21, XEmacs 21.4 and 21.5, it is unavailable
1169 ;; unless sendmail.el is loaded.
1170 (if (boundp 'mail-default-headers) mail-default-headers "")
1142 "*A string containing header lines to be inserted in outgoing messages. 1171 "*A string containing header lines to be inserted in outgoing messages.
1143It is inserted before you edit the message, so you can edit or delete 1172It is inserted before you edit the message, so you can edit or delete
1144these lines." 1173these lines."
1174 :version "23.2"
1145 :group 'message-headers 1175 :group 'message-headers
1146 :link '(custom-manual "(message)Message Headers") 1176 :link '(custom-manual "(message)Message Headers")
1147 :type 'message-header-lines) 1177 :type 'message-header-lines)