From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#21684: 25.0.50; undo in query-replace w/o exit Date: Tue, 20 Oct 2015 01:04:34 +0300 Organization: LINKOV.NET Message-ID: <87k2qijz0t.fsf@mail.linkov.net> References: <87k2qpmna2.fsf@mail.linkov.net> <87r3kt5fnp.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445292577 16524 80.91.229.3 (19 Oct 2015 22:09:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 22:09:37 +0000 (UTC) Cc: 21684@debbugs.gnu.org, Richard Stallman To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 20 00:09:26 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ZoIcA-00007T-QI for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Oct 2015 00:09:10 +0200 Original-Received: from localhost ([::1]:42254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoIcA-0006xe-6K for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 18:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoIc6-0006xV-Ll for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 18:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoIc2-00078r-Hn for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 18:09:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoIc2-00078n-Em for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 18:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZoIc1-0007ai-Rg for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 18:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Oct 2015 22:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21684 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 21684-submit@debbugs.gnu.org id=B21684.144529249129121 (code B ref 21684); Mon, 19 Oct 2015 22:09:01 +0000 Original-Received: (at 21684) by debbugs.gnu.org; 19 Oct 2015 22:08:11 +0000 Original-Received: from localhost ([127.0.0.1]:57104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoIbC-0007Zc-Qf for submit@debbugs.gnu.org; Mon, 19 Oct 2015 18:08:11 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:54818 helo=homiemail-a100.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoIat-0007Yv-0j for 21684@debbugs.gnu.org; Mon, 19 Oct 2015 18:08:09 -0400 Original-Received: from homiemail-a100.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTP id 42D2C31A070; Mon, 19 Oct 2015 15:07:50 -0700 (PDT) Original-Received: from localhost.linkov.net (m83-176-3-200.cust.tele2.ee [83.176.3.200]) (Authenticated sender: jurta@jurta.org) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTPA id 137BA31A061; Mon, 19 Oct 2015 15:07:48 -0700 (PDT) In-Reply-To: (Tino Calancha's message of "Mon, 19 Oct 2015 10:20:25 +0900 (JST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107768 Archived-At: > The patch replace-3.patch in this thread implements such interactive undo > and binds the new funtionality to keys "u" and "U". Please note that usually the upper-case "U" applies to all elements in the set such as e.g. in Dired the lower-case "u" is bound to a single-mark dired-unmark whereas the upper-case "U" is bound to dired-unmark-all-marks, etc. For query-replace this means that better would be to bind the upper-case "U" to a new operation undo-all that could be easy to implement in the same branch with (or (eq def 'undo) (eq def 'undo-all)) and looping until the top of the stack when (eq def 'undo-all).