; * lisp/textmodes/ispell.el (ispell-message): Add commentary.
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 May 2024 17:44:52 +0000 (20:44 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 May 2024 17:44:52 +0000 (20:44 +0300)
lisp/textmodes/ispell.el

index 08a7b816de325c0e4d36abdc398e32ce11d395bb..d66c13625bdf26513e56fcfe1c2f164b951ab7f8 100644 (file)
@@ -4038,6 +4038,10 @@ You can bind this to the key C-c i in GNUS or mail by adding to
            (if (re-search-forward "^Subject: *" end-of-headers t)
                (progn
                  (goto-char (match-end 0))
+                  ;; Don't spell-check Subject if it comes from a
+                  ;; received message: "Re:" indicates this is a reply
+                  ;; to someone else's message, "[...]" indicates this
+                  ;; is a subject of a forwarded message.
                  (if (and (not (looking-at ".*\\<Re\\>"))
                           (not (looking-at "\\[")))
                      (progn