From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Date: Fri, 12 Aug 2022 20:39:32 +0300 Organization: LINKOV.NET Message-ID: <86o7wpjr8r.fsf@mail.linkov.net> 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> <871qtpzck5.fsf@gnus.org> <868rnxqmy3.fsf@mail.linkov.net> <87r11ptek3.fsf@gnus.org> <86tu6lnrip.fsf@mail.linkov.net> <87h72hr4xw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29548"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 45607@debbugs.gnu.org, Allen Li To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 12 19:47:40 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oMYl1-0007Q4-UV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 19:47:39 +0200 Original-Received: from localhost ([::1]:58796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMYl0-0008Ak-UT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Aug 2022 13:47:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMYhW-0005zA-AD for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2022 13:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMYhW-0002Xd-11 for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2022 13:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMYhV-0001a4-QP for bug-gnu-emacs@gnu.org; Fri, 12 Aug 2022 13:44: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: Fri, 12 Aug 2022 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 45607-submit@debbugs.gnu.org id=B45607.16603261875988 (code B ref 45607); Fri, 12 Aug 2022 17:44:01 +0000 Original-Received: (at 45607) by debbugs.gnu.org; 12 Aug 2022 17:43:07 +0000 Original-Received: from localhost ([127.0.0.1]:58861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMYgd-0001YV-1s for submit@debbugs.gnu.org; Fri, 12 Aug 2022 13:43:07 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:53205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMYgZ-0001Xy-E3 for 45607@debbugs.gnu.org; Fri, 12 Aug 2022 13:43:05 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 18EBB240002; Fri, 12 Aug 2022 17:42:52 +0000 (UTC) In-Reply-To: <87h72hr4xw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 12 Aug 2022 15:01:47 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:239449 Archived-At: >> 2392: (if (use-region-p) (region-beginning)) >> 2393: (if (use-region-p) (region-end)) > > That's fewer than I'd have guessed -- but I guess that quite a few > commands stash the logic down into the function body instead of putting > it into the `interactive' spec. Commands like `duplicate-dwim', for > instance, could be pretty easily fixed in that way, for instance. OTOH, `duplicate-dwim' is optimized to call `use-region-p' only once: (cond ((use-region-p) (let* ((beg (region-beginning)) (end (region-end))