diff options
| author | Robert Pluim | 2024-08-22 18:49:12 +0200 |
|---|---|---|
| committer | Robert Pluim | 2025-02-13 14:20:28 +0100 |
| commit | 315519fa7c8e5e142b6abca7b78a47ad3c0cbe37 (patch) | |
| tree | bf17655d2fdaf6c67a0f7f83364c0063271bfe89 /doc | |
| parent | 2f8c2e64e03d85e2093b47e15aa35497054f922f (diff) | |
| download | emacs-315519fa7c8e5e142b6abca7b78a47ad3c0cbe37.tar.gz emacs-315519fa7c8e5e142b6abca7b78a47ad3c0cbe37.zip | |
Teach gnus/message about international Re: variants
* lisp/mail/mail-utils.el (mail-re-regexps): New defcustom,
contains the components used to construct 'rmail-re-abbrevs' and
'message-subject-re-regexp'.
* lisp/gnus/message.el (message-subject-re-regexp): Derive from
'mail-re-regexps'.
(message-strip-subject-re): Make the match case-insensitive.
* lisp/mail/rmail.el (rmail-re-abbrevs): Derive from
'mail-re-regexps'. Update 'rmail-reply-regexp' when it changes.
(rmail-reply-regexp): Set to nil, 'rmail-re-abbrevs' will set
it.
* doc/emacs/rmail.texi (Rmail Reply): Describe
'mail-re-regexps'.
* doc/misc/message.texi (Message Headers): Describe
'mail-re-regexps'.
(Bug#72442)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/rmail.texi | 8 | ||||
| -rw-r--r-- | doc/misc/message.texi | 13 |
2 files changed, 20 insertions, 1 deletions
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi index 402386684ae..7a2ef9be16e 100644 --- a/doc/emacs/rmail.texi +++ b/doc/emacs/rmail.texi | |||
| @@ -776,6 +776,14 @@ to. The @samp{To} field starts out as the address of the person who | |||
| 776 | sent the message you received, and the @samp{CC} field starts out with | 776 | sent the message you received, and the @samp{CC} field starts out with |
| 777 | all the other recipients of that message. | 777 | all the other recipients of that message. |
| 778 | 778 | ||
| 779 | @vindex rmail-re-abbrevs | ||
| 780 | @vindex rmail-reply-prefix | ||
| 781 | @vindex mail-re-regexps | ||
| 782 | The @samp{Subject} header field may contain one or more instances of | ||
| 783 | @samp{Re:} or localized variants thereof. These are removed if they | ||
| 784 | match @code{rmail-re-abbrevs} (which is initialized from | ||
| 785 | @code{mail-re-regexps}), and @code{rmail-reply-prefix} is prepended. | ||
| 786 | |||
| 779 | @vindex mail-dont-reply-to-names | 787 | @vindex mail-dont-reply-to-names |
| 780 | You can exclude certain recipients from being included automatically | 788 | You can exclude certain recipients from being included automatically |
| 781 | in replies, using the variable @code{mail-dont-reply-to-names}. Its | 789 | in replies, using the variable @code{mail-dont-reply-to-names}. Its |
diff --git a/doc/misc/message.texi b/doc/misc/message.texi index 48ac487088e..418eb14e042 100644 --- a/doc/misc/message.texi +++ b/doc/misc/message.texi | |||
| @@ -1688,13 +1688,14 @@ result is inserted. | |||
| 1688 | 1688 | ||
| 1689 | @item message-subject-re-regexp | 1689 | @item message-subject-re-regexp |
| 1690 | @vindex message-subject-re-regexp | 1690 | @vindex message-subject-re-regexp |
| 1691 | @vindex mail-re-regexps | ||
| 1691 | @cindex Aw | 1692 | @cindex Aw |
| 1692 | @cindex Sv | 1693 | @cindex Sv |
| 1693 | @cindex Re | 1694 | @cindex Re |
| 1694 | Responses to messages have subjects that start with @samp{Re: }. This | 1695 | Responses to messages have subjects that start with @samp{Re: }. This |
| 1695 | is @emph{not} an abbreviation of the English word ``response'', but it | 1696 | is @emph{not} an abbreviation of the English word ``response'', but it |
| 1696 | comes from the Latin ``res'', and means ``in the matter of''. Some | 1697 | comes from the Latin ``res'', and means ``in the matter of''. Some |
| 1697 | illiterate nincompoops have failed to grasp this fact, and have | 1698 | standards-challenged companies have failed to grasp this fact, and have |
| 1698 | ``internationalized'' their software to use abominations like | 1699 | ``internationalized'' their software to use abominations like |
| 1699 | @samp{Aw: } (``antwort'') or @samp{Sv: } (``svar'') instead, which is | 1700 | @samp{Aw: } (``antwort'') or @samp{Sv: } (``svar'') instead, which is |
| 1700 | meaningless and evil. However, you may have to deal with users that | 1701 | meaningless and evil. However, you may have to deal with users that |
| @@ -1726,6 +1727,16 @@ responding to a message: | |||
| 1726 | )) | 1727 | )) |
| 1727 | @end lisp | 1728 | @end lisp |
| 1728 | 1729 | ||
| 1730 | You shouldn't need to do this, since the default value of | ||
| 1731 | @code{message-subject-re-regexp} is initialized based on | ||
| 1732 | @code{mail-re-regexps}, which covers most known cases of such | ||
| 1733 | internationalization, and is a lot easier to customize. Customizing | ||
| 1734 | @code{mail-re-regexps} updates @code{message-subject-re-regexp} to | ||
| 1735 | match. | ||
| 1736 | |||
| 1737 | Note that the regexp is matched case-insensitively against the | ||
| 1738 | @samp{Subject} header contents. | ||
| 1739 | |||
| 1729 | @item message-subject-trailing-was-query | 1740 | @item message-subject-trailing-was-query |
| 1730 | @vindex message-subject-trailing-was-query | 1741 | @vindex message-subject-trailing-was-query |
| 1731 | @vindex message-subject-trailing-was-ask-regexp | 1742 | @vindex message-subject-trailing-was-ask-regexp |