* repeat isearch-forward-regexp with just C-s C-s also
@ 2002-06-01 21:39 Dan Jacobson
2002-06-03 11:41 ` Richard Stallman
0 siblings, 1 reply; 3+ messages in thread
From: Dan Jacobson @ 2002-06-01 21:39 UTC (permalink / raw)
ESC C-s runs the command isearch-forward-regexp
OK, but to repeat the last regexp search, another ESC C-s C-s seems
too much to ask. How about just C-s C-s? I.e. make C-s C-s will
repeat the last search, be it plain or regexp. Make this behavior a
new option turned on by default.
<escape> C-s i $ C-s C-s C-e m <escape> C-s C-s C-s C-s
^^^^^^^^pain in the brain,
I don't know why, but it is. Indeed, (grep "grep -n -e i$
exercises0.in") and next-error is one million times less painful.
--
http://jidanni.org/ Taiwan(04)25854780
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: repeat isearch-forward-regexp with just C-s C-s also
2002-06-01 21:39 repeat isearch-forward-regexp with just C-s C-s also Dan Jacobson
@ 2002-06-03 11:41 ` Richard Stallman
2002-06-05 14:33 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2002-06-03 11:41 UTC (permalink / raw)
Cc: emacs-devel
OK, but to repeat the last regexp search, another ESC C-s C-s seems
too much to ask. How about just C-s C-s?
I am not sure it is a good idea for C-s to do a regexp search.
Repeating the last non-regexp search, which is what it does now,
seems like the right thing to do.
But if users want to try it and report their opinions,
I'd be interested in hearing about it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: repeat isearch-forward-regexp with just C-s C-s also
2002-06-03 11:41 ` Richard Stallman
@ 2002-06-05 14:33 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2002-06-05 14:33 UTC (permalink / raw)
Cc: jidanni, emacs-devel
> OK, but to repeat the last regexp search, another ESC C-s C-s seems
> too much to ask. How about just C-s C-s?
>
> I am not sure it is a good idea for C-s to do a regexp search.
> Repeating the last non-regexp search, which is what it does now,
> seems like the right thing to do.
>
> But if users want to try it and report their opinions,
> I'd be interested in hearing about it.
I've been using a local patch which makes C-s C-s repeat the last search
(regexp or not) and I find it very useful. The problem is that I find
M-C-s M-C-s significantly more difficult to hit than C-s C-s, so when
I need to repeat a search many times, C-s C-s is much better.
Another reason is that I rarely use M-C-s but instead I do
`C-s ..blabla.. M-r ..blibli' because I often notice "too late" that I want
a regexp search rather than a plain search, so almost all my regexp
searches are started with C-s rather than with M-C-s or C-u C-s.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-05 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-01 21:39 repeat isearch-forward-regexp with just C-s C-s also Dan Jacobson
2002-06-03 11:41 ` Richard Stallman
2002-06-05 14:33 ` Stefan Monnier
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.