From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: query-replace-read-args - be able to use word-at-point? init-value?
Date: Tue, 12 Oct 2004 18:07:03 +0300 [thread overview]
Message-ID: <87d5zogelk.fsf@jurta.org> (raw)
In-Reply-To: <MEEKKIABFKKDFJMPIOEBGEMECGAA.drew.adams@oracle.com> (Drew Adams's message of "Mon, 11 Oct 2004 00:33:30 -0700")
"Drew Adams" <drew.adams@oracle.com> 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/
prev parent reply other threads:[~2004-10-12 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-11 7:33 query-replace-read-args - be able to use word-at-point? init-value? Drew Adams
2004-10-12 8:56 ` Richard Stallman
2004-10-12 15:07 ` Juri Linkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d5zogelk.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).