From unknown Tue Jun 17 20:30:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45607 <45607@debbugs.gnu.org> To: bug#45607 <45607@debbugs.gnu.org> Subject: Status: 27.1; compiled replace-string breaks repeat-complex-command Reply-To: bug#45607 <45607@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:30:48 +0000 retitle 45607 27.1; compiled replace-string breaks repeat-complex-command reassign 45607 emacs submitter 45607 Allen Li severity 45607 normal tag 45607 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 02 04:07:17 2021 Received: (at submit) by debbugs.gnu.org; 2 Jan 2021 09:07:17 +0000 Received: from localhost ([127.0.0.1]:45788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvcsX-0004kx-Dj for submit@debbugs.gnu.org; Sat, 02 Jan 2021 04:07:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:46482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvcq0-0004JP-B6 for submit@debbugs.gnu.org; Sat, 02 Jan 2021 04:04:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvcpz-0005EP-D9 for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 04:04:39 -0500 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:43916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvcpu-0001ef-3v for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 04:04:39 -0500 Received: by mail-pf1-x42a.google.com with SMTP id c12so13393131pfo.10 for ; Sat, 02 Jan 2021 01:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=M425tvB000HGCmb5pUTOPTQvSQIVhT14XnuKSY7W1mw=; b=LbhJYWQjQImaUGu7zvUs34SoRJTTqx/NJpZ/Iqy9tlj08I78Kb+3bkotEMCvxBKa5l r7S48UYS/s+F6azUiZIAH0a8eGP/VangB6F1NmNvPMo221ZNUvbjiCGV8VLKA6lbpBiZ ffXPbNnQgdJeic0YrgrI8SvphrVjMmmtHRUzlwDw7+kHKS8p8Awh+PvBsgANT0Qhzlor 3ldHv95P6LAXtWJAFXhBAnnS2oDm7mGwjk2r3eRPfsplXieA3+pjMg9BxA7+eWLglzWz mhUus3nnBsf4CSqqiFhFAGYlobiMVPHcWN5LODA/UZTvUSEsfnyUI3ANwYn/8SOH0J/+ vq2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=M425tvB000HGCmb5pUTOPTQvSQIVhT14XnuKSY7W1mw=; b=HozippMgQqxh4VsxMqtSnwSajKAzutR4wgFPW1SL3D3/dMiCWnHWajljDwqpGADwbk 56Nb696neO8rk56FEyu3/Sj3xmgTBDyYGUtXwZ4qPiEHd3hqBKJUCda+gndnfqYu+NE+ 4w/WqVH4X/E4v5y02PRwKJvz9BE9+MOhrpTc6GY8c+PYxlQNqC5DVsjgtaf58Jif6lxZ /MO2bq3BYD9vjglPzX6J5tfGLii+4qHC0S8CddYG99BMjRzoaB8v0CN+CfnNxCwdAFiO 3UfOP9cza48pVvLuYv07/H8Zztg4ZigNH5E4Cqm4El/zYAL7GnKfeEs9sjLFhJVr9bSh L/zw== X-Gm-Message-State: AOAM531vDyWmcd4fBLasRZkoAKfppbRpkd6IfEGde2UqzSJNVNdxUkZ2 5kdTdJm+ko7c7Gx3U5NYCgSCF4IwecXbDSLP X-Google-Smtp-Source: ABdhPJw6mkQ7EB5iQN2QGDf8dJiauLZiY2qe1Gswq61SqsEYTNUSn29NSAOmbAh5EFbCW5wJiSx8cw== X-Received: by 2002:a63:e108:: with SMTP id z8mr59989274pgh.363.1609578271884; Sat, 02 Jan 2021 01:04:31 -0800 (PST) Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id nk11sm15391853pjb.26.2021.01.02.01.04.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Jan 2021 01:04:31 -0800 (PST) From: Allen Li To: bug-gnu-emacs@gnu.org Subject: 27.1; compiled replace-string breaks repeat-complex-command Date: Sat, 02 Jan 2021 01:04:30 -0800 Message-ID: <80o8i7676p.fsf@felesatra.moe> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=darkfeline@felesatra.moe; helo=mail-pf1-x42a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) Interactive commands that act on the region are handled specially such that when repeated with `repeat-complex-command`, the repeated command uses the current region rather than the region used for the previous invocation of the command. `replace-string` does not respect this; it uses the previous region when repeated with `repeat-complex-command`. Note that loading `replace-string` from source (rather than byte compiled) fixes this problem. So it's probably a problem with byte compiled commands. I swear I filed a bug for this a long time ago, and I can't remember if it's a regression or it hasn't landed in a release yet. I can't find the original bug. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Arch Linux Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 08:39:10 2022 Received: (at 45607) by debbugs.gnu.org; 7 Jun 2022 12:39:10 +0000 Received: from localhost ([127.0.0.1]:38923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyYUI-0001yM-A2 for submit@debbugs.gnu.org; Tue, 07 Jun 2022 08:39:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyYUE-0001xl-Cm for 45607@debbugs.gnu.org; Tue, 07 Jun 2022 08:39: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:In-Reply-To:Date: References: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=t5lNPRynBkz+QKPYv9esCS/UI+ZisfYSndk8xxdivW4=; b=QRENzbltbMU8bUaUSVNPRFFvze 63OIMgU5oNYaw6EsPK6PE8ACnNeSNHqEUUfg3GEutNWQTxIT74zLGlVyc7TwjDMR5ompufBdaMj7o S7LtAF4r5+KxwTcVtMqP8r0RcW9SJqejldiJI05/+uXZUo7qrOxGLs7gJzO7YpepySZE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyYU5-0002b2-9Z; Tue, 07 Jun 2022 14:38:59 +0200 From: Lars Ingebrigtsen To: Allen Li Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command References: <80o8i7676p.fsf@felesatra.moe> X-Now-Playing: Miranda Dali's _Miranda Dali_: "Angels" Date: Tue, 07 Jun 2022 14:38:56 +0200 In-Reply-To: <80o8i7676p.fsf@felesatra.moe> (Allen Li's message of "Sat, 02 Jan 2021 01:04:30 -0800") Message-ID: <87czfkir6n.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: Allen Li writes: > Interactive commands that act on the region are handled specially such > that when repeated with `repeat-complex-command`, the repeated command > uses the current region rather than the region used [...] 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: 45607@debbugs.gnu.org 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 (---) Allen Li writes: > Interactive commands that act on the region are handled specially such > that when repeated with `repeat-complex-command`, the repeated command > uses the current region rather than the region used for the previous > invocation of the command. > > `replace-string` does not respect this; it uses the previous region when > repeated with `repeat-complex-command`. > > Note that loading `replace-string` from source (rather than byte > compiled) fixes this problem. So it's probably a problem with byte > compiled commands. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I can reproduce this problem in Emacs 29? In any case, it's because `replace-string' specifies the start/end position in the `interactive' spec (as it should), so it lands in `command-history', and `repeat-complex-command' just executes that. Other commands, like `flush-lines', have pass in nil as start/end, and then computes the start/end in the body of the function. So this can be fixed by rewriting `replace-string' to do the same... but surely there's a lot of commands out there that say: (interactive [...] (list (if (use-region-p) (region-beginning)) And all of these would have the same problem. (interactive "r") does not, because in that case: (defun foo (start end) (interactive "r") (message "%s %s" start end)) The following ends up there in the history: (foo (region-beginning) (region-end)) Does anybody know of a more general solution to this? The reason replace-string works when it's not compiled is the because then this ends up in command-history: (replace-string "buffer" "foo" nil (if (use-region-p) (region-beginning)) (if (use-region-p) (region-end)) nil nil) For some reason. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 08:39:12 2022 Received: (at control) by debbugs.gnu.org; 7 Jun 2022 12:39:12 +0000 Received: from localhost ([127.0.0.1]:38926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyYUK-0001yb-Is for submit@debbugs.gnu.org; Tue, 07 Jun 2022 08:39:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyYUJ-0001yA-5X for control@debbugs.gnu.org; Tue, 07 Jun 2022 08:39:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KlFdqs+EKf8aWjMHs9DxDPvzLyNZRe4Scv9wWsRzHis=; b=PECo/axWrcmJeB6oM7zuf9Yo0w LNzzAKkdgXl3RXHH7aWQkkrNCzGrLfqDNARTqfL9eHiz/RmchceRbmxvKJSFizhiacy6bO/B5Bk9H r+AgQHIugUKDC9m23Q5PK2E0vOsYvROllzY6cMkep+d8xIteAlh5DAmiR1mboISqLgQU=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyYUB-0002bI-66 for control@debbugs.gnu.org; Tue, 07 Jun 2022 14:39:05 +0200 Date: Tue, 07 Jun 2022 14:39:02 +0200 Message-Id: <87bkv4ir6h.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45607 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: tags 45607 + moreinfo quit 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: control 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 (---) tags 45607 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 14:48:57 2022 Received: (at 45607) by debbugs.gnu.org; 7 Jun 2022 18:48:58 +0000 Received: from localhost ([127.0.0.1]:41491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyeG9-0001zL-Oz for submit@debbugs.gnu.org; Tue, 07 Jun 2022 14:48:57 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyeG5-0001z3-H8 for 45607@debbugs.gnu.org; Tue, 07 Jun 2022 14:48:56 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9B419E0002; Tue, 7 Jun 2022 18:48:45 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Organization: LINKOV.NET References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> Date: Tue, 07 Jun 2022 21:40:58 +0300 In-Reply-To: <87czfkir6n.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 07 Jun 2022 14:38:56 +0200") Message-ID: <86r1402un1.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45607 Cc: 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: -1.7 (-) > Does anybody know of a more general solution to this? This feature is broken by design as I explained in https://debbugs.gnu.org/45617#17 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 07 14:58:22 2022 Received: (at 45607) by debbugs.gnu.org; 7 Jun 2022 18:58:22 +0000 Received: from localhost ([127.0.0.1]:41517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyePG-0002DP-3y for submit@debbugs.gnu.org; Tue, 07 Jun 2022 14:58:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyePE-0002DC-AO for 45607@debbugs.gnu.org; Tue, 07 Jun 2022 14:58:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyeP8-0000Fe-NR; Tue, 07 Jun 2022 14:58:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SywoFKA4fKs2eX2HsV+OwtO9usopnoF7cQjGd260bT8=; b=NTweLVUl3A+V 6zlfdUNxEoiAjUOcEEZochCO8xq7/VlggdAKxHcTSBQAo9kHsf6GwV7e61X7iS73x9+gje8oL3M4E sGRCGDkUw7T0SFsSgJcAgfR9MIFEnKpfWgneATFpIYazFOYnm0Dx9abfvDrJhmnXjkIlWl/HFQUVG Ca4ce8aCvfl2Zrvw4vevl3wP9+o0mkcge+dr8ddVB+LfGSHSMzYTM0rhaxvaqr4xJUsv1P+vyvMzp HdpUdXXdWYh3zGX9lW25n2GLuTeKxupe99NMo2oPsse7G6VvgCx3dUfsa+JXE5iptmRYaiTHSU4aR dg32O0KTLX04maZOnujsuA==; Received: from [87.69.77.57] (port=1175 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyeP7-0001As-PV; Tue, 07 Jun 2022 14:58:14 -0400 Date: Tue, 07 Jun 2022 21:58:05 +0300 Message-Id: <83pmjk5miq.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <86r1402un1.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 07 Jun 2022 21:40:58 +0300) Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45607 Cc: larsi@gnus.org, 45607@debbugs.gnu.org, darkfeline@felesatra.moe 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 (---) > Cc: 45607@debbugs.gnu.org, Allen Li > From: Juri Linkov > Date: Tue, 07 Jun 2022 21:40:58 +0300 > > > Does anybody know of a more general solution to this? > > This feature is broken by design as I explained in > https://debbugs.gnu.org/45617#17 It isn't broken, you just expect it to do some magic that it never meant to do. As in many other cases, the perfect is the enemy of the good here. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 08 08:05:48 2022 Received: (at 45607) by debbugs.gnu.org; 8 Jun 2022 12:05:48 +0000 Received: from localhost ([127.0.0.1]:42669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyuRY-0003YS-7u for submit@debbugs.gnu.org; Wed, 08 Jun 2022 08:05:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyuRV-0003YC-0n for 45607@debbugs.gnu.org; Wed, 08 Jun 2022 08:05:46 -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:In-Reply-To:Date: References: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=0t1IpIK5noQjemXbZWXhBEaM564DUhAQRpAxSQvfqVY=; b=m6Y3Fy26MX6mzJHI/u6HSOhDGb ZVux62+VkHhGwa6maUaYssoUD3JU/onAn/JPvFu6juFvHhDtGmYR5btqMUX12lM0qKmCnv9gbXpzX tkRIU24YGYbvAmpOMRBfqxflF5f91fb9APGaGa4FmeayxG7uomlHp7AxS0R8t3UxgMmc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyuRL-0006G0-NG; Wed, 08 Jun 2022 14:05:38 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> Date: Wed, 08 Jun 2022 14:05:33 +0200 In-Reply-To: <86r1402un1.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 07 Jun 2022 21:40:58 +0300") Message-ID: <87y1y79x82.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: >> Does anybody know of a more general solution to this? > > This feature is broken by design as I explained in > https://debbugs.gnu.org/45617#17 Hm... Is there any way forward here? Could we institute some special form to be used in interactive specs that will be recorded in command-history in a useful manner? That is, code that today is: 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: 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: >> Does anybody know of a more general solution to this? > > This feature is broken by design as I explained in > https://debbugs.gnu.org/45617#17 Hm... Is there any way forward here? Could we institute some special form to be used in interactive specs that will be recorded in command-history in a useful manner? That is, code that today is: (if (use-region-p) (region-beginning)) (if (use-region-p) (region-end)) could be something like (interactive-region-beginning) (interactive-region-end) and whatever updates command-history would reify those as is instead of their return values? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 04:39:20 2022 Received: (at 45607) by debbugs.gnu.org; 9 Jun 2022 08:39:20 +0000 Received: from localhost ([127.0.0.1]:44932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzDhH-0004vH-Oe for submit@debbugs.gnu.org; Thu, 09 Jun 2022 04:39:20 -0400 Received: from mail-oa1-f51.google.com ([209.85.160.51]:43999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzDhF-0004v3-Ue for 45607@debbugs.gnu.org; Thu, 09 Jun 2022 04:39:18 -0400 Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-fe023ab520so6978052fac.10 for <45607@debbugs.gnu.org>; Thu, 09 Jun 2022 01:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zWiLtvwYtuCRHkg2sdrrG6mxZFb995xFB1bUKvbGg5Q=; b=NnGP2JCWeT+31rC3qt0FofDe5WcVOpt/RISFRO4i4J8Iy+pVkPnGTbHafcJpHYP6ug +wA8SngRhuacdSqfi4wEo0yfHZXcDccDPV/LtbRGIfhUf62jrCH1sM0rjsB4a4airBEL CDUxSZIwizzePVX7FuyOsu4EfkEg31pRyQc2IBkor/68g0TGoADiPUNCZ9o8PisFzPn7 LkuMdOVQjX3gEocLXGtXCeagE3vp2Z7Hja25y911KP5WwHy+kXed/K9NTjXUGmkliWzp E+MrH0vzmaM6Ebfb0dnLpdBILMIheARxbLjtlXZ2DOv5sGroTuZ0EdleyAU6JDcQ7b0P K0ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zWiLtvwYtuCRHkg2sdrrG6mxZFb995xFB1bUKvbGg5Q=; b=mLz47dORyqgsIgxB/2SUtXbJauZyz4qo02zAlgbS8WVY6ZCTxxNxpDLdEOEhB4xoqO RIvOxQdCrSvyQsFjg2+oXsga+hyGXt4dWH42lv08tcuiUNbQpP5pNGopk+qzMy0MBTi2 /tlVDtVSEHU5ARAn1wBpIEFt4DckswtjSKRcLH3j2e5Nk4o7cTeccvBL8S0Uiu4KVCV1 R7INUKGMkRIjhYGrto2qJUtHK+qicdAP+YrjzJpqxgGYfNhisIXK8spggnojImCW7Gb9 Ga5VnhbJHOeUFVPQio7ipKnPT9fz1e3ILbMrUclNFQQ8kf1xaTlihfqDebQzxX3kKhYo 22PQ== X-Gm-Message-State: AOAM531wEuTvbOxyElGtDROgEeX+WaUYQhVw+1/YEOGtfq5fbciWNS9o l7P1jgU7xLmMdY1I2kF87v4IURch1uUi75pPRyqavQ== X-Google-Smtp-Source: ABdhPJxsN5nFTHN18gWx6b5F1LVg9luky/2FMZUE0/VhhU8kXiYQJKJJS9AZDij5zOFgZpB75l7T/69fYa9MlrYg/Kk= X-Received: by 2002:a05:6870:c390:b0:f1:6a3a:227b with SMTP id g16-20020a056870c39000b000f16a3a227bmr1093383oao.142.1654763952081; Thu, 09 Jun 2022 01:39:12 -0700 (PDT) MIME-Version: 1.0 References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <83pmjk5miq.fsf@gnu.org> In-Reply-To: <83pmjk5miq.fsf@gnu.org> From: Allen Li Date: Thu, 9 Jun 2022 01:39:01 -0700 Message-ID: Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000008d235b05e0ffc13f" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45607 Cc: Lars Ingebrigtsen , 45607@debbugs.gnu.org, Juri Linkov 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: -1.0 (-) --0000000000008d235b05e0ffc13f Content-Type: text/plain; charset="UTF-8" On Tue, Jun 7, 2022 at 11:58 AM Eli Zaretskii wrote: > > Cc: 45607@debbugs.gnu.org, Allen Li > > From: Juri Linkov > > Date: Tue, 07 Jun 2022 21:40:58 +0300 > > > > > Does anybody know of a more general solution to this? > > > > This feature is broken by design as I explained in > > https://debbugs.gnu.org/45617#17 > > It isn't broken, you just expect it to do some magic that it never > meant to do. > > As in many other cases, the perfect is the enemy of the good here. > I think it's reasonable to consider the different behavior of evaled vs compiled to be a bug. Which one is correct can be debated, but the fact that they're different is a bug. Would you disagree? --0000000000008d235b05e0ffc13f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jun 7, 2022 at 11:58 AM Eli Zaretskii <eliz@gnu.org> wrote:
> Cc= : 45607@debbugs.= gnu.org, Allen Li <darkfeline@felesatra.moe>
> From: Juri Linkov <juri@linkov.net>
> Date: Tue, 07 Jun 2022 21:40:58 +0300
>
> > Does anybody know of a more general solution to this?
>
> This feature is broken by design as I explained in
> https://debbugs.gnu.org/45617#17

It isn't broken, you just expect it to do some magic that it never
meant to do.

As in many other cases, the perfect is the enemy of the good here.

I think it's reasonable to consider the differen= t behavior of evaled vs compiled to be a bug.=C2=A0 Which one is correct ca= n be debated, but the fact that they're different is a bug.=C2=A0 Would= you disagree?=C2=A0
--0000000000008d235b05e0ffc13f-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 05:23:14 2022 Received: (at 45607) by debbugs.gnu.org; 9 Jun 2022 09:23:14 +0000 Received: from localhost ([127.0.0.1]:44973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzENm-00066j-IQ for submit@debbugs.gnu.org; Thu, 09 Jun 2022 05:23:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzENk-00066X-L1 for 45607@debbugs.gnu.org; Thu, 09 Jun 2022 05:23:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzENe-0008NL-9J; Thu, 09 Jun 2022 05:23:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FDGTQF9xjivlwT9kDrWfJih0wCoXg8qmfsUQValnvPU=; b=np9iOyXujxo0 LmJPLNdqln5mt92wUWsIX9VgeJ5CLQlDdz64RLyvwFnW8smFOjOHi34/0ka9AtPf1/enmVgmnOyfi 6gtH4PCGmek2UlqCxtrZguUZIuGx11S0Yrx4IPEAzLlbln0dAzQlqADcu86NrHDqNf4+QinGfR7DS c2sfKQ2dFi8L8iaQunhqgEh4hYrwyy6qICzSC/4BKpe4cFLby9wzqVH5hNN6Gqolwh0E4G1az1lQl y7IYvLkINT9OfWNvZTucbxHKDpnpXTVkNzanMQQeXZ+dXNCIYaMMl1ibB401HnqtnmUe4XPL/sVEg nW1z1Y1XXpQ5ODTt5gm8qA==; Received: from [87.69.77.57] (port=4163 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzENd-0002cA-GB; Thu, 09 Jun 2022 05:23:05 -0400 Date: Thu, 09 Jun 2022 12:23:02 +0300 Message-Id: <834k0u42dl.fsf@gnu.org> From: Eli Zaretskii To: Allen Li In-Reply-To: (message from Allen Li on Thu, 9 Jun 2022 01:39:01 -0700) Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <83pmjk5miq.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45607 Cc: larsi@gnus.org, 45607@debbugs.gnu.org, juri@linkov.net 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 (---) > From: Allen Li > Date: Thu, 9 Jun 2022 01:39:01 -0700 > Cc: Juri Linkov , Lars Ingebrigtsen , 45607@debbugs.gnu.org > > > [1:text/plain Show] > > > [2:text/html Hide Save:noname (944B)] > > On Tue, Jun 7, 2022 at 11:58 AM Eli Zaretskii wrote: > > > Cc: 45607@debbugs.gnu.org, Allen Li > > From: Juri Linkov > > Date: Tue, 07 Jun 2022 21:40:58 +0300 > > > > > Does anybody know of a more general solution to this? > > > > This feature is broken by design as I explained in > > https://debbugs.gnu.org/45617#17 > > It isn't broken, you just expect it to do some magic that it never > meant to do. > > As in many other cases, the perfect is the enemy of the good here. > > I think it's reasonable to consider the different behavior of evaled vs compiled to be a bug. Which one is > correct can be debated, but the fact that they're different is a bug. Would you disagree? That's not what I alluded to, not at all. I was talking about repeat-complex-command itself and its alleged "broken" state. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 14:53:08 2022 Received: (at 45607) by debbugs.gnu.org; 9 Jun 2022 18:53:08 +0000 Received: from localhost ([127.0.0.1]:47750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNHI-0000PF-KV for submit@debbugs.gnu.org; Thu, 09 Jun 2022 14:53:08 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNHH-0000OV-4J for 45607@debbugs.gnu.org; Thu, 09 Jun 2022 14:53:07 -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:In-Reply-To:Date: References: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=JD7/QA1g0tshMVj6ArhU0y0C/gjQXLBMvHKPiNQuYHk=; b=Qd+/xZ3gvII9t7j1BRbLw+lgFE 2OS0DFbA/aBYg2xXdCzb+gdo2yDeP446EAlpnAp1wvfIafQ9R8ApqJxY0B7kFGsinATH65gRptM1n 7MHbyiYd02OM4WKJVU5kLrtzcd/BfWaTRq6PsoHPLg0CWyOZy3tUAtsxQtKrg2eos774=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzNH7-0004Tj-K0; Thu, 09 Jun 2022 20:53:00 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <87y1y79x82.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVYWGHz8/IQEBSl qb1nb6T///90f4viAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGBgEFM2WHBycAAAGiSURBVDjLxZPb YYMwDEUVmwGiigFcJwMg5AEIeP+ZqgehKWm/a77wsR73yobLtfIk6CvVfRVBUJBBkB3ojy9ABL76 AQeEOEYEEyBBzZHJAO1AFEgX8gDMzzqFCNiyTA/bHxd54BoRWtxSBMCRgWcHWvzTgDA+17S+AKR8 AJmPVKpuvDTf1MDFqt/QAWtyP30VpFR2oHkYWwDacC4WkR2EMl88eU+JzRIHIpu35PtgpyNiHBaO fTDn2gG8JUQ9zlrCf9VxYSL1RUigL7mtO1DVQsQKuMkkkufqZQFZ1FwxdYOsfRvm+tjBxsTaL1Mv CXKf68UBpBvbAJVZr7kllae5YTCDIsTAXc31SXwrJwnVtT7oAN/jLqsOg0Lgc0gRMT2BzVwF6uc1 6lRvJpcPS2i/IEu1mfKLVzvooe8H8FRDWHUCanoOq04g/QqoplQB3sFYygJ6R97Axx1WuzvvYEje 8LkrmnM8tXOExF2rbwLHeX+Zn+dUq/X6A/hDI31LsNmVfgEivAlOQ+8d7tD9IIhI633rTdYCHaCk oW26CfWP9a/gC9Piem1iKRDKAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTA2VDAxOjA1OjUx KzAwOjAwOanalAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0wNlQwMTowNTo1MSswMDowMEj0 YigAAAAASUVORK5CYII= X-Now-Playing: Ultra =?utf-8?Q?Nat=C3=A9's?= _How Long: Ultra Nate Best Remixes Volume 2_: "How Long (118th Street Instrumental)" Date: Thu, 09 Jun 2022 20:52:57 +0200 In-Reply-To: <87y1y79x82.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 08 Jun 2022 14:05:33 +0200") Message-ID: <87v8t9y8hi.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: Lars Ingebrigtsen writes: > could be something like > > (interactive-region-beginning) > (interactive-region-end) > > and whatever updates command-history would reify those as is instead of > their return values? 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: 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 (---) Lars Ingebrigtsen writes: > could be something like > > (interactive-region-beginning) > (interactive-region-end) > > and whatever updates command-history would reify those as is instead of > their return values? Sometimes it's helpful to actually look at the code. All this magic comes from: /* If the list of args INPUT was produced with an explicit call to `list', look for elements that were computed with (region-beginning) or (region-end), and put those expressions into VALUES instead of the present values. This function doesn't return a value because it modifies elements of VALUES to do its job. */ static void fix_command (Lisp_Object input, Lisp_Object values) { /* FIXME: Instead of this ugly hack, we should provide a way for an interactive spec to return an expression/function that will re-build the args without user intervention. */ if (CONSP (input)) And what this does is to try to hack its way through the lisp code in an interactive spec like /* Skip through certain special forms. */ while (EQ (car, Qlet) || EQ (car, Qletx) || EQ (car, Qsave_excursion) || EQ (car, Qprogn)) looking for `region-beginning' and friends. But we now byte-compile the interactive specs, so all this fails spectacularly. So we need a brand new way to specify which options are `region-beginning' etc. Perhaps with a declare form? (That translates into symbol properties, I guess.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 14:56:24 2022 Received: (at 45607) by debbugs.gnu.org; 9 Jun 2022 18:56:24 +0000 Received: from localhost ([127.0.0.1]:47768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNKS-0000VO-Ar for submit@debbugs.gnu.org; Thu, 09 Jun 2022 14:56:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzNKQ-0000V2-BO for 45607@debbugs.gnu.org; Thu, 09 Jun 2022 14:56:22 -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:In-Reply-To:Date: References: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=A6jUtbftYkAGQ+BBql8TNOItA4orGGOiiFN4vPdpnn0=; b=MM+01gTaFLO2OARlCobFwFICuC 9h8vXdspJ+47OjY92DSahPApxCUGhScEAeAtF+PVvbskAy0YlQ8IckBIA7D/MApttgcyhCn5P5yv+ S/uUYEasXdf/AslJRYc9UcV69+hhkdrv0LR+iUyGklkijIYdTVW3IR/QXqQ5ZK7qPK/Q=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzNKH-0004Xc-JQ; Thu, 09 Jun 2022 20:56:15 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <87y1y79x82.fsf@gnus.org> <87v8t9y8hi.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVYWGHz8/IQEBSl qb1nb6T///90f4viAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YGBgEFM2WHBycAAAGiSURBVDjLxZPb YYMwDEUVmwGiigFcJwMg5AEIeP+ZqgehKWm/a77wsR73yobLtfIk6CvVfRVBUJBBkB3ojy9ABL76 AQeEOEYEEyBBzZHJAO1AFEgX8gDMzzqFCNiyTA/bHxd54BoRWtxSBMCRgWcHWvzTgDA+17S+AKR8 AJmPVKpuvDTf1MDFqt/QAWtyP30VpFR2oHkYWwDacC4WkR2EMl88eU+JzRIHIpu35PtgpyNiHBaO fTDn2gG8JUQ9zlrCf9VxYSL1RUigL7mtO1DVQsQKuMkkkufqZQFZ1FwxdYOsfRvm+tjBxsTaL1Mv CXKf68UBpBvbAJVZr7kllae5YTCDIsTAXc31SXwrJwnVtT7oAN/jLqsOg0Lgc0gRMT2BzVwF6uc1 6lRvJpcPS2i/IEu1mfKLVzvooe8H8FRDWHUCanoOq04g/QqoplQB3sFYygJ6R97Axx1WuzvvYEje 8LkrmnM8tXOExF2rbwLHeX+Zn+dUq/X6A/hDI31LsNmVfgEivAlOQ+8d7tD9IIhI633rTdYCHaCk oW26CfWP9a/gC9Piem1iKRDKAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTA2VDAxOjA1OjUx KzAwOjAwOanalAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0wNlQwMTowNTo1MSswMDowMEj0 YigAAAAASUVORK5CYII= X-Now-Playing: Ultra =?utf-8?Q?Nat=C3=A9's?= _How Long: Ultra Nate Best Remixes Volume 2_: "How Long (118th Street Instrumental)" Date: Thu, 09 Jun 2022 20:56:12 +0200 In-Reply-To: <87v8t9y8hi.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 09 Jun 2022 20:52:57 +0200") Message-ID: <87r13xy8c3.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: Lars Ingebrigtsen writes: > So we need a brand new way to specify which options are > `region-beginning' etc. Perhaps with a declare form? (That translates > into symbol properties, I guess.) 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: 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 (---) Lars Ingebrigtsen writes: > So we need a brand new way to specify which options are > `region-beginning' etc. Perhaps with a declare form? (That translates > into symbol properties, I guess.) I.e., (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) ... (declare (arg start (if (use-region-p) (region-beginning))) (arg end (if (use-region-p) (region-end)))) and fix_command would pick them up from the symbol plist and use those forms instead of the value for these arguments. This could be generally useful if we have other things like this that we want to have reified in a particular way in the command history. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 16:51:41 2022 Received: (at 45607) by debbugs.gnu.org; 9 Jun 2022 20:51:41 +0000 Received: from localhost ([127.0.0.1]:47956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzP80-0003gO-Vb for submit@debbugs.gnu.org; Thu, 09 Jun 2022 16:51:41 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:44266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzP7u-0003gA-1x for 45607@debbugs.gnu.org; Thu, 09 Jun 2022 16:51:39 -0400 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 259J48XN026579; Thu, 9 Jun 2022 20:51:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=Cg377K1D7vIYJMdslNGxdLDzVuomdA8/OJp9vhePr0k=; b=CyYq/gx6Z+XMYfHaXURH1TY4aTNkxmI69XWXC24ok0patfKoupMuZBWeKIl3i6JZTrNv hK5bA0XS9yyhNqQ9d928LwSbJa2rdcUC+WOOi2Dxj6RKiCxUW4Or6gDM0XkOlRSjFmpP U/NSmJyx4wsIMjjlRdnlLSJQwYEYHsS7URjt/QnTo5SEyf3RdcX4+7fYqOfs66Ozhl3q bYWUgGJ6rBoIHJWzCPUPivU9UI6kQ7x0flMWhyvsjstd0dPcWoHUKavg13HJdZ81NpM5 9dc3/cbA5L1BM7AfY7XoJ9mg3tLx0djUlG5Lapvpwxz/bsnHG478zlx+7l91EVELOvXm WQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3gfyekm5pc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jun 2022 20:51:33 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 259KfJeo008888; Thu, 9 Jun 2022 20:51:32 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3gfwuc6pk1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Jun 2022 20:51:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YmaJkGVDvAcUL9me+mqFvuk74FMv2Z53ctMXTyEt6LM+880Z88vt+RM5qDYa/kMXRxuYAJHabNF3lr2dxPzSX5OkizrqlQbtk5Xi9XTtmMGiJNakzxaQIdK9tABsna4baOsTfRBE1oTjWcqPYh9AIJR6pB3Mh1HXsXblfPXCPtyyXra8vg4lRbzE6dNWkZ7ZVdEv9NIirrhv3wMhbdswtP+AH622WLUWoCXW18aZcjFp+DulRY3D7gc/yRbE82Xh+A/4xC3sbzjPIlmBrLDrQrxbjfhpWMrbYbmhCRbieSEQDxfOA2c6hneX5U6ArxOKLQs7rYHUwUaPp2pssGU34A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Cg377K1D7vIYJMdslNGxdLDzVuomdA8/OJp9vhePr0k=; b=gK6Z30srjtoi2xxV7kLErTYIfJPySAUzsQANFqxC9842J07FhdLcI3GcYoyYlr73BEDsoaImAAwlHSVEdlcYO4O+eLtdk95eCZSEwALTJMMR6HfZhW8u8kIT4xmCPx34vGu8c/Lr2hANtqa2Oxhixqu4TmYBQyZ80vKu6x8WOETGGGyTFQcDxUVe5AO916NUWSxJB8XqljDaVSWKqVMdrPZfXxfD++CFImZpcCOthqgV+tXn45Br9yGawVLcQcIiPSrcMFUoh3kKHXJfCd7i7s4aDASdQLMox7V5Fay4q9gKlMNXzxJk2JX1XlCZgSYpauoOuyD8N2z5/maZcqFICw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Cg377K1D7vIYJMdslNGxdLDzVuomdA8/OJp9vhePr0k=; b=imj3bV2bsGudk/FS7krvMcCOLYU6GtbO9oGx3a1uMP7zpTAr8apcsQCQZgpaURejkp+J2h7v1lBTyNLc6n1Agp5ciwTr6pdAcOO8jfGu00GinuDQcnyIAjeIgewbYWTgw0waYVKL99cmweTaMcmzaLyv7qRQi/k9MW5KmlY39Lo= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SN6PR10MB2718.namprd10.prod.outlook.com (2603:10b6:805:41::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13; Thu, 9 Jun 2022 20:51:30 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::818c:10bf:c1b5:e224]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::818c:10bf:c1b5:e224%4]) with mapi id 15.20.5332.013; Thu, 9 Jun 2022 20:51:30 +0000 From: Drew Adams To: Lars Ingebrigtsen , Juri Linkov Subject: RE: [External] : bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Thread-Topic: [External] : bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Thread-Index: AQHYfD3GUvIJtEv+dEK7JY4IaYL9161HiiVw Date: Thu, 9 Jun 2022 20:51:29 +0000 Message-ID: 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> In-Reply-To: <87r13xy8c3.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5a0b3b23-d8fd-489c-0921-08da4a59d443 x-ms-traffictypediagnostic: SN6PR10MB2718:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: s07nEmUdFtnwXgSPi6O8Xah+cMcLuouF02zfKLfAXfVjo1ctNF3QQJ+Y4vzWN1dUmrIEdMnBHkkKjwkFJfYYQD+ToiBE0LD5XU0cYP10WlazUmRheL/VUzGDgszUWiLLjyjv2WC9wREieUFRwTZrd8wjaeO9Bt4zB4Gok4hBn3ACMvFaptnzTvBeyxtmmEIV5GQ3iwkuvFSDmKNZJoGqtjlogv1N5W69p7kh5QGqSng7s8mGAA10ijjahNMVa3llvBcWpTC7zfO6MyA+5yasZrr/jQxk9g38OXGUU0WkibE3O4dpDCUaILGK3EngjbRsRL4EvWl3rGaE594NT3aT0dnUmKc6txhqyGjdT1xc81PMSISlauBbPcYIFdTDguV/yd7Srzg3C7EpCSFoH2/qCMs5r0sAd2ggrVQVNLZ8kpuQEGsNhZYnv4Li+VGgXuWgVdpu0v1VyMZwHrxhru+4DL1EI9hXNPC51tvDrBot6zYdVFv/kxioNr0IHEI6KBZOvpqNRrBmFLaP6aTVI9D0DunDMnI+C2EhAdGYoGdGwz3onieV97cBym9SOcYSuKejnjlyrTm+s1LwQLLbJuxTfnWtbRetbSAIlpV/8QMTXzGR3Fq/Q3E3qIuShMGE+nDWzD+aMuThAnbEjfNRVXwPKF91BMTfKOg71xmv09vAMs0Z9klPvUFX/xC9XSnemCYD x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(52536014)(5660300002)(2906002)(508600001)(6506007)(8936002)(86362001)(186003)(7696005)(33656002)(558084003)(71200400001)(44832011)(110136005)(9686003)(316002)(8676002)(122000001)(26005)(54906003)(38100700002)(66476007)(66946007)(66556008)(66446008)(64756008)(55016003)(76116006)(38070700005)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Qt7eF9qxVtD4jj+atFrccEOn1FuJiRGSq61ODE2e7RtsNzwxGj+KZgTdCOUa?= =?us-ascii?Q?XprbcHbXlGiSjjRn8YwUubks1+E/zVUAMK4rMVna1F7oWSewTae+MozYldVw?= =?us-ascii?Q?uHwiErabdyWttQZpF6QXOjAXKVus8YfoXXgLXKNfWE7s6I7ysZuwf7XzQC08?= =?us-ascii?Q?aAvUmblKoEDKlLBcjz1WV23LIFlxkoC4uS5ycJyRlYML/GcztYDosmB5WCGm?= =?us-ascii?Q?g+O0wsmVHIGwYHzajTClfR99VvhpriE93Gzhv+qY/N68PwnXInk6QkoSnWuX?= =?us-ascii?Q?PqtDKU8LVf9GTys4h7aSA5zb3ECF7HijpMfugijb1lRLFmkysMqco8Axlb/h?= =?us-ascii?Q?vfZq8JPxrNbIsZsIsKZtXgOFTKHwGsSPEwXG9ON5Kveou/xdQl/WLimYgb0N?= =?us-ascii?Q?bqxve10KQPHPbjO9rXKY7hBTRDbf9/UIv3kBCAnlRQy49/JmZbXoYRPdb/kX?= =?us-ascii?Q?QQE0/fDP1SsEF/ituMjCCEpoPURuAuZQT/z7iLyZ3LVUP//cu6bA0qMShWjY?= =?us-ascii?Q?5rvk2mGYa9bcJTcHUXYKrpodh9ZFN7j57vJUqgAammbVgYcbgv0vugHcmLQq?= =?us-ascii?Q?/HfkPplLf+aNLzbBXwTWx7ZrF34BHLhaQo0544x0w5kA2vhYtaqGj6b6Lmpm?= =?us-ascii?Q?rbg22fS1XLB6uf/QC/1QO03Xo5QQxvIVjiFH7Qx52I6XM6SIRpXu9rZnGXEH?= =?us-ascii?Q?PzpZcWa/P1Bn0mcTjkBqpyeJMPQXKxGZQ7oZeFm2ySq049/jFV7dnZ56Q4Jh?= =?us-ascii?Q?/ypVFttHuKa/z5/7mlnpGnoSOZS/vDRtnIjZPtrzfeYKe3Rmn8gJ3Q180VKj?= =?us-ascii?Q?8X2URcIKBxkWA9cPDpMLm0VU2kDxwHkCKbf/x0xUQ3M1SJFahUTuYbMgMv2a?= =?us-ascii?Q?QadsTXciNdE7fzUHh9UWFS8fTS3ixrCNkTtl6A4OeYgk+UjniTg/n/LTcrer?= =?us-ascii?Q?xrRpYgmxv0tueqonkTk5MYc6j+wf1fbDvRDkqtVHZLAKgH90Db4DMg4wcMa4?= =?us-ascii?Q?S3mxJd4vRmDNF/ijr8v4Iczdij1PkHDdYSdU8sNQ91fSQSovK6Jy89mvzd1Q?= =?us-ascii?Q?8hBYQ8IihwrMNE/6Qnu4UCLWMD1BBJ2LcnaICkTGKHZMiaHb5urpx5W31TiR?= =?us-ascii?Q?DUVBu0s38G55LMRn1qiKbto6lpww/Vs1SzSfHHj9467ImF5pCK0Hi6xtpoJz?= =?us-ascii?Q?jIw+xjwk6ZPpnbMm04RXkH7moQCSEjxgA9wryYGqBe5DsU/RkJy2hEVwAgWQ?= =?us-ascii?Q?lOmoMV6J+FZuA/LuwAk4SHjzvldSvkOTopSYv7ahzyO3B85qUr2tbpUZHaeA?= =?us-ascii?Q?18tEWmP91WIMz08TtiMr+6IMmEmwfDtXX3LNKW6aqHnOt+arjBbpN9Hkmz7P?= =?us-ascii?Q?GQh6Uli7DDdYEa8Se5f0r42FJuVgdMkB9latUxci8zXbYtiMehGRYMBgmI8A?= =?us-ascii?Q?BnUGt+k+Nqe3t8c7evqarXXfBOP5W7Sakzl+z/M+VzTGPGezRk54cFyPhjap?= =?us-ascii?Q?jzOIS8ZQCR41QwVx1q3PzA9o7wN9bucRnD57BWbQl3rbIAYL4wyZqlUXqCmX?= =?us-ascii?Q?YKK/nXzUR5rcNm79QFfVcFXumNGmwsE7ysu+eA/RJm6ZHLIB4j8CIc1IvHnB?= =?us-ascii?Q?Wq8JKXjD4G885eDLvOsD9jOTbUwlBN+TjOtef769Zh7QnD7o4hPf5iawllrc?= =?us-ascii?Q?navP3GyvjBLE2yw4Oz5GuRd4SY1Z3Wm1BvhTUNcH3P13h1fAiMJjSQAndtUp?= =?us-ascii?Q?9DSXX50HUQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a0b3b23-d8fd-489c-0921-08da4a59d443 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2022 20:51:29.9429 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fXgXzXj/E5XorKKD8KNd38hgzmOLXh6maxt3cxM0ECKBATyWaYla8HsoauOYzZo151lTgWaqcdablgiEsobopA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2718 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517, 18.0.874 definitions=2022-06-09_15:2022-06-09, 2022-06-09 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxlogscore=549 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206090077 X-Proofpoint-GUID: TkrxZHC2KPm5ogDIRDrIDo-_T13yrCd_ X-Proofpoint-ORIG-GUID: TkrxZHC2KPm5ogDIRDrIDo-_T13yrCd_ X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45607 Cc: "45607@debbugs.gnu.org" <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: -1.7 (-) I thank you for trying to fix this. And what you've said so far make sense to me. This problem has long bugged me. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 10:41:34 2022 Received: (at 45607) by debbugs.gnu.org; 5 Jul 2022 14:41:34 +0000 Received: from localhost ([127.0.0.1]:51215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8jk5-00076W-U4 for submit@debbugs.gnu.org; Tue, 05 Jul 2022 10:41:34 -0400 Received: from mout.web.de ([212.227.15.3]:34255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8jk3-00076G-I2 for 45607@debbugs.gnu.org; Tue, 05 Jul 2022 10:41:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1657032084; bh=awE2tbv31bGIP1chS4pHMEu2ehaYTaFyiWnw1rVgcjc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=N3IyXTN5Pf+B5hsFT+kioX9n1tbyn/u6RH/5rQT38M/saGHGjVGGICHPwUPg8Fdm9 KIDF2VzIoW/HLQl5NyRPwN9MuFp3R2B+qjpmm9Z0B7xINtXu3QHA7I6Qt0zVJMv74V 4EK6TDYN6vY6py6NLRjKL9PDoYdVZFReRbFAlsd0= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([88.66.201.45]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MDdy7-1oHICB1GrP-00Aza1; Tue, 05 Jul 2022 16:41:24 +0200 From: Michael Heerdegen To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87r13xy8c3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 09 Jun 2022 20:56:12 +0200") 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> Date: Tue, 05 Jul 2022 16:41:23 +0200 Message-ID: <871quzaagc.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:HG1cCjucwwEosq2LTCImav89bHDSDWBWULw1SAqiI+NBRlOTw0a A3xC1O2UhvEp8GBaYVZg/7xOG4Yn0ihPi/PSQV1Ku8pasW9fbfMDHYXO52qDvNq3o6tBGK/ 8SsTLxVYP8HP3DmRvDQ1pC9BmkVu2WFAYeLTaZAzIBYby7pEtjeNoO84Uz1qCCT0pwzqr9w fpJsRYhFr71Yqh78pLuLg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GyFxQMUm7jI=:RV+E3xN7Lk/8P23zO0BevQ T2D6RatpYdyuAoP2X52EcKLcWnrDoKYgIdCGYRzzKw7tYEWOS4fKkCZ9tmekobab4qzxswPK+ K9tFEQ/4+TqhpvXNgS4lNizxvd9W21zhrtK6+JgKVdHEtrYy3V71P1RwR3I8ViZ3jJhPVSbgl kkN7GFWF0wBA49s2qhOF28J/tVxAwUZyJJrUBLn6eYnHN72Xr2W4/08nvy1HJzjhrJl/sAuzm Q387IGOVq3N3Kwni73+M7LppOpMcNIZ29MVNZ8TPPvBc6zaEepEA0ypjYxJqp8Djvqo9UUIPB Zcj/7kPwDonKYTwtQQQb8Eou3danjadP7Vonv1RLeLGj8/vLbNNWF1IdqUAe2mCFl0cktpMzV +m/1VKYEW0VM14mCcXoAi7n7XQUKK703G1RRwLV4U7J+/qEyrg4WzjzpD1BYKRKx6+iAPcYDq pevTpXeYNXlNGlseaToY9ao513KP4yPPkU9bkFNwZ6AltVb6NXgcCkhtTJ2ZJ+2syRhMT+9Ca /XWZfIYe1xUpUGDn6IfpPzNdjW3M2qn6JLVGTZBsOdFVGnnraYPCPxyz7TIcNx10MMTnp9rC7 zHlaGAY2n39vl1x9G+HFlqImToUOtYqjNO+Rfii/6EbUmptVd9YFijo0B/65w2o3S4TX8ZePM sL685Q/zwTkRDFZi6dSvqyI66BRrONaXWIA17CGIwScpO1+rdDMox2HLh58hKgSMpD34TMPko 5+1zxWMBV3uA0vyvdDnB1dbeKh8Ts7qaOqOxYji/c7zg/+tysHgHp1+hzvghZTbv3xj3YR11v 1mEAqq/wIRGXeAyP7rOPVYvRKiMLN7cly+WcSFjw9Al7X+nrRPF6fLIjgHHKRnBitPOFnOjXU zaRZ5EDbxyn/a0lb0qM5/I1jhz2Gu5mbZyid4nKQLo87aNbtCF4kjkQ8tCeagtBXoaa3HOt+Y f12KIqJzQ8WLgFYRWsFEO8mJhvc80IHVXVmDXsBR3Q00wb3E7NHLBUHpExE1xf/3D3Yq4sNvX g/QY6wj4JebdlQxHKNVkI39ZxvOnhJhPIZ3+1iGfAzhZdVZGdC0kYfN9hdE71NAQNbS6+Ejo+ jeTQGCEB7NRpWxHOMN+TnAW9EVSK820r8kfrBFiHnsS8JfqZQ20vPv8gg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45607 Cc: Allen Li , 45607@debbugs.gnu.org, Juri Linkov 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: -1.7 (-) Lars Ingebrigtsen writes: > I.e., > > (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) > ... > (declare (arg start (if (use-region-p) (region-beginning))) > (arg end (if (use-region-p) (region-end)))) > > and fix_command would pick them up from the symbol plist and use those > forms instead of the value for these arguments. If we do that, it would be impossible to explicitly specify START and END values that are different from an active region from ELisp code. If the region is active, those arguments would always just be ignored. We would substitute one ugly corner case with another one, but would have added more semantic complexity. We only have a problem for `repeat-complex-command' usage, right? Then the effect of a new `declare' spec should better be limited to the value added to `command-history'. Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 12:45:52 2022 Received: (at 45607) by debbugs.gnu.org; 5 Jul 2022 16:45:53 +0000 Received: from localhost ([127.0.0.1]:51447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8lgO-00046R-KS for submit@debbugs.gnu.org; Tue, 05 Jul 2022 12:45:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8lgI-00046A-VJ for 45607@debbugs.gnu.org; Tue, 05 Jul 2022 12:45:50 -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=5jfduTCiciO4lqKGqbtq7THRu9OKHQuXm/CGwBAb/k8=; b=nNQqqjnrxcRlCQM8Q7EnQi/sOR 2rzwP0tQMUhE/IhNEJIR6GTiUWNHgnYRqxV2B7Xbtl6pozvZzfk7yfvbmt4xcv+LbIz68f6fzH3xl jrCbevNzn1jh7cc/p2Dfuk9cmCWW3WM9kGY2YERMCqwTrBjCy4aFCmdzxAONJ/oniA3c=; 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 1o8lgA-0003sg-4R; Tue, 05 Jul 2022 18:45:40 +0200 From: Lars Ingebrigtsen To: Michael Heerdegen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <871quzaagc.fsf@web.de> (Michael Heerdegen's message of "Tue, 05 Jul 2022 16:41:23 +0200") 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> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWFem5CPDeVin// ///U816mAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YHBRAbBtVEs8IAAAF3SURBVCjPTZDBauMwEIZ/ G3tRfXJKppQ9KWUDTp7CKTW4PSlmxqQPsO8hTLaUHsP67i499Sk7lu2yP0joY0b/SD8SRIk3qI39 Z1CWNjaARfFxBtDFUbJCl2VYZKwxBVDWFpGD3fpPwKEzVdW9Ji9v2uH91lEZZ3uvPqZO48j98sUA XNcx7YcWL5dXIEfH2cC3ag7srOefZzG7jUWdx1d8m9DdZX0GCXNOjh7adQMRYV8d6MB0GkFqR3SQ voTwSk4ivRO5h9j3sSisDZDjIYAQZ+q2qO2wHCvhAeM+QiliIanwH4XTaEByXDqfvu+onEI6H4Uh TXRUfK7ue9HK79mb/gP1UajWYf4EelV1ows6nmazUAnQyNS2iAJsqA6TR2hTaegbenFMM9SUuvCN ER5kLZz3s1t/w44nqISi6YcBZE5rHtqSTG0UHsO0Evy94pRhNZ19g2inwT5uiaV4QrHR5/8YUy4+ Yb2aJbnmmu0xdCQpq3l7efsCE+abYhqQ54EAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDctMDVU MTY6Mjc6MDYrMDA6MDD2IVAGAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA3LTA1VDE2OjI3OjA2 KzAwOjAwh3zougAAAABJRU5ErkJggg== X-Now-Playing: Flux's _Uncarved Block_: "The Stonecutter" Date: Tue, 05 Jul 2022 18:45:37 +0200 Message-ID: <87fsjf1pam.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: Michael Heerdegen writes: >> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) >> ... >> (declare (arg start (if (use-region-p) (region-beginning))) >> (arg end (if (us [...] 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: Allen Li , 45607@debbugs.gnu.org, Juri Linkov 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 (---) Michael Heerdegen writes: >> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) >> ... >> (declare (arg start (if (use-region-p) (region-beginning))) >> (arg end (if (use-region-p) (region-end)))) >> >> and fix_command would pick them up from the symbol plist and use those >> forms instead of the value for these arguments. [...] > We only have a problem for `repeat-complex-command' usage, right? Then > the effect of a new `declare' spec should better be limited to the value > added to `command-history'. Isn't that all that fix_command does? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 14:47:43 2022 Received: (at 45607) by debbugs.gnu.org; 5 Jul 2022 18:47:43 +0000 Received: from localhost ([127.0.0.1]:51636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8naJ-0003Cu-MU for submit@debbugs.gnu.org; Tue, 05 Jul 2022 14:47:43 -0400 Received: from mout.web.de ([217.72.192.78]:45449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8naI-0003CD-5N for 45607@debbugs.gnu.org; Tue, 05 Jul 2022 14:47:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1657046854; bh=Nvgt6zEGoWThk9BlIW6yGo6R/pQzt4yGiPRKfW0b9uc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=qNh1Qv6AmbK7JOGF+98Y1xsUAw+i3qmZDI/vCO6fuUBVSzZkOAhRGMynrnH3BPAFf XT5SLBT9Pqnd3tbVUShHeUBjYldlDmuCWgPxdzFytoJQsT9lY4I53bjwOwd7u8Een8 vZ031qKPzyhhOkDfIxUVGMUlsJpxJr1cYg8HLP/w= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([88.66.201.45]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N2BHw-1nSQ4u1hDa-013z3v; Tue, 05 Jul 2022 20:47:34 +0200 From: Michael Heerdegen To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87fsjf1pam.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 05 Jul 2022 18:45:37 +0200") 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> <87fsjf1pam.fsf@gnus.org> Date: Tue, 05 Jul 2022 20:47:33 +0200 Message-ID: <87sfnfs8fu.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:rvId05f8LZ4TmlNzvK/37kn1tuaQ1JR2Z80f8zD3lzG3QY/mBQY B35Grbgm4T2z0hQz08KtKP3bQIGAs4sDGULKn5mx0uv9KMbvfS/4BQ3jJQ0JzNmj8fZ1x5z QLDl6GMWo+WO73xiObHTKf2JirRR8vNT3InGkH8qZ8NQmja35GMaevr3FLTA/YaWk2jSofe pD/r3ZLTq1EOZwkuzyCdg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:QdntogCb/KY=:SkpnhwLeesfuAqhHqSzGmU BZ9c/T4VsJPJjS+DirG5xCogzox/jwcKA6EdR9qXBPY3Dpuf6egWvL0IMlfagRbOMck4xke9h 1ZjY6+y+m/1IBiR99hzDS78luPD73gAGkg+6Z4VBjw4jIWFK0v3f8JpfkY0+uicIknnILVdQx whAYgT34Eq3owYmFn2FvAB24N/GdryIGaeH/zMUNv6TQy69/b9Oo99RuQR75ZdrD3bwQuPQcl SJjXtm7BjxtHwjL7JhY2+IKVu0lIyt+r5cTqGN+9HJYTBEZAUOb1LTRombYabmppj0ZZKQUsR JJEhRRoGKY3jD/2hv17gnzKA/moHEyWg8fayjVyoB0Z9frm+GQ+Djzz5YqLYP/GutGNVUb3S2 t5/Hda64UY80ia5+Qu+O72KMeDn1L4fh3AvLOgraxBCCmlTwDTkCDMFeDD/0Rg6vdrV8coV+V Q0ZATtOC9qrcnAmLrY2YyVILIuwvlzXaxjvIk+yWtQI6c4edYxaAl5+8bS6tVJTbuSFi9EKM4 ShrslI/iFqLY4N7hqeOPZ+0FV8PVd7PmDV7Bz+lgrZqPjqsz4YXR2ZwX88U+1ul8OL1vCoS3X iMKYZfnVEDBeT7QWsdXxyNRGaFas+EkWIB/0/NWk8Ym7rBzl1PqDIaoBjDBAQJcxQWtRy+gKw /LV+zM2jiPj/28C9SHjoImVBX3+FPMzRwYbNvJWBvEoCdTI1kiITj/pDUT+XG1rTE1pM38z3g 9K0iTsTjJ9PPzyKXMqJjknzWkGynWFb2BQ4SvXTDo3ABWbc7T/07omzxD1n7/YYC2+yTvekEL LSlCEjlUA/0VqXQ1u7OMK1ZLc0nwTyDPvrpPi8XGFRA2S5lciFbSsnpj2KhVTrE82wcUKdeAh 6NjUnpOSUsBW+zQICVkxzySvXge5f1IlK6NG4LCmHN03IunE386S1d775P5oHeAyXn4cFQUh0 VunxTCY2ihMEkeBr9jnmGQY6CAh3lfXMi2+SIZzGgohzw6R+2nF9lw2IJO6ZLXrvGc0l+v21B Ai0bOaP0rzDgrPG+OXOQyQSf+IcYIRfAZiFD94gqaHUjDNl8vC6JcLeZTsdhjZOJb971zykEe wg3B9yTfXUxQXwJ4z9bbQOCvtZ6q/eP/ROx4ZIR+UfebTQG4tX0p81bOQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45607 Cc: Allen Li , 45607@debbugs.gnu.org, Juri Linkov 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: -1.7 (-) Lars Ingebrigtsen writes: > > We only have a problem for `repeat-complex-command' usage, right? Then > > the effect of a new `declare' spec should better be limited to the value > > added to `command-history'. > > Isn't that all that fix_command does? Please ignore my comment if it does, I haven't checked. Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 04:19:17 2022 Received: (at 45607) by debbugs.gnu.org; 6 Jul 2022 08:19:17 +0000 Received: from localhost ([127.0.0.1]:52196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o90Fh-0003P6-LQ for submit@debbugs.gnu.org; Wed, 06 Jul 2022 04:19:17 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:37361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o90Ff-0003Ob-9g for 45607@debbugs.gnu.org; Wed, 06 Jul 2022 04:19:16 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 3698860010; Wed, 6 Jul 2022 08:19:05 +0000 (UTC) From: Juri Linkov To: Michael Heerdegen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <871quzaagc.fsf@web.de> (Michael Heerdegen's message of "Tue, 05 Jul 2022 16:41:23 +0200") Organization: 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> Date: Wed, 06 Jul 2022 10:53:13 +0300 Message-ID: <861quywusu.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45607 Cc: Lars Ingebrigtsen , 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: -1.7 (-) >> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) >> ... >> (declare (arg start (if (use-region-p) (region-beginning))) >> (arg end (if (use-region-p) (region-end)))) >> >> and fix_command would pick them up from the symbol plist and use those >> forms instead of the value for these arguments. > > If we do that, it would be impossible to explicitly specify START and > END values that are different from an active region from ELisp code. If > the region is active, those arguments would always just be ignored. Indeed, some users might want to have numbers for START and END values to repeat the command exactly on the same previous region, but other users might want to repeat the command on a newly selected region with (region-beginning)/(region-end) in the command history. OTOH, keeping numbers in the history breaks replace-string for rectangular regions, because the command history will contain inconsistent numbers: some numbers from the previous replacement, and other numbers from the new rectangular region. For example: (replace-string "buffer" "foo" nil 1 2 nil '((3 . 4) (5 . 6))) where 1 2 are the old region boundaries, and '((3 . 4) (5 . 6)) is a new rectangular region boundaries. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 07:35:39 2022 Received: (at 45607) by debbugs.gnu.org; 6 Jul 2022 11:35:39 +0000 Received: from localhost ([127.0.0.1]:52687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o93Jj-00058Z-Hn for submit@debbugs.gnu.org; Wed, 06 Jul 2022 07:35:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o93Ji-00058J-CW for 45607@debbugs.gnu.org; Wed, 06 Jul 2022 07:35:38 -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=E+buaHefv1iV4lm1gJzRFzV6ZFKMtHIdIqZQ9jkKJsk=; b=LFR7WGOaXJliZFpoQGs0yOnaLn fC1TIr7ueizTTRdGTp/e3zRlG02N6XwGiDjy3DKz3qVU9l3djh1QYHIVzHg6/gDgF14E/793TzNPI K2Z0UaE6VviR10S4l9eT+U275zRPdjXvnQyPORlfT66p/Ni+UmfRe8naQUAgWnXmTD2M=; 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 1o93JY-0004k7-Uj; Wed, 06 Jul 2022 13:35:31 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <861quywusu.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 06 Jul 2022 10:53:13 +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> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEU8LjurpJ+SamPy 8e3///9OwGRvAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YHBgsaFD0gELQAAAF4SURBVDjLhZON0ewg CEWRNCDYAJIGNPbf2wOMu+7f95jdGeMBgSsC/DJaC7VfZcmMqnW0J0BEKZVTNqBn3oMTJz6KR6ju QJSh0Oio+AKwCUIl7QexqgD/r6o0Nmt21HeQBMpXgAJ15abNMvxh4xgj9zLquKxWrV5rzQtYS2lc anKh7aN1cYNIfpG3zLKBBooGCoMBFZ0gOZAJ5ANAdeCy0tJ2AvSIMwC/Aq/q9D3/ywPIBF2nPUBm sKOaJxdE68ZB+SWJAQHqZEfZoKiPi+KMQK/aqwI0EB95RUxJEjqy3OFa5r6BVh0QlU7yls+mBESw LNeR4z6vN7fjAdRHCW265ulPUOlHxHkBCVcfBq9ri2BYy5L35IXeQfuIqC8RVsy9bPXXyGn0q0to 96ULyd5QDG08uHRNEKLLVKsE6DdwF4gB4u4q2HUGyNWBXy6Sae15xEFm9a7xrorYdVvJQ8r9LUaE 6rb5YZE0Xs/zokY/XKsW4yLfwXf7B+AAVYKTs451AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA3 LTA2VDExOjI2OjIwKzAwOjAwbK271QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNy0wNlQxMToy NjoyMCswMDowMB3wA2kAAAAASUVORK5CYII= X-Now-Playing: Latin Quarter's _Mick and Caroline_: "Donovan's Doorway" Date: Wed, 06 Jul 2022 13:35:28 +0200 Message-ID: <8735felbi7.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: >>> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) >>> ... >>> (declare (arg start (if (use-region-p) (region-beginning))) >>> (arg end (if [...] 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: >>> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) >>> ... >>> (declare (arg start (if (use-region-p) (region-beginning))) >>> (arg end (if (use-region-p) (region-end)))) [...] > Indeed, some users might want to have numbers for START and END values > to repeat the command exactly on the same previous region, but other users > might want to repeat the command on a newly selected region with > (region-beginning)/(region-end) in the command history. Have a look at fix_command -- it tries to parse code in an interactive spec to find instances of preserved_fns = pure_list (intern_c_string ("region-beginning"), intern_c_string ("region-end"), intern_c_string ("point"), intern_c_string ("mark")); in the code. (Which doesn't work now, of course, since the spec is byte-compiled.) My `declare' suggestion would just make this work again, and fix a regression. That is, this isn't new functionality. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 14:39:49 2022 Received: (at 45607) by debbugs.gnu.org; 6 Jul 2022 18:39:49 +0000 Received: from localhost ([127.0.0.1]:55159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o99wD-0000kI-Bd for submit@debbugs.gnu.org; Wed, 06 Jul 2022 14:39:49 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:37597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o99wA-0000k4-VX for 45607@debbugs.gnu.org; Wed, 06 Jul 2022 14:39:48 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id DAABD100002; Wed, 6 Jul 2022 18:39:38 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <8735felbi7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 06 Jul 2022 13:35:28 +0200") Organization: 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> Date: Wed, 06 Jul 2022 21:39:11 +0300 Message-ID: <864jzursq8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) >>>> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p) >>>> ... >>>> (declare (arg start (if (use-region-p) (region-beginning))) >>>> (arg end (if (use-region-p) (region-end)))) > > My `declare' suggestion would just make this work again, and fix > a regression. That is, this isn't new functionality. Does `declare' put some property on the command's symbol? Then if a user doesn't want this fix_command thing, it's easy to customize and remove a special property from the symbol of a command like `replace-string'. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 07 04:02:47 2022 Received: (at 45607) by debbugs.gnu.org; 7 Jul 2022 08:02:47 +0000 Received: from localhost ([127.0.0.1]:55679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9MTH-0002kN-2v for submit@debbugs.gnu.org; Thu, 07 Jul 2022 04:02:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9MTF-0002gj-8E for 45607@debbugs.gnu.org; Thu, 07 Jul 2022 04:02:45 -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=rz34mnEgOmSoeYOGIikmaNhI2rQUj5M8msHrLeudzpk=; b=qWbhr0/3eKzs4ZVge/45ByOxNx sl3CKNsH+bb08h7IMtrX7XoX8EhAg6u5lIDdQDSa3oMy6U8JVz4i4Qfv/ZPh0+jnkMxlfWPO5N9Cf MCihQkAdZaj7C4v2et3O5SPr+jxZKMqMti1ReoIO6nycPGhYI+kgJe4bibT+2sVhi9cs=; 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 1o9MT6-0005sa-GN; Thu, 07 Jul 2022 10:02:38 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <864jzursq8.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 06 Jul 2022 21:39:11 +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> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEX09Nb7++Le3sFj Y1SKiXUGBgK4uJ8tLSVHRjt/f23///+3Y8xXAAAAAWJLR0QKaND0VgAAAAd0SU1FB+YHBwcoAHss DrkAAAGvSURBVDjLdZRNT8JAEIZnkFSOu0B65kOCV4OaeKPCL6AMcFSM0SMayxk1Gn62M7Nttwvy HnbD+7DztW0BRAbBehlr0aoPXUR7IPVbyZGvAAcMsOqhLgZvkiCHZgGIujElYNdiXDyKO5l20QCc fwwpwdcF/8tkC15aRBsQQERJnxhAk+bGIhvvknrIYEQMAPsMoJ3lQE6w5gbrmawD/jELAPsChgrQ gzijCvAn0h86AGf7PZXi5CVg/ZwCgyqQ0DNjxK+1SrBwYAduuv3CTztazBYU4EV54M2N6ApkViCN 5dpAAViR90NQd97yCIBLPb8UYKoAXl0HvKX3Wu4OKmTeNC8cEALw4nqOeetAw4M8FLQPQJ8CwOXv quWmqIAf1nP61Ak28ua2Cu57vWfadqqAftvlBN4DQNd++iHwkhvsMUjdHL9pNWJNp9MHB1ZrBR8x bSovR6+xeqhlenuRTrdUfQwKrmpxCPgW3YnuwQmpzOWI+LHxpjQJRVXLr3+BxDMBcKGk8xKg2xTc xh4UXwYBvxDprQRgMhrd8vZ0N84j5Z8MyMfA73LRG8IJ2RM+2j+QnMAKWUIZ/wAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMi0wNy0wN1QwNzo0MDowMCswMDowMFihqZYAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjItMDctMDdUMDc6NDA6MDArMDA6MDAp/BEqAAAAAElFTkSuQmCC X-Now-Playing: Speaker Music's _Planet Mu 25_: "Techno is a Liberation Technology (ft. AceMo)" Date: Thu, 07 Jul 2022 10:02:35 +0200 Message-ID: <87zghlgxk4.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: > Does `declare' put some property on the command's symbol? > Then if a user doesn't want this fix_command thing, it's > easy to customize and remove a special property from the symbol > of a command [...] 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: > Does `declare' put some property on the command's symbol? > Then if a user doesn't want this fix_command thing, it's > easy to customize and remove a special property from the symbol > of a command like `replace-string'. `declare' forms can do basically anything, but, yes, in this case, I think a symbol property would make the most sense. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 08 09:53:43 2022 Received: (at 45607) by debbugs.gnu.org; 8 Aug 2022 13:53:43 +0000 Received: from localhost ([127.0.0.1]:39484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL3CQ-0006dW-O5 for submit@debbugs.gnu.org; Mon, 08 Aug 2022 09:53:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL3CO-0006dE-RC for 45607@debbugs.gnu.org; Mon, 08 Aug 2022 09:53:41 -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=dkqyiMbCrSbb9+H/FG2eYU3TXlaQ+ARE/RRdUQlkZzk=; b=Z01cE8Xg5Dz9h7vukXHd33jV+u dQQpZSZJrmNnAXLZ3iKzl7JY+tjC5x7tBjzxX0ViPA3I8a9+fcPPZ/gbr9Hzk5zce12omckopsSPt WMRHY4ruN9RPpqvbbcprc0gB809y/h1k7FX+x5Q4hOEUR4xAhZZWRaQ+Va03WNWxyzsI=; 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 1oL3CF-00016a-Eq; Mon, 08 Aug 2022 15:53:33 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87zghlgxk4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 07 Jul 2022 10:02:35 +0200") 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> X-Now-Playing: Drew McDowall's _Agalma_: "Agalma V (ft. Kali Malone)" Date: Mon, 08 Aug 2022 15:53:30 +0200 Message-ID: <87bksuzvs5.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: Lars Ingebrigtsen writes: > `declare' forms can do basically anything, but, yes, in this case, I > think a symbol property would make the most sense. I've now fixed the replace-string problem in Emacs 29. 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 (---) Lars Ingebrigtsen writes: > `declare' forms can do basically anything, but, yes, in this case, I > think a symbol property would make the most sense. I've now fixed the replace-string problem in Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 08 09:53:49 2022 Received: (at control) by debbugs.gnu.org; 8 Aug 2022 13:53:49 +0000 Received: from localhost ([127.0.0.1]:39487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL3CX-0006do-0x for submit@debbugs.gnu.org; Mon, 08 Aug 2022 09:53:49 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL3CV-0006dV-IL for control@debbugs.gnu.org; Mon, 08 Aug 2022 09:53:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oxmWMfyroFl981KlBXHIrtiX05kd5+mTe6X7Dj1CX0g=; b=QnbZGa2uYysfFGmmjbVAmdcYay oWCRQt9dFkyjfWjR9b4SPh+TZHXbsAUQQRu6PDAUv71ui+q6x1FPDyuPeWPJTrAIcJZyf5ctzxHQ1 n5r/Gmi/KHU/mdYtO12fC5Egmczpq2bRsj6VWvqxMtvyiyitAaabOBQ9dyvQ45XPi/tI=; 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 1oL3CN-00016o-Lx for control@debbugs.gnu.org; Mon, 08 Aug 2022 15:53:41 +0200 Date: Mon, 08 Aug 2022 15:53:38 +0200 Message-Id: <87a68ezvrx.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45607 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: close 45607 29.1 quit 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: control 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 (---) close 45607 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 08 13:23:42 2022 Received: (at 45607) by debbugs.gnu.org; 8 Aug 2022 17:23:42 +0000 Received: from localhost ([127.0.0.1]:41847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL6Te-00008o-3x for submit@debbugs.gnu.org; Mon, 08 Aug 2022 13:23:42 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL6Tb-00008Y-9K for 45607@debbugs.gnu.org; Mon, 08 Aug 2022 13:23:40 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 5CA5CE0007; Mon, 8 Aug 2022 17:23:31 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87bksuzvs5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 08 Aug 2022 15:53:30 +0200") Organization: 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> Date: Mon, 08 Aug 2022 20:07:31 +0300 Message-ID: <86iln264vg.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) >> `declare' forms can do basically anything, but, yes, in this case, I >> think a symbol property would make the most sense. > > I've now fixed the replace-string problem in Emacs 29. Should the same interactive-args now be added to other replacement commands? 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 14:44:33 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 18:44:34 +0000 Received: from localhost ([127.0.0.1]:44980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUDR-00016l-MT for submit@debbugs.gnu.org; Tue, 09 Aug 2022 14:44:33 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUDP-00016W-3p for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 14:44:31 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 4A91F40005; Tue, 9 Aug 2022 18:44:22 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <871qtpzck5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 09 Aug 2022 17:00:58 +0200") Organization: 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> Date: Tue, 09 Aug 2022 21:41:24 +0300 Message-ID: <868rnxqmy3.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) > 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. Indeed, this will help to make the history items shorter: (replace-string "a" "b" nil (if (use-region-p) (region-beginning)) (if (use-region-p) (region-end))) -> (replace-string "a" "b" nil (use-region-beginning) (use-region-end)) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 14:48:39 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 18:48:39 +0000 Received: from localhost ([127.0.0.1]:44994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUHP-0003NO-9Y for submit@debbugs.gnu.org; Tue, 09 Aug 2022 14:48:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUHL-0003NA-Kr for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 14:48:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLUHF-0001R5-Nz; Tue, 09 Aug 2022 14:48:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6qQNu/0txv7opYVcgoDNTvJuos41FGfQSJ6qc5aNt7k=; b=GWaMONlo2uXw 2XN8wD+z41xN8JdDZRc+8KY1mtGDiXeZlAanY+ZKDh1VfYghLB2QKfKqPdbKk0e5OFP6PXL+vYEIr 0wQY/vZohQPP9ASOOnFxYDUrRDAVQYnlFqeh6JPM9VFQlMElD8tbzxwMgr316SzpMS0uVQcQXJaSn Rf+MmP7T+armyIaOpnDSlqlujF6zFi6kgs3oLHYAtcYoBMN6pCLZ3nJ4Vm7AGR/FpkjX5bxH0fhd5 SiUTZG59Ngf2X27NJyERUF4ruoawG+hW13sOYTh8zhSSaPPee753uc8fAitLk7hAxTjsn2Hh8AEo9 h/4ZfebkOEKv8Sr6qx417g==; Received: from [87.69.77.57] (port=1659 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLUHF-0006SG-7i; Tue, 09 Aug 2022 14:48:29 -0400 Date: Tue, 09 Aug 2022 21:48:18 +0300 Message-Id: <83wnbhs171.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <868rnxqmy3.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 09 Aug 2022 21:41:24 +0300) Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45607 Cc: michael_heerdegen@web.de, larsi@gnus.org, 45607@debbugs.gnu.org, darkfeline@felesatra.moe 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 (---) > Cc: Michael Heerdegen , 45607@debbugs.gnu.org, > Allen Li > From: Juri Linkov > Date: Tue, 09 Aug 2022 21:41:24 +0300 > > > 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. > > Indeed, this will help to make the history items shorter: > > (replace-string "a" "b" nil (if (use-region-p) (region-beginning)) (if (use-region-p) (region-end))) > -> > (replace-string "a" "b" nil (use-region-beginning) (use-region-end)) Bonus points for calling use-region-p just once, not twice. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 15:14:31 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 19:14:31 +0000 Received: from localhost ([127.0.0.1]:45070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUgR-0006Dc-8Y for submit@debbugs.gnu.org; Tue, 09 Aug 2022 15:14:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUgQ-0006DN-21 for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 15:14:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: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=Nb+eGSUCmftXlNFjqGmscgBKFKYMA0WNnvEY5qdFsTM=; b=Wl0+8fZ2/aQlIWYZL0ZK7Sol12 0t75hN6agBKK7PQ3eQUITzE5WWrb17RjA0Vi98U5rtkBAGbnx6DblhsHcYolBSMxY0/jPgHRxrDwE x7i0G7p6SwmaItCnXQhPVR9zFFVzGBTNjKPiyUkmIEqA5WHk181rmysXFzwG0TQK28nM=; 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 1oLUgG-0006up-IL; Tue, 09 Aug 2022 21:14:22 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <868rnxqmy3.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 09 Aug 2022 21:41:24 +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> <871qtpzck5.fsf@gnus.org> <868rnxqmy3.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWajlz8/PzZ2M/C uaBAQSr///9ospQpAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YICRMHIsXwnH4AAAGrSURBVDjLdZIL koMgEER7ZQ6wshdI8AIoHGBqnfufaXsQ0aSyVMWMPrrnA/iaPy88/wNp+4yQn3NM6QP4neNSPqgw zZEKB/E9eSxNEZfnG5jn9iWWcCMPeOo1cXfMCON7rBjxggGecc5Xgw8z7ZHKdOv826wnqcYQ6wky FQcQE7NLwZedWfleuMewnHVIyxHXuLYYpUsW7tJ1XtKDTwfd14syLcu2QL6+3Up78T8OUp4IptqA TmdRpkvh2mAO+JvSUZTpJmwf0oDyHZyuy/eEUlLpQFRMw1bBZ9ZEcgBrfzu4FEU5yk3OHGa0hkAU nv4FtNh7ryL7DZi2mMnY4VBoB0eBrPdSZL1k57qscCRSeQH8EGjCLvcBToO9KiTcFCdQEWQWVt+t oNVr8hG6HcxOrZsAue8eCo7Lh3nUxj0XYA7jtNB0dL43pZwV/Fblu9Xh0M5PVL1cGbUz2jX7AXQF A4+zMgWvidaXPsxqmApCzs1jgN1dFdkHwDs1AMtr10a4AcW39LYnpkFV77OELGEAP72WVN2r7C8N jhPUgg7a8BVnP35rGtBx6APZH0vtuUMFU9m/AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTA5 VDE5OjA3OjM0KzAwOjAwdJBvPgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0wOVQxOTowNzoz NCswMDowMAXN14IAAAAASUVORK5CYII= X-Now-Playing: Hood's _Outside Closer_: "End Of One Train Working" Date: Tue, 09 Aug 2022 21:14:20 +0200 Message-ID: <87r11ptek3.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: > Indeed, this will help to make the history items shorter: > > (replace-string "a" "b" nil (if (use-region-p) (region-beginning)) > (if (use-region-p) (region-end))) > -> > (replace-string "a" "b" ni [...] 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: > Indeed, this will help to make the history items shorter: > > (replace-string "a" "b" nil (if (use-region-p) (region-beginning)) > (if (use-region-p) (region-end))) > -> > (replace-string "a" "b" nil (use-region-beginning) (use-region-end)) OK, so I've now done this. So somebody=E2=84=A2 should go through the code= base and adjust the code and add the new `declare' forms. =F0=9F=98=80 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 15:16:10 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 19:16:10 +0000 Received: from localhost ([127.0.0.1]:45074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUi1-0006Gj-NE for submit@debbugs.gnu.org; Tue, 09 Aug 2022 15:16:10 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUhs-0006Fx-Lz for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 15:16:08 -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=blUDDkZ4tZzsLoxTVyj4GNPAvLoj2JBo2iulIXXipwY=; b=rKblr9rEB11pOHnYi68H/VOKCi jhZ9esJ97Q3xzTXOVljpqlEKs7jPFsdKpxXEAj671y4KjkRuUV8aW+BWKzhjd/E+yOSztLUAALW+i 16OjklsM/jOlvET8RT7BaqH8Fe0FuWsMAYmH48K3Dh6l4uLzlDSulc2linLlq+q7li+s=; 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 1oLUhj-0006vM-On; Tue, 09 Aug 2022 21:15:53 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <83wnbhs171.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Aug 2022 21:48:18 +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> <871qtpzck5.fsf@gnus.org> <868rnxqmy3.fsf@mail.linkov.net> <83wnbhs171.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWajlz8/PzZ2M/C uaBAQSr///9ospQpAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YICRMHIsXwnH4AAAGrSURBVDjLdZIL koMgEER7ZQ6wshdI8AIoHGBqnfufaXsQ0aSyVMWMPrrnA/iaPy88/wNp+4yQn3NM6QP4neNSPqgw zZEKB/E9eSxNEZfnG5jn9iWWcCMPeOo1cXfMCON7rBjxggGecc5Xgw8z7ZHKdOv826wnqcYQ6wky FQcQE7NLwZedWfleuMewnHVIyxHXuLYYpUsW7tJ1XtKDTwfd14syLcu2QL6+3Up78T8OUp4IptqA TmdRpkvh2mAO+JvSUZTpJmwf0oDyHZyuy/eEUlLpQFRMw1bBZ9ZEcgBrfzu4FEU5yk3OHGa0hkAU nv4FtNh7ryL7DZi2mMnY4VBoB0eBrPdSZL1k57qscCRSeQH8EGjCLvcBToO9KiTcFCdQEWQWVt+t oNVr8hG6HcxOrZsAue8eCo7Lh3nUxj0XYA7jtNB0dL43pZwV/Fblu9Xh0M5PVL1cGbUz2jX7AXQF A4+zMgWvidaXPsxqmApCzs1jgN1dFdkHwDs1AMtr10a4AcW39LYnpkFV77OELGEAP72WVN2r7C8N jhPUgg7a8BVnP35rGtBx6APZH0vtuUMFU9m/AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTA5 VDE5OjA3OjM0KzAwOjAwdJBvPgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0wOVQxOTowNzoz NCswMDowMAXN14IAAAAASUVORK5CYII= X-Now-Playing: Hood's _Outside Closer_: "End Of One Train Working" Date: Tue, 09 Aug 2022 21:15:51 +0200 Message-ID: <87mtcdtehk.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: Eli Zaretskii writes: > Bonus points for calling use-region-p just once, not twice. I don't really see a convenient way to do that in these cases -- the only ones I could think of (adding a new function to return both start/end, and then splice the results in into the `interactive' s [...] 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@web.de, darkfeline@felesatra.moe, 45607@debbugs.gnu.org, Juri Linkov 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 (---) Eli Zaretskii writes: > Bonus points for calling use-region-p just once, not twice. I don't really see a convenient way to do that in these cases -- the only ones I could think of (adding a new function to return both start/end, and then splice the results in into the `interactive' specs etc) would lead to obfuscated code. (And it's not like this is performance critical anyway.) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 15:26:12 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 19:26:13 +0000 Received: from localhost ([127.0.0.1]:45101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUrk-0006YB-K3 for submit@debbugs.gnu.org; Tue, 09 Aug 2022 15:26:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUri-0006Xy-OX for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 15:26:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLUrX-0007sp-Ut; Tue, 09 Aug 2022 15:26:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MKgUi72mxn9+q06tVH1wfwIdEZA/fhlFYJvJrAqb/F4=; b=Gf9FfpKH6eG/ aad3mKhwDewCkKL/J/4RS6A2IoA96UvMn9nMJr/Kx9vvwaG2JD6gSbmYVPf9fgM83AW76n6TvHlgg +CFNJtKrwUZzqH7TDIJHCxVccmriVNbAsP6UJwmzJBlCXIBnJUmlGGr/zfOBpQVY1cUEYwA0HSXLe NV44UAfy3HjFO3uRVq+XCul9h7xegAch0fuQJQ/Cnh60nVwIByG6zC5+mgIXrtoaGzRtENuYz8lrh imOiGIdJPjiIm4eARMHL4SxH+XgY8+Jcd3Nj+YMwfFlYMa2wRe+yd/LUNJtp0KdG1BDk1XapNf1va O6OrF0xA+rM8XOV02fC0Dw==; Received: from [87.69.77.57] (port=3982 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLUrS-0006DQ-8y; Tue, 09 Aug 2022 15:25:57 -0400 Date: Tue, 09 Aug 2022 22:25:44 +0300 Message-Id: <83pmh9rzgn.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87mtcdtehk.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 09 Aug 2022 21:15:51 +0200) Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command 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> <83wnbhs171.fsf@gnu.org> <87mtcdtehk.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45607 Cc: michael_heerdegen@web.de, darkfeline@felesatra.moe, 45607@debbugs.gnu.org, juri@linkov.net 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 (---) > From: Lars Ingebrigtsen > Cc: Juri Linkov , michael_heerdegen@web.de, > 45607@debbugs.gnu.org, darkfeline@felesatra.moe > Date: Tue, 09 Aug 2022 21:15:51 +0200 > > Eli Zaretskii writes: > > > Bonus points for calling use-region-p just once, not twice. > > I don't really see a convenient way to do that in these cases -- the > only ones I could think of (adding a new function to return both > start/end, and then splice the results in into the `interactive' specs > etc) would lead to obfuscated code. What about cl-destructuring-bind and its ilk? > (And it's not like this is performance critical anyway.) It's IMO inelegant to make the same test twice in a row. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 15:30:14 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 19:30:14 +0000 Received: from localhost ([127.0.0.1]:45110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUvd-0007It-Jw for submit@debbugs.gnu.org; Tue, 09 Aug 2022 15:30:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUvc-0006vN-2I for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 15:30:12 -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=LWwsUSrYB6wGTqADsYFouKbQBuPcVkyl+i3Lfiiv40Q=; b=M1zng7MczPbafHFPCF7G+Ta2RN dePyT+0oZrfYKqzBgtoRtlL1VuGRl4opWCsW8mhYprfBvyaiUKl69UkgR4VmbGiy0PbyDiO5skgYs n4yX5YgCg92AwN3ICHupEVou+9kGmm7ovdYJ5ei1Y/mgiUBxHmSli+3huYQxxUg+lGso=; 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 1oLUvT-00076V-EK; Tue, 09 Aug 2022 21:30:05 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <83pmh9rzgn.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Aug 2022 22:25:44 +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> <871qtpzck5.fsf@gnus.org> <868rnxqmy3.fsf@mail.linkov.net> <83wnbhs171.fsf@gnu.org> <87mtcdtehk.fsf@gnus.org> <83pmh9rzgn.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWajlz8/PzZ2M/C uaBAQSr///9ospQpAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YICRMHIsXwnH4AAAGrSURBVDjLdZIL koMgEER7ZQ6wshdI8AIoHGBqnfufaXsQ0aSyVMWMPrrnA/iaPy88/wNp+4yQn3NM6QP4neNSPqgw zZEKB/E9eSxNEZfnG5jn9iWWcCMPeOo1cXfMCON7rBjxggGecc5Xgw8z7ZHKdOv826wnqcYQ6wky FQcQE7NLwZedWfleuMewnHVIyxHXuLYYpUsW7tJ1XtKDTwfd14syLcu2QL6+3Up78T8OUp4IptqA TmdRpkvh2mAO+JvSUZTpJmwf0oDyHZyuy/eEUlLpQFRMw1bBZ9ZEcgBrfzu4FEU5yk3OHGa0hkAU nv4FtNh7ryL7DZi2mMnY4VBoB0eBrPdSZL1k57qscCRSeQH8EGjCLvcBToO9KiTcFCdQEWQWVt+t oNVr8hG6HcxOrZsAue8eCo7Lh3nUxj0XYA7jtNB0dL43pZwV/Fblu9Xh0M5PVL1cGbUz2jX7AXQF A4+zMgWvidaXPsxqmApCzs1jgN1dFdkHwDs1AMtr10a4AcW39LYnpkFV77OELGEAP72WVN2r7C8N jhPUgg7a8BVnP35rGtBx6APZH0vtuUMFU9m/AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA4LTA5 VDE5OjA3OjM0KzAwOjAwdJBvPgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOC0wOVQxOTowNzoz NCswMDowMAXN14IAAAAASUVORK5CYII= X-Now-Playing: Hood's _Outside Closer_: "Still Rain Fell" Date: Tue, 09 Aug 2022 21:30:01 +0200 Message-ID: <87edxptdty.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: Eli Zaretskii writes: > What about cl-destructuring-bind and its ilk? That'd possible, of course, but awkward. 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@web.de, darkfeline@felesatra.moe, 45607@debbugs.gnu.org, juri@linkov.net 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 (---) Eli Zaretskii writes: > What about cl-destructuring-bind and its ilk? That'd possible, of course, but awkward. >> (And it's not like this is performance critical anyway.) > > It's IMO inelegant to make the same test twice in a row. Yup. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 15:34:20 2022 Received: (at 45607) by debbugs.gnu.org; 9 Aug 2022 19:34:20 +0000 Received: from localhost ([127.0.0.1]:45114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUzc-0000TU-BF for submit@debbugs.gnu.org; Tue, 09 Aug 2022 15:34:20 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUzX-0000TE-Lg for 45607@debbugs.gnu.org; Tue, 09 Aug 2022 15:34:18 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 74DA8E0007; Tue, 9 Aug 2022 19:34:07 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87r11ptek3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 09 Aug 2022 21:14:20 +0200") Organization: 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> Date: Tue, 09 Aug 2022 22:30:54 +0300 Message-ID: <86tu6lnrip.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) 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: -1.7 (-) >> (replace-string "a" "b" nil (if (use-region-p) (region-beginning)) >> (if (use-region-p) (region-end))) >> -> >> (replace-string "a" "b" nil (use-region-beginning) (use-region-end)) > > OK, so I've now done this. So somebody™ should go through the code base > and adjust the code and add the new `declare' forms. 😀 Interesting, there are not too many uses of this pattern, and most of them are related to replacement commands. Ok, I could replace them with adding interactive-args. lisp/isearch.el 2392: (if (use-region-p) (region-beginning)) 2393: (if (use-region-p) (region-end)) lisp/replace.el 464: (if (use-region-p) (region-beginning)) 465: (if (use-region-p) (region-end)) 558: (if (use-region-p) (region-beginning)) 559: (if (use-region-p) (region-end)) 606: (if (use-region-p) (region-beginning)) 607: (if (use-region-p) (region-end)) 761: (if (use-region-p) (region-beginning)) 762: (if (use-region-p) (region-end)) lisp/textmodes/paragraphs.el 518: (if (use-region-p) (region-beginning)) 519: (if (use-region-p) (region-end)))) lisp/vc/log-view.el 581: (list (if (use-region-p) (region-beginning) (point)) 582: (if (use-region-p) (region-end) (point)))) 596: (list (if (use-region-p) (region-beginning) (point)) 597: (if (use-region-p) (region-end) (point)))) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 12 09:01:59 2022 Received: (at 45607) by debbugs.gnu.org; 12 Aug 2022 13:01:59 +0000 Received: from localhost ([127.0.0.1]:55893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMUIZ-00062y-F6 for submit@debbugs.gnu.org; Fri, 12 Aug 2022 09:01:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMUIX-00062k-Ik for 45607@debbugs.gnu.org; Fri, 12 Aug 2022 09:01:58 -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=Eh1df1ElCLS9IccWu75yIS+eKolU49nXWEEY6aUNrH4=; b=cFnH2ozEPrQAi/+kTh+sOQ1w3A wjqoSzFzU1wZeLgu4/IYXqfoyq0CTOoW3noEMKSm9z16gOCwlLBPuN1H8yFFILWZwNmx41i5U5Emz WVa7UJ6dCRCaBeJXv4rtfSEEBkD3isBv13NpKeu6Xfp9SoUKZlHRXFAvN9yNQka12OKY=; 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 1oMUIO-00057d-Fa; Fri, 12 Aug 2022 15:01:50 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <86tu6lnrip.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 09 Aug 2022 22:30:54 +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> <871qtpzck5.fsf@gnus.org> <868rnxqmy3.fsf@mail.linkov.net> <87r11ptek3.fsf@gnus.org> <86tu6lnrip.fsf@mail.linkov.net> X-Now-Playing: Two Nice Girls's _Chloe Liked Olivia_: "For the Inauguration" Date: Fri, 12 Aug 2022 15:01:47 +0200 Message-ID: <87h72hr4xw.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: > Interesting, there are not too many uses of this pattern, > and most of them are related to replacement commands. > Ok, I could replace them with adding interactive-args. > > lisp/isearch.el > 2392: [...] 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: > Interesting, there are not too many uses of this pattern, > and most of them are related to replacement commands. > Ok, I could replace them with adding interactive-args. > > lisp/isearch.el > 2392: (if (use-region-p) (region-beginning)) > 2393: (if (use-region-p) (region-end)) > lisp/replace.el > 464: (if (use-region-p) (region-beginning)) > 465: (if (use-region-p) (region-end)) > 558: (if (use-region-p) (region-beginning)) > 559: (if (use-region-p) (region-end)) > 606: (if (use-region-p) (region-beginning)) > 607: (if (use-region-p) (region-end)) > 761: (if (use-region-p) (region-beginning)) > 762: (if (use-region-p) (region-end)) > lisp/textmodes/paragraphs.el > 518: (if (use-region-p) (region-beginning)) > 519: (if (use-region-p) (region-end)))) > lisp/vc/log-view.el > 581: (list (if (use-region-p) (region-beginning) (point)) > 582: (if (use-region-p) (region-end) (point)))) > 596: (list (if (use-region-p) (region-beginning) (point)) > 597: (if (use-region-p) (region-end) (point)))) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 12 13:43:07 2022 Received: (at 45607) by debbugs.gnu.org; 12 Aug 2022 17:43:07 +0000 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 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 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 18EBB240002; Fri, 12 Aug 2022 17:42:52 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87h72hr4xw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 12 Aug 2022 15:01:47 +0200") Organization: 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> Date: Fri, 12 Aug 2022 20:39:32 +0300 Message-ID: <86o7wpjr8r.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) >> 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)) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 13 07:46:50 2022 Received: (at 45607) by debbugs.gnu.org; 13 Aug 2022 11:46:50 +0000 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 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=; 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 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <86o7wpjr8r.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 12 Aug 2022 20:39:32 +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> <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> 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" Date: Sat, 13 Aug 2022 13:46:39 +0200 Message-ID: <87tu6gjrhc.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: > 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: 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: > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 13 16:08:39 2022 Received: (at 45607) by debbugs.gnu.org; 13 Aug 2022 20:08:39 +0000 Received: from localhost ([127.0.0.1]:35203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMxR1-0004pc-4I for submit@debbugs.gnu.org; Sat, 13 Aug 2022 16:08:39 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:34329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMxQz-0004pN-CX for 45607@debbugs.gnu.org; Sat, 13 Aug 2022 16:08:38 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 540CD200002; Sat, 13 Aug 2022 20:08:29 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <87tu6gjrhc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 13 Aug 2022 13:46:39 +0200") Organization: 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> <86o7wpjr8r.fsf@mail.linkov.net> <87tu6gjrhc.fsf@gnus.org> Date: Sat, 13 Aug 2022 22:30:50 +0300 Message-ID: <86bksn53dx.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) >> 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. But still `use-region-p' is used to start a new logical branch of `cond'. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 15 02:37:13 2022 Received: (at 45607) by debbugs.gnu.org; 15 Aug 2022 06:37:14 +0000 Received: from localhost ([127.0.0.1]:40429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNTir-0000DC-Mt for submit@debbugs.gnu.org; Mon, 15 Aug 2022 02:37:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNTip-0000Cs-Id for 45607@debbugs.gnu.org; Mon, 15 Aug 2022 02:37:12 -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=0Y4fHoMKGLtD2KZqT1GtA3D/lI6BO/ker+r/Kc9GIbw=; b=aJss6G0XghdOGP7q2mh5oTcUBn lHm4358EDKC/nqyLSvzJ75xaP+qS0wigYanPwpXKz6j+8gmUB0utjEFHwDh+LdQtNnPoNuL5WMDiV IZb8p4YvRzAUMWs+GgAX4wSARqVRRFPkIKC3Y9qVMksWYr5XsUM9J0Ut1tlIZ5Uqgyag=; 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 1oNTig-0004Uh-Tb; Mon, 15 Aug 2022 08:37:05 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <86bksn53dx.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 13 Aug 2022 22:30:50 +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> <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> <87tu6gjrhc.fsf@gnus.org> <86bksn53dx.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEW6ub0TExZaWl// ///b7+IJAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YIDwYdNL6P7bMAAAHBSURBVCjPLZFBi9swFIQn Bpe174Ylp7CgkuRXJLklJ2M8QvZJNZsl9q9wDIF1T70obHNyCgrJ/so+byuQ4NPTG0kzAO3VMPPJ MY8ArqKUafgW6VBgo4yASRghqFfuPwQIm1VyYBZq5eYIh059CHDiY7BU/Bo/SDB3ZCqzHKGSXStV 7QjfyypSZFijD7V3r0lNbrd4d/q7w6QomNWQloztRM7mCbajaNfTUSuIjuK7YkGu4Zo86SvvS+7/ gAfro1I9zPnzLpfWPLI+8uZLyGUi11TcsgB1Un742IY1azBlc5sFbaDdA6cqX97aEdQOfW+WEAD7 DreFmeFFKqweMIV5xqxrJ/IPeaiZtnPVXse3nQpzGWI3XLXvoXZWD9/us/j1kcHtMt6jdojPysAV jcDh12JPDceYh8A8L8QFOH0RmE1/j75FWckmsNNSJ1v87ATQCoQbqEp+A1ykUiHRlRNw9djj2PIw wpcaNzQCxX5MoVwlVpL9PLscizerLF7cp+aAcJ/GA2L3oBiypp2n/8AjpX3KReAxpqCdXSpxoJdQ 4b19CiXRiHWN/TqdT6R5wtMezOw8kEAjiUu8Hubifhdp8i8Ngbq/aYpF5AAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMi0wOC0xNVQwNjoyOTo1MSswMDowMDyZ7KQAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjItMDgtMTVUMDY6Mjk6NTErMDA6MDBNxFQYAAAAAElFTkSuQmCC X-Now-Playing: Prince's _Dirty Mind_: "Uptown" Date: Mon, 15 Aug 2022 08:37:02 +0200 Message-ID: <87y1vqc8s1.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: > But still `use-region-p' is used to start a new logical branch of `cond'. The suggestion was to put that logic into the interactive spec and bind to new parameters beg/end (like other commands do). The `cond' would then be adjusted to react to beg/end. 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: > But still `use-region-p' is used to start a new logical branch of `cond'. The suggestion was to put that logic into the interactive spec and bind to new parameters beg/end (like other commands do). The `cond' would then be adjusted to react to beg/end. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 04 12:57:57 2022 Received: (at 45607) by debbugs.gnu.org; 4 Sep 2022 16:57:57 +0000 Received: from localhost ([127.0.0.1]:45555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUswX-0006PV-KQ for submit@debbugs.gnu.org; Sun, 04 Sep 2022 12:57:57 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:65449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUswW-0006PG-Gk for 45607@debbugs.gnu.org; Sun, 04 Sep 2022 12:57:57 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id A97D240002; Sun, 4 Sep 2022 16:57:48 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command In-Reply-To: <86tu6lnrip.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 09 Aug 2022 22:30:54 +0300") Organization: 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> Date: Sun, 04 Sep 2022 19:57:01 +0300 Message-ID: <86sfl7dqn6.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) 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: -1.7 (-) >>> (replace-string "a" "b" nil (if (use-region-p) (region-beginning)) >>> (if (use-region-p) (region-end))) >>> -> >>> (replace-string "a" "b" nil (use-region-beginning) (use-region-end)) >> >> OK, so I've now done this. So somebody™ should go through the code base >> and adjust the code and add the new `declare' forms. 😀 > > Interesting, there are not too many uses of this pattern, > and most of them are related to replacement commands. > Ok, I could replace them with adding interactive-args. Done, with adding also 'use-region-noncontiguous-p'. From unknown Tue Jun 17 20:30:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Oct 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator