GNU bug report logs - #27897
25.1; Add REGION-NONCONTIGUOUS-P arg to other replace.el commands

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 1 Aug 2017 04:38:01 UTC

Severity: wishlist

Found in version 25.1

Fixed in version 27.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Drew Adams <drew.adams <at> oracle.com>
Subject: bug#27897: closed (Re: bug#27897: [PATCH] 25.1; Add
 REGION-NONCONTIGUOUS-P arg to other replace.el commands)
Date: Thu, 19 Apr 2018 19:38:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#27897: 25.1; Add REGION-NONCONTIGUOUS-P arg to other replace.el commands

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 27897 <at> debbugs.gnu.org.

-- 
27897: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27897
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juri Linkov <juri <at> linkov.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 27897-done <at> debbugs.gnu.org
Subject: Re: bug#27897: [PATCH] 25.1;
 Add REGION-NONCONTIGUOUS-P arg to other replace.el commands
Date: Thu, 19 Apr 2018 22:36:53 +0300
> And some of the commands I added REGION-NONCONTIGUOUS-P to
> already had BACKWARD, while others did not.  Should we
> assume that whoever did that did it on purpose and wisely?

query-replace-regexp-eval has no BACKWARD arg because
query-replace-regexp-eval is obsolete and should be removed.
map-query-replace-regexp has no BACKWARD arg because
map-query-replace-regexp has special logic for its prefix arg.

> Dunno.  My purpose here was not to fix missing BACKWARD,
> but if you want to think about that and take care of it,
> please do - that would be great, along with applying my
> patch for REGION-NONCONTIGUOUS-P.

Thanks, your patch pushed to master as 75a32f4.

[Message part 3 (message/rfc822, inline)]
From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; Add REGION-NONCONTIGUOUS-P arg to other replace.el commands
Date: Mon, 31 Jul 2017 21:37:23 -0700 (PDT)
Subject line says it all.

The patch is trivial - just do the same thing to commands such as
`replace-string', `replace-regexp', `query-replace-regexp-eval', and
`map-query-replace-regexp' as you did to `query-replace' and
`query-replace-regexp': add REGION-NONCONTIGUOUS-P arg to the
interactive spec the same way, and pass it to `perform-replace' the same
way.

(Shouldn't this have been done in the first place?)


In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
 of 2016-09-17 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
 'configure --without-dbus --without-compress-install CFLAGS=-static'



This bug report was last modified 7 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.