[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: isearch-query-replace-regexp and stuff
From: |
David Kastrup |
Subject: |
Re: isearch-query-replace-regexp and stuff |
Date: |
07 Jul 2004 21:33:27 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Juri Linkov <address@hidden> writes:
> David Kastrup <address@hidden> writes:
> > Juri Linkov <address@hidden> 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,
Because of some internal comment?
> and the fact that C-M-s can repeat a non-regexp search is a side
> effect of the current implementation.
If you want to call explicitly coded "consistency" a side effect.
> And there is no symmetry between normal and regexp searches
Not? Considering that both behave the same with regard to C-s and
C-M-s I would think there was. And intentionally so.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: isearch-query-replace-regexp and stuff, (continued)
- Re: isearch-query-replace-regexp and stuff, Richard Stallman, 2004/07/03
- Re: isearch-query-replace-regexp and stuff, David Kastrup, 2004/07/05
- Re: isearch-query-replace-regexp and stuff, Juri Linkov, 2004/07/06
- Re: isearch-query-replace-regexp and stuff, David Kastrup, 2004/07/06
- Re: isearch-query-replace-regexp and stuff, Juri Linkov, 2004/07/06
- Re: isearch-query-replace-regexp and stuff, David Kastrup, 2004/07/06
- Re: isearch-query-replace-regexp and stuff, Juri Linkov, 2004/07/07
- Re: isearch-query-replace-regexp and stuff, David Kastrup, 2004/07/07
- Re: isearch-query-replace-regexp and stuff, Juri Linkov, 2004/07/07
- Re: isearch-query-replace-regexp and stuff,
David Kastrup <=
- Re: isearch-query-replace-regexp and stuff, Juri Linkov, 2004/07/08
- Re: isearch-query-replace-regexp and stuff, David Kastrup, 2004/07/08
- Re: isearch-query-replace-regexp and stuff, Juri Linkov, 2004/07/09
- Re: isearch-query-replace-regexp and stuff, Richard Stallman, 2004/07/08
- Re: isearch-query-replace-regexp and stuff, Richard Stallman, 2004/07/06