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

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

Re: isearch-forward-regexp across lines in various modes


From: Katsumi Yamaoka
Subject: Re: isearch-forward-regexp across lines in various modes
Date: Thu, 29 Jul 2004 20:38:22 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

See the doc-string for the search-whitespace-regexp variable.

>>>>> In <address@hidden>
>>>>>   address@hidden (Thomas Meyer) wrote:

> the emacs Info file, chapter
> "Regular Expression Search" states:

>    "If you type <SPC> in incremental
>    regexp search, it matches any
>    sequence of whitespace characters,
>    including newlines.  If you want to
>    match just a space, type `C-q
>    <SPC>'."

> I can see this behaviour when in
> text-mode, but not in e.g. lisp-mode or
> c-mode:

It is because the char syntax for newline is different between
text-mode and others.  The following form returns " " for
text-mode, but returns ">" for lisp-mode.

(char-to-string (char-syntax ?\n))
-- 
Katsumi Yamaoka <address@hidden>


reply via email to

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