From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Date: Sat, 13 Aug 2022 13:46:39 +0200 Message-ID: <87tu6gjrhc.fsf@gnus.org> 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> <86o7wpjr8r.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25175"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , 45607@debbugs.gnu.org, Allen Li To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 13:47:13 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 1oMpbk-0006Ha-CS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 13:47:12 +0200 Original-Received: from localhost ([::1]:44458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMpbj-0003yw-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 07:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMpba-0003yn-No for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMpba-0004jx-Em for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMpba-0001mq-9L for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 11:47:02 +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.16603912106851 (code B ref 45607); Sat, 13 Aug 2022 11:47:02 +0000 Original-Received: (at 45607) by debbugs.gnu.org; 13 Aug 2022 11:46:50 +0000 Original-Received: from localhost ([127.0.0.1]:59845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMpbO-0001mQ-Kb for submit@debbugs.gnu.org; Sat, 13 Aug 2022 07:46:50 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:35918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMpbM-0001mC-JA for 45607@debbugs.gnu.org; Sat, 13 Aug 2022 07:46:48 -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=JWQ2k60r2fv9NKbgz8Wmer0si6Wwg6ya4u6Gfj9Is8w=; b=iWcaOt67doPN5RLmrOV02PcvCh 08mqXyfyBiXXpV2/VVj8Fm70PIDpM62+v2jvrqJ4O2rVGCr0GGDa9Nvbo2ib9UsrI+JUzwinAi9vi XhQCJRt1OJpPhRBMsYdPoqecWZJMAkgigGxn5TX8UVWYAZ4Fo44qSO8eN46z2cTdhVTw=; Original-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 1oMpbD-0007DZ-Nq; Sat, 13 Aug 2022 13:46:42 +0200 In-Reply-To: <86o7wpjr8r.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 12 Aug 2022 20:39:32 +0300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU7MjeVWmXe1cr/ //9HfuA7AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YIDQssKM4C7ZYAAAFLSURBVCjPTZFBbsIwEEX/ WEmksjJSsiBHyClsqek6SDYL1kUqOUXgBHRB11RKKuJTdmzHgBfWPM/4j/0H4FVc/I467KvhBWr1 Ao0CGS6IAFQ2wREwunsA/cwGRQAH9PNBRWiGvJktdlFzoH5usY9Nod2cUwQg70fSHwvg8wtbSsCZ LsWoL0/IAVIJysxzggLZEmYw4pbAwtC0xNSiFFOq05BikktKE8SYlCmHuD3atCh+8VRY3RJU76jH cMrvq9iMeyjvQNZCzB7eFBtocQovaBU4xjkMQimybLX+jpOoGHK6RG3qWmyyboxftp08Bvd9xpbZ vVI9SxCDovnI1kusQVvF7sLxLGSwyd2Fc4MHRTyExjkvXknQ/to7LpUw/Pv+unJ8SYOHjkPLd/7Y M7/MTvuMiePxMC2ZcqO9GreHQlacQsas2fms2DL8A0kSVvj+DBcIAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIyLTA4LTEzVDExOjQ0OjQwKzAwOjAw+OIotwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0w OC0xM1QxMTo0NDo0MCswMDowMIm/kAsAAAAASUVORK5CYII= X-Now-Playing: Joni Mitchell's _Dog Eat Dog_: "Good Friends" 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:239509 Archived-At: Juri Linkov writes: > OTOH, `duplicate-dwim' is optimized to call `use-region-p' only once: > > (cond > ((use-region-p) > (let* ((beg (region-beginning)) > (end (region-end)) I don't think that makes much difference when it comes to interactive specs: (benchmark-run 1000000 (use-region-p)) => (0.038645288 0 0.0) If you're calling `duplicate-dwim' interactively more than a million times a second, you'll get a slowdown of a couple hundredths of a second.