From c54fda643d4407aed729a6a84fdd28c69373580b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 8 Jan 2022 16:32:01 +0200 Subject: [PATCH 1/2] Fix Subject "simplification" in Rmail * lisp/mail/rmail.el (rmail-simplified-subject): Match against "[external]" _after_ decoding the Subject by RFC-2047. --- lisp/mail/rmail.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index c598e67dab8..49eaeb560e0 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -3356,12 +3356,12 @@ removing prefixes such as Re:, Fwd: and so on and mailing list tags such as [tag]." (let ((subject (or (rmail-get-header "Subject" msgnum) "")) (regexp "\\`[ \t\n]*\\(\\(\\w\\{1,4\\}\u00a0*[::]\\|\\[[^]]+]\\)[ \t\n]+\\)*")) + (setq subject (rfc2047-decode-string subject)) ;; Corporate mailing systems sometimes add `[External] :'; if that happened, ;; delete everything up thru there. Empirically, that deletion makes ;; the Subject match the other messages in the thread. (if (string-match "\\[external][ \t\n]*:" subject) (setq subject (substring subject (match-end 0)))) - (setq subject (rfc2047-decode-string subject)) (setq subject (replace-regexp-in-string regexp "" subject)) (replace-regexp-in-string "[ \t\n]+" " " subject))) From 30f1bdb41faa705fed497126322547c2d8111f36 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 9 Jan 2022 03:15:34 +0100 Subject: [PATCH 2/2] Clarify docstring of package-native-compile * lisp/emacs-lisp/package.el (package-native-compile): Clarify docstring. --- lisp/emacs-lisp/package.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 8fc54945d61..1387439f0ab 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -397,7 +397,13 @@ a sane initial value." :type '(repeat symbol)) (defcustom package-native-compile nil - "Non-nil means to native compile packages on installation." + "Non-nil means to native compile packages after installing them. +This controls ahead-of-time compilation. If this option is nil, +packages are normally compiled after they have been loaded for +the first time. + +This option does not have any effect if Emacs was not built with +native compilation support." :type '(boolean) :risky t :version "28.1")