From: Juri Linkov <juri@jurta.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: isearch-query-replace-regexp and stuff
Date: Wed, 07 Jul 2004 21:29:52 +0300 [thread overview]
Message-ID: <87vfgz4qn3.fsf@mail.jurta.org> (raw)
In-Reply-To: <x5pt78f9mm.fsf@lola.goethe.zz> (David Kastrup's message of "07 Jul 2004 11:29:37 +0200")
David Kastrup <dak@gnu.org> writes:
> Juri Linkov <juri@jurta.org> writes:
>> The current behavior of C-M-s to repeat the non-regexp search is not
>> the most reasonable one. More correct would be to switch the search
>> to regexp mode before doing the search again. I guess it works now
>> that way because it was simpler to implement and nobody cared about
>> handling this case specially. But we could change the behavior of
>> C-M-s in non-regexp mode to switch to regexp mode for consistency
>> with C-M-%.
>
> But that's inconsistent with being able to use both C-s and M-C-s in
> regexp searches.
>
> Don't you see that?
You can see the following comments for `isearch-mode-map' in isearch.el
(underlining is mine):
;; Define M-C-s and M-C-r like C-s and C-r so that the same key
;; combinations can be used to repeat regexp isearches that can
================
;; be used to start these searches.
So the meaning of C-M-s in a non-regexp search is still undefined,
and the fact that C-M-s can repeat a non-regexp search is a side effect
of the current implementation.
And there is no symmetry between normal and regexp searches and it
doesn't need to be. The regexp search C-M-s is regarded everywhere
in Emacs as a specific type of more general C-s search per se. So
there is no need to keep symmetry for C-M-s in a normal search with
C-M-s in a regexp search.
And moreover, more appropriate action for C-M-s in a normal search is
to switch the search to regexp mode because the Meta key in C-M-s
has an strong association with a specific regexp search type.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2004-07-07 18:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-01 23:18 isearch-query-replace-regexp and stuff David Kastrup
2004-07-02 0:05 ` David Kastrup
2004-07-02 17:51 ` Richard Stallman
2004-07-02 6:55 ` Juri Linkov
2004-07-02 7:55 ` David Kastrup
2004-07-02 13:44 ` Stefan
2004-07-03 6:59 ` Juri Linkov
2004-07-03 18:20 ` Richard Stallman
2004-07-05 19:07 ` David Kastrup
2004-07-06 9:59 ` Juri Linkov
2004-07-06 11:20 ` David Kastrup
2004-07-06 16:36 ` Juri Linkov
2004-07-06 17:29 ` David Kastrup
2004-07-07 5:08 ` Juri Linkov
2004-07-07 9:29 ` David Kastrup
2004-07-07 18:29 ` Juri Linkov [this message]
2004-07-07 19:33 ` David Kastrup
2004-07-08 16:45 ` Juri Linkov
2004-07-08 18:12 ` David Kastrup
2004-07-09 20:54 ` Juri Linkov
2004-07-08 23:17 ` Richard Stallman
2004-07-06 22:00 ` Richard Stallman
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=87vfgz4qn3.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=rms@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.