[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp bug?
From: |
David Kastrup |
Subject: |
Re: regexp bug? |
Date: |
Thu, 16 Nov 2006 14:29:27 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) |
David Abrahams <address@hidden> 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