unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Jay Bingham" <b.jc-emacs@netzero.com>
Subject: RE: lisp function to search-forward for lines with same indent
Date: Mon, 28 Aug 2006 20:18:04 GMT	[thread overview]
Message-ID: <20060828.131908.10554.669832@webmail18.nyc.untd.com> (raw)

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

             reply	other threads:[~2006-08-28 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-28 20:18 Jay Bingham [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-28  8:16 lisp function to search-forward for lines with same indent Badari Kakumani
2006-08-28 20:42 ` Malte Spiess
2006-08-29 19:42 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060828.131908.10554.669832@webmail18.nyc.untd.com \
    --to=b.jc-emacs@netzero.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).