all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: space in multiline interactive search / differences between Emacs	23 and 24
Date: Wed, 25 Jun 2014 17:08:16 +0300	[thread overview]
Message-ID: <838uolqdyn.fsf@gnu.org> (raw)
In-Reply-To: <loehul$1gb4$1@saria.nerim.net>

> From: David Madore <david+news@madore.org>
> Date: Wed, 25 Jun 2014 15:13:57 +0200
> 
> Under Emacs 23 (at least as provided by my Ubuntu 14.04 LTS under the
> name emacs23 23.4+1-4.1ubuntu1), the interactive regexp search succeeds
> (i.e., the space character matches the ^J line separator) and the simple
> (non-regexp) interactive search fails (i.e., the space character does
> not match the ^J line separator).  Under Emacs 24 (24.3+1-2ubuntu1),
> it's exactly the other way around: the simple search succeeds (=space
> matches ^J) and the regexp search does not.
> 
> What is the reason for this difference, and why is it exactly opposite
> in Emacs 23 and Emacs 24?  (I couldn't find anything in the NEWS file.)
>  How can I configure whether space matches ^J in simple versus regexp
> interactive search?

From NEWS, under "Editing Changes in Emacs 24.3":

   ** Search and Replace

   *** Non-regexp Isearch now performs "lax" space matching.
   Each sequence of spaces in the supplied search string may match any
   sequence of one or more whitespace characters, as specified by the
   variable `search-whitespace-regexp'.  (This variable is also used by a
   similar existing feature for regexp Isearch.)

   *** New Isearch command `M-s SPC' toggles lax space matching.
   This applies to both ordinary and regexp Isearch.

   *** New option `replace-lax-whitespace'.
   If non-nil, `query-replace' uses flexible whitespace matching too.
   The default is nil.




      reply	other threads:[~2014-06-25 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 13:13 space in multiline interactive search / differences between Emacs 23 and 24 David Madore
2014-06-25 14:08 ` Eli Zaretskii [this message]

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=838uolqdyn.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.