Didier Verna <verna(a)inf.enst.fr> writes:
Hrvoje Niksic <hniksic(a)srce.hr> writes:
> Although your suggestion makes sense as a user-interface improvement,
> I'm certain that much code depends on case-fold-search doing what it
> says it does, no matter what the search string is. For example:
>
> (let ((case-fold-search nil))
> (re-search-for "^Content-Length:")
> ..)
In this particular case, my suggestion doesn't change anything. What
I suggested is check the search string ONLY when case-fold-search is
non nil, which means that we're not supposed to care about the case.
Sorry, Didier; what I meant to write was (let ((case-fold-search t))
...) as would be logical for searching the headers. With this
correction, you will find actual code in Emacs mail readers that looks
like that.
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Old numerical analysts never die, they just get disarrayed.