|
From: | Juri Linkov |
Subject: | Re: recording-elisp.el - try recording commands as elisp code |
Date: | Wed, 07 Nov 2007 00:28:18 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
> 1. convert it to the call to `query-replace', e.g. > > That is the only reasonable thing to do with M-%. > > 2. convert M-% to the call to `replace-string'; > > That's just no good. If the user wanted to replace with no queries he > would have run `replace-string' himself. I always use `M-% from RET to RET !' to replace all matches with no queries because this is very convenient user interface. So Lisp recording should take care of this and convert the key `!' to the loop with search-forward and replace-match. -- Juri Linkov http://www.jurta.org/emacs/
[Prev in Thread] | Current Thread | [Next in Thread] |