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: Lennart Borgman
Subject: Re: looking-at function behaviour
Date: Sun, 6 Jun 2010 18:54:07 +0200

On Sun, Jun 6, 2010 at 6:42 PM, Andrea Crotti <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>
>> On Sun, Jun 6, 2010 at 4:59 PM, Andrea Crotti <address@hidden> 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...

Maybe i am just confusing you. Both looking-at and char-after can be
used, but I guess you have to be more careful since it did not do what
you expected.

> 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]