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: Thu, 23 Oct 2014 10:06:16 +0100 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> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1414055205 23681 80.91.229.3 (23 Oct 2014 09:06:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2014 09:06:45 +0000 (UTC) Cc: Juri Linkov , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 23 11:06:37 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 1XhELs-0004MV-EZ for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2014 11:06:36 +0200 Original-Received: from localhost ([::1]:36322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhELr-0005wf-KF for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2014 05:06:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhELa-0005wa-DK for emacs-devel@gnu.org; Thu, 23 Oct 2014 05:06:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhELZ-0008Ju-J3 for emacs-devel@gnu.org; Thu, 23 Oct 2014 05:06:18 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:52604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhELZ-0008Jb-FE for emacs-devel@gnu.org; Thu, 23 Oct 2014 05:06:17 -0400 Original-Received: by mail-oi0-f47.google.com with SMTP id a141so404426oig.34 for ; Thu, 23 Oct 2014 02:06:16 -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=wMrFsfyChGUpk8uX8L3oHTY4e8OMT9CJN+0ZD5Tyupo=; b=mtd2J7KwkTTS3u1e+7FgEQDHXT2KWYdh2fBNY9OQOOdTFo4dMynsakE7D69/pa1Sah NFHxhsXowUrJDrXp5Irec0DL+2sA//vdfsHPDPI1+b2ZRrB7wlzsuNEIdVIpbuRMVFfn JfBHslAJB9Vo8H3tDDlirnKtvZvsJ76014/HuAFzF6SzzZmSsrwg7HvKnPkdxsyrsljL ccBePba5xjaldvi/DNaEfQSVT3SUx2TDA/yWVVHNpEXRT91Tw8Mpg8XMFamqEgcJEGVV DFVhuBF5bD80P1XN2q5/UL/iDjFyJ4LgHGA0o2ZHLgH/abrMHrlhv+VbSgHyKDB7QeMv RVsQ== X-Received: by 10.60.67.233 with SMTP id q9mr3213754oet.30.1414055176766; Thu, 23 Oct 2014 02:06:16 -0700 (PDT) Original-Received: by 10.76.1.137 with HTTP; Thu, 23 Oct 2014 02:06:16 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: LoLl1I16rK5gOgcF2QHoz9els4w X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22f 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:175717 Archived-At: >>> - You still have access to the "TO-history" in the FROM case, indirectly >>> (by browsing the corresponding FROM/TO pair and erasing the FROM and >>> the separator). >> The only problematic part is that if the user will be able >> to erase the separator, then the user rightfully might want >> to insert it back, but it's not straightforward to type a string >> with text properties. > > `undo' should do it. > 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.