all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* looking-at function behaviour
@ 2010-06-06 14:59 Andrea Crotti
  2010-06-06 15:04 ` Lennart Borgman
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Crotti @ 2010-06-06 14:59 UTC (permalink / raw)
  To: help-gnu-emacs

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))
 (newline-force))))
--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?




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-06 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-06 14:59 looking-at function behaviour Andrea Crotti
2010-06-06 15:04 ` Lennart Borgman
2010-06-06 16:42   ` Andrea Crotti
2010-06-06 16:54     ` Lennart Borgman

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.