From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: History for query replace pairs Date: Sun, 26 Oct 2014 01:12:17 +0000 Message-ID: References: <87a97ejxuo.fsf@mail.jurta.org> <87lhovik5c.fsf@lifelogs.com> <87wq8egh3r.fsf@lifelogs.com> <87ppe4zv0t.fsf@mail.jurta.org> <87k34ba5sn.fsf@mail.jurta.org> <87siiq4gpv.fsf@mail.jurta.org> <87iojduj9n.fsf@mail.jurta.org> <87y4s3x3yi.fsf@mail.jurta.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113df27ef142a40506491a76 X-Trace: ger.gmane.org 1414285951 11928 80.91.229.3 (26 Oct 2014 01:12:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2014 01:12:31 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 26 02:12:24 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XiCNc-0007Kw-HY for ged-emacs-devel@m.gmane.org; Sun, 26 Oct 2014 02:12:24 +0100 Original-Received: from localhost ([::1]:55007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiCNc-0007al-3l for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2014 21:12:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiCNY-0007aW-4p for emacs-devel@gnu.org; Sat, 25 Oct 2014 21:12:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiCNX-0003Fp-49 for emacs-devel@gnu.org; Sat, 25 Oct 2014 21:12:20 -0400 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:39102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiCNX-0003Dm-0Z for emacs-devel@gnu.org; Sat, 25 Oct 2014 21:12:19 -0400 Original-Received: by mail-ob0-f177.google.com with SMTP id m8so1071393obr.8 for ; Sat, 25 Oct 2014 18:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=j16LhNt5WxBnG4UasgorTtw6QLhJfraxeJET394p66Y=; b=kcYjZBTurBS3T0JLc/lwr2xFAjdiWh5khjEITntZEIerhBdyBzk1KZ/S+PUveNl2y8 9wWR/Ebo4nTPuqHCjXpA3lup3DzEJOieIHnzWpyMlbAXsHKD3t66fy6ieVxEZBKqhkQl I0/yGS1ivmmmF5zIwtKR2tnT0XQ6hteRYBZvdSJ2dUgBaGMupLvo5caNmYaTax/iDYTA B7H4MGcSXSH1lEBGTs1fO9QWE5tw+w4ZIk5BZ7UolgcfOhHkU2gEP/X3xmqqKkpjftbw 266KfQATAWbLQ6SUh2UIJfzyedbA/SxooBu3Cq9hql1oFY7kAQOe3M6MDwW1XXpEtgpC wChQ== X-Received: by 10.202.207.207 with SMTP id f198mr3500230oig.46.1414285937949; Sat, 25 Oct 2014 18:12:17 -0700 (PDT) Original-Received: by 10.76.1.137 with HTTP; Sat, 25 Oct 2014 18:12:17 -0700 (PDT) Original-Received: by 10.76.1.137 with HTTP; Sat, 25 Oct 2014 18:12:17 -0700 (PDT) In-Reply-To: <87y4s3x3yi.fsf@mail.jurta.org> X-Google-Sender-Auth: PpE_j7h9u_vljiN8p6btTJLkveM X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175842 Archived-At: --001a113df27ef142a40506491a76 Content-Type: text/plain; charset=UTF-8 > > If this line is followed, I'd recommend rebinding one of the transpose > > commands (transpose-lines, perhaps) to swap the TO and FROM. Having to > > manually kill and yank would be a very cumbersome way of reversing the > > replacement. > > Good idea. However, `transpose-lines' doesn't seem to fit semantically. > But perhaps you proposed it because other transpose-* commands might be > useful in the query-replace minibuffer inside the FROM or TO part. Yes, I figured transpose-lines is the least useful of the transpose commands when it comes to query-replace input. But transpose sexps is probably almost as useless and might feel more intuitive. --001a113df27ef142a40506491a76 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> > If this line is followed, I'd recommend rebind= ing one of the transpose
> > commands (transpose-lines, perhaps) to swap the TO and FROM. Havi= ng to
> > manually kill and yank would be a very cumbersome way of reversin= g the
> > replacement.
>
> Good idea.=C2=A0 However, `transpose-lines' doesn't seem to fi= t semantically.
> But perhaps you proposed it because other transpose-* commands might b= e
> useful in the query-replace minibuffer inside the FROM or TO part.

Yes, I figured transpose-lines is the least useful of the tr= anspose commands when it comes to query-replace input. But transpose sexps = is probably almost as useless and might feel more intuitive.

--001a113df27ef142a40506491a76--