unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: isearch-forward-regexp across lines in various modes
Date: Thu, 29 Jul 2004 20:38:22 +0900	[thread overview]
Message-ID: <b9yllh3m4b5.fsf@jpl.org> (raw)
In-Reply-To: de14e8fd.0407290237.2db735c9@posting.google.com

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

>>>>> In <de14e8fd.0407290237.2db735c9@posting.google.com>
>>>>>	thomas.meyer@dla-marbach.de (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 <yamaoka@jpl.org>

      reply	other threads:[~2004-07-29 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 10:37 isearch-forward-regexp across lines in various modes Thomas Meyer
2004-07-29 11:38 ` Katsumi Yamaoka [this message]

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=b9yllh3m4b5.fsf@jpl.org \
    --to=yamaoka@jpl.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).