[Top][All Lists]

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

looking-at function behaviour

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

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.

--8<---------------cut here---------------start------------->8---
 (when (not (looking-at closing-char))
   (insert closing-char))
--8<---------------cut here---------------end--------------->8---

With this code I would like to
- see if a char is before the end of line
- insert it if not

Is quite simple but it doesn't work.
And even trying now on the fly

(looking-at "a") ;; "a"

Is anyway always nil, how then am I supposed to do it given that this is
the function which reading at the info page should be used?

reply via email to

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