2241Re: [jasspa] '.' no longer exits search and replace
- Mar 24, 2007The '.' command used to exit immediately moving the cursor back to the
starting point (regardless of whether you made any substitutions), I
failed to see the use of this and given it was also incompatible to GNU
emacs I removed it in sept 2006.
The 'l' command is equivalent to GNU Emacs '.', we do not have an
equivalent to 'q' or RET which simply exits at the current location, I
think this is an omission that should be fixed, 'return' seems in
keeping with isearch.
Unfortunately there is no reasonable way to changing these binding
(might be posible to wrap the command around calls to translate-key but
I think this would be too dangerous to be worth it),
Thomas Hundt wrote:
> I swear this used to work... (I'm using 2006/09/09 now.)
> Hitting a period no longer quits query-replace-mode.
> It seems to have been replaced by an 'L' for "last" command.
> (What I want is a way to quit out of it elegantly, rather than by brute
> force with C-g.)
> On the plus side, I see we now have an 'a' for "replace all remaining"
> now, which I've been wanting for a long time. (I would have bound this
> to '!'.)
> Is there a way to rebind these keys, so I can fix this myself?
> (Whenever possible, I make all software use the same bindings, for
> obvious reasons. And I try to standardize on the standard GNU Emacs
> bindings over Jasspa's, because when faced with an unfamiliar machine,
> the odds are about 10,000 to 1 that GNU will be installed, and not
> Jasspa. It's nice to just be able to get to work.)
> FYI here's the GNU help for this function (query-replace):
> > Type Space or `y' to replace one match, Delete or `n' to skip to next,
> > RET or `q' to exit, Period to replace one match and exit,
> > Comma to replace but not move point immediately,
> > C-r to enter recursive edit (C-M-c to get out again),
> > C-w to delete match and recursive edit,
> > C-l to clear the screen, redisplay, and offer same replacement again,
> > ! to replace all remaining matches with no more questions,
> > ^ to move point back to previous match,
> > E to edit the replacement string
> Thomas Hundt <tom@... <mailto:tom%40hundt.com>> +1-415-867-6698
- << Previous post in topic