help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Searching across line breaks


From: Andreas Röhler
Subject: Re: Searching across line breaks
Date: Mon, 18 Jul 2011 19:40:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11

Am 18.07.2011 13:00, schrieb spinner:

This did not work for me.

George[\r\t\f
]+Washington

should find any name separated by blanks, tabs, newpages, cr, newlines

the newline-expression in the regexp must be typed \C-o inside the minibuffer, ie inserted literarly


According to the links in my OP, some settings need to be customized to make
search-whitespace-regexp work across CRs (and other separators). But as I
said I find the documentation on this customization confusing. C-h v
search-whitespace-regexp


Andreas Röhler wrote:

Am 18.07.2011 05:57, schrieb spinner:

I've got text with carriage returns (CR) ending lines in my LaTex
documents.
isearch does not work for word strings with CRs separating the words. For
instance, isearch on 'George Washington' will not find:
George [CR]
Washington

I've looked online for a solution and found one source that describes the
issue but I'm confused what the customization to the
search-whitespace-regexp variable should be.
http://stackoverflow.com/questions/6029010/isearch-across-line-breaks

This link describes the confusion. I'm a new to emacs and can't figure
out
the variable settings.
http://lists.gnu.org/archive/html/bug-gnu-emacs/2011-05/msg00427.html

Again, what is the proper setting in search-whitespace-regexp to search
across line breaks with carriage returns?


M-x isearch-forward-regexp RET

should enable the right thing here.

Regards,

Andreas








reply via email to

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