all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ken Manheimer" <ken.manheimer@gmail.com>
Subject: emacs 22 - regular-expression isearch on spaces extremely lenient
Date: Fri, 28 Apr 2006 16:56:45 -0400	[thread overview]
Message-ID: <2cd46e7f0604281356i582388e2kef07922b6b6a9a3a@mail.gmail.com> (raw)
In-Reply-To: <2cd46e7f0604281353l38f7672gd3cfe0c64fdf0cb4@mail.gmail.com>

i recently started noticing that emacs 22 regular expression isearches
do not treat spaces exactly - any number of spaces in your search will
map to any number, same or different, of spaces in the target.

for example:
 - copy this message into an empty buffer
 - postiong the cursor at the beginning of the buffer
 - start an isearch (Ctrl-s)
 - toggle it to a regexp-isearch (Meta-r)
 - enter three spaces
 - enter an "s"
when i do this, the cursor winds up positioned on the "s" at the
beginning of the third word in this message, "started".

i'm starting to realize that this behavior has been in emacs 22 for at
least a while, and is not in emacs 21.  can anyone tell me whether or
not it's deliberate, and what the rationale is?  (i started writing
this up as a bug for emacs-devel, but looking into isearch-search and
seeing that `search-spaces-regexp' is specifically set to the value of
`search-whitespace-regexp' is making me suspect that the behavior is a
deliberate design feature.  ?)
--
ken manheimer
ken.manheimer@gmail.com
http://myriadicity.net

       reply	other threads:[~2006-04-28 20:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2cd46e7f0604281353l38f7672gd3cfe0c64fdf0cb4@mail.gmail.com>
2006-04-28 20:56 ` Ken Manheimer [this message]
2006-04-29 14:41   ` emacs 22 - regular-expression isearch on spaces extremely lenient Drew Adams
2006-04-29 17:23     ` Eric Hanchrow
2006-05-01 14:51       ` Kevin Rodgers
2006-05-02  2:04         ` Richard Stallman
2006-05-01 18:04     ` ken manheimer
2006-05-01 18:44       ` emacs 22 - regular-expression isearch on spacesextremely lenient Drew Adams
     [not found]     ` <mailman.1189.1146507010.9609.help-gnu-emacs@gnu.org>
2006-05-30  5:17       ` emacs 22 - regular-expression isearch on spaces extremely lenient David Combs
2006-05-30  6:21         ` Tim X
2006-05-30  8:31         ` David Kastrup
     [not found] ` <mailman.1109.1146290553.9609.help-gnu-emacs@gnu.org>
2006-04-29  7:47   ` Miles Bader
     [not found] <mailman.1118.1146321681.9609.help-gnu-emacs@gnu.org>
2006-04-29 15:16 ` don provan
2006-04-29 16:14   ` Drew Adams

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

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

  git send-email \
    --in-reply-to=2cd46e7f0604281356i582388e2kef07922b6b6a9a3a@mail.gmail.com \
    --to=ken.manheimer@gmail.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.
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.