From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: query-replace-interactive et al Date: 24 Apr 2002 04:35:35 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: Reply-To: jidanni@yam.com.tw NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1019611776 21519 127.0.0.1 (24 Apr 2002 01:29:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 01:29:36 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 170BbE-0005ar-00 for ; Wed, 24 Apr 2002 03:29:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170AUn-0005mi-00; Tue, 23 Apr 2002 20:18:53 -0400 Original-Received: from mailbox3.ucsd.edu ([132.239.1.55]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170AT1-0005cl-00 for ; Tue, 23 Apr 2002 20:17:04 -0400 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox3.ucsd.edu (8.12.1/8.12.1) with ESMTP id g3O0H0US026210 for ; Tue, 23 Apr 2002 17:17:01 -0700 (PDT) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Wed, 24 Apr 2002 02:17:00 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Wed, 24 Apr 2002 02:17:00 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-44-234.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 28 X-Orig-NNTP-Posting-Host: 61-227-44-234.hinet-ip.hinet.net (61.227.44.234) X-Orig-X-Trace: fu-berlin.de 1019607420 7722821 61.227.44.234 (16 [99749]) X-Orig-Path: localhost.localdomain!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:901 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:901 Gentlemen, I was wondering why query-replace doesn't let me sweep up pieces of text with C-w like C-s does. Then I read about (setq query-replace-interactive t). Ok, now I can sweep up pieces of text with C-s C-w C-w... ESC %, however I am then not allowed any final opinions about the FROM string (why not leave the cursor at the end of that line and wait for a RET?), and am instead only asked about how the TO string should look. Actually when I read If `query-replace-interactive' is non-nil, the last incremental search string is used as FROM-STRING--you don't have to specify it with the minibuffer. I thought it would prompt me with a default (from last search), and if I didn't enter anything for FROM, it would use that default. And if I wanted to edit the default, I would use M-p or M-n to get it into the minibuffer and edit it. By the way, I wonder if there is special keys when composing the TO string that will insert the FROM string there so one can make minor adjustments to it, or do I have to hope dabbrev-expand will have it? By the way, I still think ESC % C-w should sweep up text like C-s C-w. If you want me to do C-s C-w ESC % that means I can't just continue searching with C-s for the same string I was searching for before, as the last search string has now been reset because that's the only way one can get a certain shortcut in a different command -- query-replace. -- http://jidanni.org/ Taiwan(04)25854780