aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorRobert Pluim2024-08-22 18:49:12 +0200
committerRobert Pluim2025-02-13 14:20:28 +0100
commit315519fa7c8e5e142b6abca7b78a47ad3c0cbe37 (patch)
treebf17655d2fdaf6c67a0f7f83364c0063271bfe89 /doc/misc
parent2f8c2e64e03d85e2093b47e15aa35497054f922f (diff)
downloademacs-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/misc')
-rw-r--r--doc/misc/message.texi13
1 files changed, 12 insertions, 1 deletions
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
1694Responses to messages have subjects that start with @samp{Re: }. This 1695Responses to messages have subjects that start with @samp{Re: }. This
1695is @emph{not} an abbreviation of the English word ``response'', but it 1696is @emph{not} an abbreviation of the English word ``response'', but it
1696comes from the Latin ``res'', and means ``in the matter of''. Some 1697comes from the Latin ``res'', and means ``in the matter of''. Some
1697illiterate nincompoops have failed to grasp this fact, and have 1698standards-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
1700meaningless and evil. However, you may have to deal with users that 1701meaningless 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
1730You 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
1733internationalization, and is a lot easier to customize. Customizing
1734@code{mail-re-regexps} updates @code{message-subject-re-regexp} to
1735match.
1736
1737Note 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