From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: regexp bug?
Date: Thu, 16 Nov 2006 14:29:27 +0100 [thread overview]
Message-ID: <85k61vh64o.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87velfpmpy.fsf@pereiro.luannocracy.com> (David Abrahams's message of "Thu\, 16 Nov 2006 08\:03\:53 -0500")
David Abrahams <dave@boost-consulting.com> writes:
> If I put point on a letter, like this "x", (looking-at " *") returns t
> but (looking-at "\s *") returns nil.
>
> Is that intended? Is it documented?
Yes. But in
(info "(elisp) Syntax for Strings")
instead of
(info "(elisp) Syntax of Regexps")
since
(looking-at "\s *") is the same as (looking-at "s *"),
You probably want (looking-at "\\s *") instead.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2006-11-16 13:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 13:03 regexp bug? David Abrahams
2006-11-16 13:11 ` David Abrahams
2006-11-16 13:20 ` Kim F. Storm
2006-11-16 13:29 ` David Kastrup [this message]
2006-11-16 14:01 ` Kim F. Storm
-- strict thread matches above, loose matches on Subject: below --
2002-09-13 9:05 coriordan
2002-09-13 9:30 ` Juanma Barranquero
2002-09-13 10:47 ` coriordan
2002-09-13 11:32 ` Juanma Barranquero
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85k61vh64o.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.