diff options
| -rw-r--r-- | lisp/gnus/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 60 |
2 files changed, 45 insertions, 25 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2bdb587c1e1..0f9667a817b 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2009-11-19 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * message.el (message-from-style, message-interactive) | ||
| 4 | (message-cite-prefix-regexp, message-sendmail-envelope-from) | ||
| 5 | (message-yank-prefix, message-indentation-spaces, message-signature) | ||
| 6 | (message-signature-file, message-default-headers): For GNU Emacs, set | ||
| 7 | default values from the corresponding mail-* variables. | ||
| 8 | (message-send-mail-with-sendmail): Use envelope-from only if | ||
| 9 | mail-specify-envelope-from is non-nil. | ||
| 10 | |||
| 1 | 2009-11-17 Katsumi Yamaoka <yamaoka@jpl.org> | 11 | 2009-11-17 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 12 | ||
| 3 | * rfc2047.el (rfc2047-decode-region): Don't quote decoded words | 13 | * rfc2047.el (rfc2047-decode-region): Don't quote decoded words |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index d6feaa0b346..2b67e790ac5 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -159,7 +159,8 @@ 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 'default | 162 | (defcustom message-from-style |
| 163 | (if (featurep 'xemacs) 'default mail-from-style) | ||
| 163 | "*Specifies how \"From\" headers look. | 164 | "*Specifies how \"From\" headers look. |
| 164 | 165 | ||
| 165 | If nil, they contain just the return address like: | 166 | If nil, they contain just the return address like: |
| @@ -433,7 +434,7 @@ whitespace)." | |||
| 433 | :link '(custom-manual "(message)Various Commands") | 434 | :link '(custom-manual "(message)Various Commands") |
| 434 | :group 'message-various) | 435 | :group 'message-various) |
| 435 | 436 | ||
| 436 | (defcustom message-interactive t | 437 | (defcustom message-interactive (if (featurep 'xemacs) t mail-interactive) |
| 437 | "Non-nil means when sending a message wait for and display errors. | 438 | "Non-nil means when sending a message wait for and display errors. |
| 438 | nil means let mailer mail back a message to report errors." | 439 | nil means let mailer mail back a message to report errors." |
| 439 | :group 'message-sending | 440 | :group 'message-sending |
| @@ -610,21 +611,24 @@ Done before generating the new subject of a forward." | |||
| 610 | :type 'regexp) | 611 | :type 'regexp) |
| 611 | 612 | ||
| 612 | (defcustom message-cite-prefix-regexp | 613 | (defcustom message-cite-prefix-regexp |
| 613 | (if (string-match "[[:digit:]]" "1") | 614 | (cond ((not (featurep 'xemacs)) |
| 614 | ;; Support POSIX? XEmacs 21.5.27 doesn't. | 615 | mail-citation-prefix-regexp) |
| 615 | "\\([ \t]*[_.[:word:]]+>+\\|[ \t]*[]>|}]\\)+" | 616 | ((string-match "[[:digit:]]" "1") |
| 616 | ;; ?-, ?_ or ?. MUST NOT be in syntax entry w. | 617 | ;; Support POSIX? XEmacs 21.5.27 doesn't. |
| 617 | (let (non-word-constituents) | 618 | "\\([ \t]*[_.[:word:]]+>+\\|[ \t]*[]>|}]\\)+") |
| 618 | (with-syntax-table text-mode-syntax-table | 619 | (t |
| 619 | (setq non-word-constituents | 620 | ;; ?-, ?_ or ?. MUST NOT be in syntax entry w. |
| 620 | (concat | 621 | (let (non-word-constituents) |
| 621 | (if (string-match "\\w" "_") "" "_") | 622 | (with-syntax-table text-mode-syntax-table |
| 622 | (if (string-match "\\w" ".") "" ".")))) | 623 | (setq non-word-constituents |
| 623 | (if (equal non-word-constituents "") | 624 | (concat |
| 624 | "\\([ \t]*\\(\\w\\)+>+\\|[ \t]*[]>|}]\\)+" | 625 | (if (string-match "\\w" "_") "" "_") |
| 625 | (concat "\\([ \t]*\\(\\w\\|[" | 626 | (if (string-match "\\w" ".") "" ".")))) |
| 626 | non-word-constituents | 627 | (if (equal non-word-constituents "") |
| 627 | "]\\)+>+\\|[ \t]*[]>|}]\\)+")))) | 628 | "\\([ \t]*\\(\\w\\)+>+\\|[ \t]*[]>|}]\\)+" |
| 629 | (concat "\\([ \t]*\\(\\w\\|[" | ||
| 630 | non-word-constituents | ||
| 631 | "]\\)+>+\\|[ \t]*[]>|}]\\)+"))))) | ||
| 628 | "*Regexp matching the longest possible citation prefix on a line." | 632 | "*Regexp matching the longest possible citation prefix on a line." |
| 629 | :version "22.1" | 633 | :version "22.1" |
| 630 | :group 'message-insertion | 634 | :group 'message-insertion |
| @@ -815,8 +819,10 @@ Doing so would be even more evil than leaving it out." | |||
| 815 | :link '(custom-manual "(message)Mail Variables") | 819 | :link '(custom-manual "(message)Mail Variables") |
| 816 | :type 'boolean) | 820 | :type 'boolean) |
| 817 | 821 | ||
| 818 | (defcustom message-sendmail-envelope-from nil | 822 | (defcustom message-sendmail-envelope-from |
| 823 | (if (featurep 'xemacs) nil mail-envelope-from) | ||
| 819 | "*Envelope-from when sending mail with sendmail. | 824 | "*Envelope-from when sending mail with sendmail. |
| 825 | This only has an effect if `mail-specify-envelope-from' is non-nil. | ||
| 820 | If this is nil, use `user-mail-address'. If it is the symbol | 826 | If this is nil, use `user-mail-address'. If it is the symbol |
| 821 | `header', use the From: header of the message." | 827 | `header', use the From: header of the message." |
| 822 | :version "22.1" | 828 | :version "22.1" |
| @@ -992,7 +998,7 @@ Please also read the note in the documentation of | |||
| 992 | :version "23.1" ;; No Gnus | 998 | :version "23.1" ;; No Gnus |
| 993 | :group 'message-insertion) | 999 | :group 'message-insertion) |
| 994 | 1000 | ||
| 995 | (defcustom message-yank-prefix "> " | 1001 | (defcustom message-yank-prefix (if (featurep 'xemacs) "> " mail-yank-prefix) |
| 996 | "*Prefix inserted on the lines of yanked messages. | 1002 | "*Prefix inserted on the lines of yanked messages. |
| 997 | Fix `message-cite-prefix-regexp' if it is set to an abnormal value. | 1003 | Fix `message-cite-prefix-regexp' if it is set to an abnormal value. |
| 998 | See also `message-yank-cited-prefix' and `message-yank-empty-prefix'." | 1004 | See also `message-yank-cited-prefix' and `message-yank-empty-prefix'." |
| @@ -1017,7 +1023,8 @@ See also `message-yank-prefix' and `message-yank-cited-prefix'." | |||
| 1017 | :link '(custom-manual "(message)Insertion Variables") | 1023 | :link '(custom-manual "(message)Insertion Variables") |
| 1018 | :group 'message-insertion) | 1024 | :group 'message-insertion) |
| 1019 | 1025 | ||
| 1020 | (defcustom message-indentation-spaces 3 | 1026 | (defcustom message-indentation-spaces |
| 1027 | (if (featurep 'xemacs) 3 mail-indentation-spaces) | ||
| 1021 | "*Number of spaces to insert at the beginning of each cited line. | 1028 | "*Number of spaces to insert at the beginning of each cited line. |
| 1022 | Used by `message-yank-original' via `message-yank-cite'." | 1029 | Used by `message-yank-original' via `message-yank-cite'." |
| 1023 | :group 'message-insertion | 1030 | :group 'message-insertion |
| @@ -1046,7 +1053,7 @@ point and mark around the citation text as modified." | |||
| 1046 | :link '(custom-manual "(message)Insertion Variables") | 1053 | :link '(custom-manual "(message)Insertion Variables") |
| 1047 | :group 'message-insertion) | 1054 | :group 'message-insertion) |
| 1048 | 1055 | ||
| 1049 | (defcustom message-signature t | 1056 | (defcustom message-signature (if (featurep 'xemacs) t mail-signature) |
| 1050 | "*String to be inserted at the end of the message buffer. | 1057 | "*String to be inserted at the end of the message buffer. |
| 1051 | If t, the `message-signature-file' file will be inserted instead. | 1058 | If t, the `message-signature-file' file will be inserted instead. |
| 1052 | If a function, the result from the function will be used instead. | 1059 | If a function, the result from the function will be used instead. |
| @@ -1055,7 +1062,8 @@ If a form, the result from the form will be used instead." | |||
| 1055 | :link '(custom-manual "(message)Insertion Variables") | 1062 | :link '(custom-manual "(message)Insertion Variables") |
| 1056 | :group 'message-insertion) | 1063 | :group 'message-insertion) |
| 1057 | 1064 | ||
| 1058 | (defcustom message-signature-file "~/.signature" | 1065 | (defcustom message-signature-file |
| 1066 | (if (featurep 'xemacs) "~/.signature" mail-signature-file) | ||
| 1059 | "*Name of file containing the text inserted at end of message buffer. | 1067 | "*Name of file containing the text inserted at end of message buffer. |
| 1060 | Ignored if the named file doesn't exist. | 1068 | Ignored if the named file doesn't exist. |
| 1061 | If nil, don't insert a signature. | 1069 | If nil, don't insert a signature. |
| @@ -1130,7 +1138,8 @@ It is a vector of the following headers: | |||
| 1130 | :valid-regexp "^\\'" | 1138 | :valid-regexp "^\\'" |
| 1131 | :error "All header lines must be newline terminated") | 1139 | :error "All header lines must be newline terminated") |
| 1132 | 1140 | ||
| 1133 | (defcustom message-default-headers "" | 1141 | (defcustom message-default-headers |
| 1142 | (if (featurep 'xemacs) "" mail-default-headers) | ||
| 1134 | "*A string containing header lines to be inserted in outgoing messages. | 1143 | "*A string containing header lines to be inserted in outgoing messages. |
| 1135 | It is inserted before you edit the message, so you can edit or delete | 1144 | It is inserted before you edit the message, so you can edit or delete |
| 1136 | these lines." | 1145 | these lines." |
| @@ -4531,8 +4540,9 @@ If you always want Gnus to send messages in one piece, set | |||
| 4531 | ;; since some systems have broken sendmails. | 4540 | ;; since some systems have broken sendmails. |
| 4532 | ;; But some systems are more broken with -f, so | 4541 | ;; But some systems are more broken with -f, so |
| 4533 | ;; we'll let users override this. | 4542 | ;; we'll let users override this. |
| 4534 | (if (null message-sendmail-f-is-evil) | 4543 | (and (null message-sendmail-f-is-evil) |
| 4535 | (list "-f" (message-sendmail-envelope-from))) | 4544 | mail-specify-envelope-from |
| 4545 | (list "-f" (message-sendmail-envelope-from))) | ||
| 4536 | ;; These mean "report errors by mail" | 4546 | ;; These mean "report errors by mail" |
| 4537 | ;; and "deliver in background". | 4547 | ;; and "deliver in background". |
| 4538 | (if (null message-interactive) '("-oem" "-odb")) | 4548 | (if (null message-interactive) '("-oem" "-odb")) |