unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Searching across line breaks
Date: Mon, 18 Jul 2011 19:40:53 +0200	[thread overview]
Message-ID: <4E247025.9020207@easy-emacs.de> (raw)
In-Reply-To: <32082295.post@talk.nabble.com>

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	other threads:[~2011-07-18 17:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18  3:57 Searching across line breaks spinner
2011-07-18  8:48 ` Andreas Röhler
2011-07-18 11:00   ` spinner
2011-07-18 17:40     ` Andreas Röhler [this message]
2011-07-18 18:58       ` Peter Dyballa
2011-07-19  5:30         ` Andreas Röhler
2011-07-19 13:45           ` Memnon Anon
2011-07-19 16:39             ` Andreas Röhler
2011-07-18  9:34 ` Memnon Anon
2011-07-18 11:06   ` spinner
2011-07-18 12:30     ` ken

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=4E247025.9020207@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.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.
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).