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

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

Re: looking-at function behaviour


From: Andrea Crotti
Subject: Re: looking-at function behaviour
Date: Sun, 06 Jun 2010 18:42:19 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Sun, Jun 6, 2010 at 4:59 PM, Andrea Crotti <andrea.crotti.0@gmail.com> 
> wrote:
>> I don't understand how I should use the looking-at function, from what I
>> see in the doc is not what I see happening.
>
> looking-at takes a regexp as argument. Is not that clear from the doc
> (i.e. describe-function)?
>
> You probably want to use char-after instead here.

Uhm no it looks like that char-after is not caring about the end of
line...

But maybe I should change my definition, since it's a string not a char
--8<---------------cut here---------------start------------->8---
(defconst default-closing-char ";"
  "default closing char, change in newline-force-close-alist if needed")
--8<---------------cut here---------------end--------------->8---

Or maybe I can just need something "string"->"regexp" corresponding,
which is even better




reply via email to

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