From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 11:01:10 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 15:01:10 +0000 Received: from localhost ([127.0.0.1]:44477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLQjG-0003PS-Ht for submit@debbugs.gnu.org; Tue, 09 Aug 2022 11:01:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLQjE-0003PE-Ek for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 11:01:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=A1smkJYd1IywOu9d9e8I/N+VhI01sP+3N0KU7EDAPMk=; b=KA2n1/Zh5pMwL0M+zea7C2jNS9 ytal4VCgTav8AvlVQ6ZuEUoIrnY1gQNVNJfI+mwtOyd7XvRB90rpiqpoH1jf6A+ONLNwq4mxwg10U 3cwVBnrYs5ba5/qH++2Ah54QGB2RV+KEunc/z9cTNXYy6Jr6ns5oycwZZOg6VxXtfx6w=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLQj4-0004AW-VP; Tue, 09 Aug 2022 17:01:01 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <86iln264vg.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 08 Aug 2022 20:07:31 +0300") References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <87y1y79x82.fsf@gnus.org> <87v8t9y8hi.fsf@gnus.org> <87r13xy8c3.fsf@gnus.org> <871quzaagc.fsf@web.de> <861quywusu.fsf@mail.linkov.net> <8735felbi7.fsf@gnus.org> <864jzursq8.fsf@mail.linkov.net> <87zghlgxk4.fsf@gnus.org> <87bksuzvs5.fsf@gnus.org> <86iln264vg.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEX8+/y2o6ldW1rb 0dXPX4b///+y5XS/AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YICQ44MQ1ux78AAAHBSURBVDjLtVTb laswDJQiCrDsBng0IFsUAMf0X9OOCZuYm9zP1SEfMJZGGo1D9CfBX78+8BhJ+ATCiY3fgByo2D/V A3EyM1ej2AMygrkSTWIy31LUR9obXvlOzzaRoiJv+c5LFC0X96GRy28HPEltKFpaibLEV2sxHJjM ChklXrSbxThMtDNtvETrlBFAMezCW7HU3l7sU+srs5sS+fH7eXaaw+AkD3CstlbXdAJlMTKpYtlY DlTy+WorN61cRreJjRxV34PPSFaGvBKnTo/dcppdBiQvqYPkgLA5VZGqoQn6LMUpnUngzmBQKKXT s/6CpGyCRWGYwwBcOxFdmpIecm5H1/pWN+UgOM4koskr9e0KBaYglPt222qqj2zKWxvQr21MIB5q sWIPWw06zM+NKAYxEXEWxxHU4uVlhfZbSbYIDd+bxQuHYtUM5uld4pNHX2RT22lZOwPFwEuzTEGu Uy0vM5xrZpNIBu8K9SZ1OCpnt4IRqaeJcG6kIciYbxcBjQdUGLZmuB6AOZutOcFst2vg5wUEv94Z niwNK/QR8/N+2gdgFxN9ifsfgCPEz7gUdTc8pIisZ1x2Uk3a/PWf+AFwKzpmpW/YlQAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMi0wOC0wOVQxNDo1Njo0OSswMDowMMY7oOUAAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjItMDgtMDlUMTQ6NTY6NDkrMDA6MDC3ZhhZAAAAAElFTkSuQmCC X-Now-Playing: Barbara Morgenstern's _Nicht Muss_: "Nichts Muss" Date: Tue, 09 Aug 2022 17:00:58 +0200 Message-ID: <871qtpzck5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> I've now fixed the replace-string problem in Emacs 29. > > Should the same interactive-args now be added to other > replacement commands? It should be added to all commands that work on the region like this, yes. But I wondered whether we should make some trivial helper functions first like Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45607 Cc: Michael Heerdegen , 45607@debbugs.gnu.org, Allen Li X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >> I've now fixed the replace-string problem in Emacs 29. > > Should the same interactive-args now be added to other > replacement commands? It should be added to all commands that work on the region like this, yes. But I wondered whether we should make some trivial helper functions first like (defun use-region-beginning () "Return the start of the region if `use-region-p'." (and (use-region-p) (region-beginning))) and the same for -end to avoid having to repeat that code phrase so many places.