unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: flyspell.el patch
Date: Thu, 16 Oct 2003 18:09:42 +0200	[thread overview]
Message-ID: <m3r81dw4e1.fsf@quimbies.gnus.org> (raw)

The following patch fixes the in-headers predicated -- if
mail-header-separator is "", it was true on most bodies as well.
Reversing the logic (kinda) should do the trick...

*** flyspell.el.~1.47.~	Thu Oct 16 17:21:41 2003
--- flyspell.el	Thu Oct 16 18:07:35 2003
***************
*** 267,273 ****
  (defun mail-mode-flyspell-verify ()
    "This function is used for `flyspell-generic-check-word-p' in Mail mode."
    (let ((in-headers (save-excursion
! 		      (re-search-forward mail-header-separator nil t)))
  	(in-signature (save-excursion
  			(re-search-backward message-signature-separator nil t))))
      (cond (in-headers
--- 267,273 ----
  (defun mail-mode-flyspell-verify ()
    "This function is used for `flyspell-generic-check-word-p' in Mail mode."
    (let ((in-headers (save-excursion
! 		      (not (re-search-backward mail-header-separator nil t))))
  	(in-signature (save-excursion
  			(re-search-backward message-signature-separator nil t))))
      (cond (in-headers

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen

             reply	other threads:[~2003-10-16 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16 16:09 Lars Magne Ingebrigtsen [this message]
2003-10-16 17:12 ` flyspell.el patch Miles Bader
2003-10-16 17:29   ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r81dw4e1.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).