unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@dman.ddts.net>
Subject: Re: snarf up text when at query-replace from: prompt
Date: 07 Jan 2003 07:14:34 +0800	[thread overview]
Message-ID: <87u1gloopx.fsf@jidanni.org> (raw)
In-Reply-To: E18UYT9-0004yJ-00@fencepost.gnu.org

RMS> Could you be more specific?  What do you propose that C-h should do
RMS> when you are in the minibuffer entering the from-string?... to-string

well actually lets talk about C-s.  If one hit C-s C-h, wouldn't it be
neat if it were like when one hit C-h k C-s?  At least give some hints
in the minibuffer about goodies like:

Type C-s to search again forward, C-r to search again backward.
Type C-w to yank word from buffer onto end of search string and search for it.
Type C-y to yank rest of line onto end of search string and search for it.
Type M-y to yank last killed text onto end of search string and search for it.
etc.

this would appear as "C-s, C-w, C-y.... C-h for more info" in the
minibuffer.

Do something similar when one hits M-% C-h, of course offering the
choices I propose below.

>     it would be nice if we could hit something to snarf up words from
>     point when we are entering the from and to strings.

RMS> You can copy the text with M-w then do query-replace-interactive and then
RMS> yank it with C-y.

ah, but setting that variable back and forth is quite inconvenient.
I say the from and to stings should be able to be vacuumed up with
things like those 4 above... just like C-s... hmmm, true we are
sitting in the minibuffer and not in the main window like with C-s.

Anyway, a start would be if M-% C-w would copy the word we are on into
the From string..  More C-w's would add more to it, like C-s....
Hmm, then there's the To string... well, we would have to reposition
the cursor usually.... bla bla bla... anyways, C-s is quite high
powered vs. M-%...
-- 
http://jidanni.org/ Taiwan(04)25854780

  parent reply	other threads:[~2003-01-06 23:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-02 22:55 snarf up text when at query-replace from: prompt Dan Jacobson
     [not found] ` <E18UYT9-0004yJ-00@fencepost.gnu.org>
2003-01-06 23:14   ` Dan Jacobson [this message]
     [not found]     ` <E18WX79-0001b4-00@fencepost.gnu.org>
2003-01-10  4:03       ` Dan Jacobson

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=87u1gloopx.fsf@jidanni.org \
    --to=jidanni@dman.ddts.net \
    /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).