[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flyspell.el patch

From: Miles Bader
Subject: Re: flyspell.el patch
Date: Thu, 16 Oct 2003 13:12:09 -0400
User-agent: Mutt/1.3.28i

On Thu, Oct 16, 2003 at 06:09:42PM +0200, Lars Magne Ingebrigtsen wrote:
> 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...
>     (let ((in-headers (save-excursion
> !                   (not (re-search-backward mail-header-separator nil t))))

It still seems wrong -- according to the documentation, mail-header-separator
is _not_ a regexp, so the above code is going to simply always return true for
a typical value like "" (which I use).

I guess it needs to be something like (note no `re-'):

   (not (search-backward (concat "\n" mail-header-separator "\n") nil t))

P.S.  All information contained in the above letter is false,
      for reasons of military security.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]