From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jay Bingham" Newsgroups: gmane.emacs.help Subject: RE: lisp function to search-forward for lines with same indent Date: Mon, 28 Aug 2006 20:18:04 GMT Message-ID: <20060828.131908.10554.669832@webmail18.nyc.untd.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1156796493 14020 80.91.229.2 (28 Aug 2006 20:21:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2006 20:21:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 28 22:21:18 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 1GHnbM-0000cB-H1 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Aug 2006 22:20:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHnbL-0006jD-U5 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Aug 2006 16:20:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHnb8-0006hn-Er for help-gnu-emacs@gnu.org; Mon, 28 Aug 2006 16:20:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHnb5-0006gC-Cs for help-gnu-emacs@gnu.org; Mon, 28 Aug 2006 16:20:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHnb5-0006ft-1k for help-gnu-emacs@gnu.org; Mon, 28 Aug 2006 16:20:39 -0400 Original-Received: from [64.136.20.164] (helo=outbound-mail.nyc.untd.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1GHnk6-0003Ev-8j for help-gnu-emacs@gnu.org; Mon, 28 Aug 2006 16:29:58 -0400 Original-Received: from webmail18.nyc.untd.com (webmail18.nyc.untd.com [10.141.27.158]) by smtpout02.nyc.untd.com with SMTP id AABCRGV9XARRL2VS for (sender ); Mon, 28 Aug 2006 13:20:05 -0700 (PDT) X-UNTD-OriginStamp: 9wMZ3l1+FG1mkmIQefRR9m5aYb8QGUX9r73p4lWk+fk2wD+mfovVMmQB/Ee5z8V/ Original-Received: (from b.jc-emacs@netzero.com) by webmail18.nyc.untd.com (jqueuemail) id LYVV2BCF; Mon, 28 Aug 2006 13:19:08 PDT Original-Received: from [15.235.153.104] by webmail18.nyc.untd.com with HTTP: Mon, 28 Aug 2006 20:18:04 GMT X-Originating-IP: [15.235.153.104] Original-To: help-gnu-emacs@gnu.org X-Mailer: Webmail Version 4.0 Content-Disposition: inline X-ContentStamp: 10:5:1602719998 X-MAIL-INFO: 58b83949e1813de1585881cdedcd09000129316d007d4c784c7d8d6d0c0c6dd16d493c X-UNTD-Peer-Info: 10.141.27.158|webmail18.nyc.untd.com|webmail18.nyc.untd.com|b.jc-emacs@netzero.com 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:37000 Archived-At: On Monday, August 28, 2006 3:17 AM Badari Kakumani wrote: > 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. The variable search-whitespace-regexp provides a regular expression = to be used to match a sequence of white space in incremental searches. Its default value is "\\s-+". If you never want sequences of white space to be changed to this = regexp set it to nil in your .emacs or if you use customization it can be set to = nil via customization. If you don't mind sequences of whit space being changed to this = regexp most of the time and just want to do specific numbers of spaces on occasion = you can use a regexp like this: "^ \{2\}\sw" __ J_) C_)ingham = _____________________________________________________________________ PrivatePhone - FREE telephone number & voicemail. A number so private, you can make it public. http://www.privatephone.com