From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Malte Spiess Newsgroups: gmane.emacs.help Subject: Re: lisp function to search-forward for lines with same indent Date: Mon, 28 Aug 2006 22:42:16 +0200 Organization: Arcor Message-ID: <87ac5omw2f.fsf@ulm.malte.spiess> References: <1156753011.964177.189840@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156801248 30126 80.91.229.2 (28 Aug 2006 21:40:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2006 21:40:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 23:40:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GHoqR-0006Qv-QS for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Aug 2006 23:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHoqR-0004uK-By for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Aug 2006 17:40:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:5BFu0aSu8mg1Nc4EScv+dfGh+80= Original-Lines: 26 Original-NNTP-Posting-Date: 28 Aug 2006 22:42:17 CEST Original-NNTP-Posting-Host: f0f9e343.newsspool3.arcor-online.net Original-X-Trace: DXC=K`Z]Y5kCQ?ElU`@c^jLCbJMcF=Q^Z^V3H4Fo<]lROoRA4nDHegD_]RE2cl_jCSR@^CfgOZfmcDbjAjhl@jLJ@?LBW0GBVW>SgHB Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:141382 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37007 Archived-At: "Badari Kakumani" 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