unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: Emacs Bugs <bug-gnu-emacs@gnu.org>, Reuben Thomas <rrt@sc3d.org>
Subject: Re: replace history
Date: Thu, 27 Dec 2007 22:12:44 +0200	[thread overview]
Message-ID: <87ejd7ucj3.fsf@jurta.org> (raw)
In-Reply-To: <200712262348.lBQNmdPO013976@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 26 Dec 2007 15:48:39 -0800")

>   > In Emacs 22 it's great the way that you are given the last
>   > search/replace pair as a default for query-replace, but is there a way
>   > to get a history of pairs rather than alternating search item/replace
>   > item?
>
> There isn't. I would also love to have such a feature. Bound for example
> to C-M-p and C-M-n

How do you imagine it could insert two separate history elements for
from-string and to-string simultaneously?  Maybe, C-M-p typed in the
from-string minibuffer should switch to the to-string reading, and
typing C-M-p in the to-string minibuffer should also change the prompt
that displays the from-string while reading the to-string, e.g.

Query replace: <C-M-p>

Query replace from1 with: to1 <C-M-p>

Query replace from2 with: to2 <C-M-p>

-- 
Juri Linkov
http://www.jurta.org/emacs/




  parent reply	other threads:[~2007-12-27 20:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-26 23:20 replace history Reuben Thomas
2007-12-26 23:48 ` Dan Nicolaescu
2007-12-27 11:42   ` Bastien
2007-12-27 20:14     ` Juri Linkov
2007-12-27 20:12   ` Juri Linkov [this message]
2007-12-27 20:40     ` Dan Nicolaescu
2007-12-28 13:55     ` Richard Stallman
     [not found]     ` <mailman.5457.1198850122.18990.bug-gnu-emacs@gnu.org>
2008-01-02 13:21       ` Mathias Dahl
2008-01-03 21:45         ` Juri Linkov
2008-01-03 22:15           ` Mathias Dahl
2008-01-03 22:47             ` Juri Linkov
2008-01-03 23:24               ` Mathias Dahl
2007-12-27 20:11 ` Juri Linkov
2007-12-28 13:55   ` Richard Stallman
2008-01-03 21:46     ` Juri Linkov
2008-01-05  5:54       ` Richard Stallman

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=87ejd7ucj3.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=dann@ics.uci.edu \
    --cc=rrt@sc3d.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).