[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lisp function to search-forward for lines with same indent
From: |
Malte Spiess |
Subject: |
Re: lisp function to search-forward for lines with same indent |
Date: |
Mon, 28 Aug 2006 22:42:16 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
"Badari Kakumani" <badarisj@gmail.com> writes:
> [...]
>
> any clues on how to go about developing this lisp function or
> any pointers to existing functions that do this will help.
Sorry, can't help you here, I hoped that some guru would answer, but as
it is I'll at least answer your 2nd question:
> to my surprise, in emacs, when i press:
> Esc Ctr-s ^ Space \sw
> emacs is matching all lines that start with any number of spaces
> (instead of matching lines with exactly one-space in the beginning
> of line and a non-space character). not sure why it is behaving this
> way.
It's because spaces matches any number of spaces (and other whitespace).
If you really want a space, you have to press C-q space.
> thanks,
> -badari
HTH
Malte