Path: utzoo!mnetor!uunet!husc6!mit-eddie!YALE.ARPA!ram-ashwin From: ram-ashwin@YALE.ARPA (Ashwin Ram) Newsgroups: comp.emacs Subject: Query-replace-regexp suggestion Message-ID: <8803062029.AA04489@ELI.CS.YALE.EDU> Date: 6 Mar 88 20:29:49 GMT Sender: daemon@eddie.MIT.EDU Lines: 22 It would be nice if query-replace-regexp (and query-replace too, I suppose) did an isearch in the window while you were typing in the pattern in the minibuffer-window. In other words, when it prompts you for the pattern to be replaced, it should go back to the current buffer and do an isearch as you type in the pattern (which is echoed in the minibuffer). This would make it a lot easier to type in complicated patterns for replacement, as well as save you typing in a pattern and its replacement if there is no occurrence of that pattern in the buffer (e.g., if you mistyped something). I wonder how hard it would be to have it make your replacement at the first occurrence of the pattern in the current buffer as you type it in in the minibuffer. This would be really cool! But even just the first part (which should be easier) would be very useful. If anyone has done this, or can suggest a way to do it, please let me know. Thanks. -- Ashwin Ram -- ARPA: Ram-Ashwin@cs.yale.edu UUCP: {decvax,ucbvax,harvard,cmcl2,...}!yale!Ram-Ashwin BITNET: Ram@yalecs