From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: query-replace-read-args - be able to use word-at-point? init-value? Date: Tue, 12 Oct 2004 18:07:03 +0300 Organization: JURTA Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <87d5zogelk.fsf@jurta.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097593829 13010 80.91.229.6 (12 Oct 2004 15:10:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2004 15:10:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 12 17:10:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CHOI8-0002y3-00 for ; Tue, 12 Oct 2004 17:10:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CHOP7-0004VD-La for ged-emacs-devel@m.gmane.org; Tue, 12 Oct 2004 11:17:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CHOOg-0004MN-9P for emacs-devel@gnu.org; Tue, 12 Oct 2004 11:17:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CHOOf-0004Lg-2I for emacs-devel@gnu.org; Tue, 12 Oct 2004 11:17:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CHOOe-0004Ld-Tj for emacs-devel@gnu.org; Tue, 12 Oct 2004 11:17:05 -0400 Original-Received: from [66.33.205.9] (helo=spatula.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CHOGg-0004I8-CY for emacs-devel@gnu.org; Tue, 12 Oct 2004 11:08:50 -0400 Original-Received: from mail.jurta.org (80-235-44-248-dsl.mus.estpak.ee [80.235.44.248]) by spatula.dreamhost.com (Postfix) with ESMTP id D4C1C17D02F; Tue, 12 Oct 2004 08:08:45 -0700 (PDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Mon, 11 Oct 2004 00:33:30 -0700") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28306 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28306 "Drew Adams" writes: > I think that this, or something similar, was already beat to death back in > July, but I'm not sure that this side of it was raised. I'll desist at the > first sign that no one wants to hear this, but let me argue this _once_. I > think I'll make my point clearly enough that I won't have to follow up to > reinforce the argument. If others want to discuss it, fine, but I won't push > this discussion. The current query-replace interface is far from ideal, so sooner or later it needs to be improved. > So, I guess I'm asking: > > 1. Can't we do something better for q-r, so you can easily retrieve and edit > the word-at-point? To me, that's a better default value than anything > available currently. With multiple default values, it is possible to make several values accessible via M-n: the last search string, the word at point, whatever. > 2. Is the debate over init-value closed? Are you sure it's a no-no that has > to go? As a solution for most problems I see a new function which would display the minibuffer with several editable fields and return a list of entered values. Example: (read-multiple-values '("Query replace: " " with ") ... '("abc" "def") ...) ========== prompts ========== = initial values = displays the minibuffer like: Query replace: abc with def === === - editable fields So you need no init value: if you don't like the value of `from' argument you can move the point from `to' field to `from' field with a special key (e.g. TAB), edit it and return back to `to' field. -- Juri Linkov http://www.jurta.org/emacs/