]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/textmodes/ispell.el (ispell-message): Add commentary.
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 May 2024 17:44:52 +0000 (20:44 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 May 2024 15:48:10 +0000 (17:48 +0200)
(cherry picked from commit f9832e80b89d45c283c80e89471a8687df145821)

lisp/textmodes/ispell.el

index 17af1f1d926dc25116f91547e58ff1474bbdd636..f523df9881e7468494746cb5632eb6fe596ff16c 100644 (file)
@@ -4059,6 +4059,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