From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31492: 26.1; query-replace-regexp undo fails in regexps w/o printable chars Date: Mon, 21 May 2018 18:05:47 +0300 Message-ID: <83a7stf3qs.fsf@gnu.org> References: <8736yp14c7.fsf@gmail.com> <838t8hhwwu.fsf@gnu.org> <837eo1huji.fsf@gnu.org> <83zi0wgk3d.fsf@gnu.org> <87tvr3zpm4.fsf@gmail.com> <83vabifzfg.fsf@gnu.org> <87sh6mwno1.fsf@gmail.com> <83sh6mfsg2.fsf@gnu.org> <83r2m6fq7t.fsf@gnu.org> <83po1qfhxd.fsf@gnu.org> <87y3gdhj2o.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1526915048 27972 195.159.176.226 (21 May 2018 15:04:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 May 2018 15:04:08 +0000 (UTC) Cc: 31492@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 21 17:04:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKmLz-0007Cu-NK for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 May 2018 17:04:03 +0200 Original-Received: from localhost ([::1]:51089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKmO7-0004G5-08 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 May 2018 11:06:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKmNx-0004FR-J7 for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 11:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKmNu-0007NI-Ab for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 11:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKmNu-0007NC-7B for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 11:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fKmNt-0001PN-Tv for bug-gnu-emacs@gnu.org; Mon, 21 May 2018 11:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 May 2018 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31492 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31492-submit@debbugs.gnu.org id=B31492.15269151575403 (code B ref 31492); Mon, 21 May 2018 15:06:01 +0000 Original-Received: (at 31492) by debbugs.gnu.org; 21 May 2018 15:05:57 +0000 Original-Received: from localhost ([127.0.0.1]:43141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKmNl-0001P2-T1 for submit@debbugs.gnu.org; Mon, 21 May 2018 11:05:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKmNk-0001Oo-2Q for 31492@debbugs.gnu.org; Mon, 21 May 2018 11:05:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKmNb-0007DU-OQ for 31492@debbugs.gnu.org; Mon, 21 May 2018 11:05:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKmNb-0007DM-Kr; Mon, 21 May 2018 11:05:43 -0400 Original-Received: from [176.228.60.248] (port=2907 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fKmNb-0005vY-4b; Mon, 21 May 2018 11:05:43 -0400 In-reply-to: <87y3gdhj2o.fsf@gmail.com> (message from Tino Calancha on Mon, 21 May 2018 10:51:43 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:146351 Archived-At: > From: Tino Calancha > Cc: 31492@debbugs.gnu.org > Date: Mon, 21 May 2018 10:51:43 +0900 > > Eli Zaretskii writes: > > > >> we can use the first patch; the one with the test: > >> (/= (match-beginning 0) (match-end 0)) > > > > No, I like the 2nd one better. > Following patch is equivalent to the 2nd and its 1-liner > (excluded clarification comments): Thanks, LGTM. If no comments emerge in a couple of days, please push.