From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Date: Wed, 06 Jul 2022 21:39:11 +0300 Organization: LINKOV.NET Message-ID: <864jzursq8.fsf@mail.linkov.net> References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <87y1y79x82.fsf@gnus.org> <87v8t9y8hi.fsf@gnus.org> <87r13xy8c3.fsf@gnus.org> <871quzaagc.fsf@web.de> <861quywusu.fsf@mail.linkov.net> <8735felbi7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3026"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 45607@debbugs.gnu.org, Allen Li To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 06 20:41:14 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o99xa-0000gN-7U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 20:41:14 +0200 Original-Received: from localhost ([::1]:43978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o99xV-00051k-QI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 14:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o99wQ-00050q-JF for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 14:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o99wQ-0000UF-91 for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 14:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o99wQ-0000kq-5k for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 14:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2022 18:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 45607-submit@debbugs.gnu.org id=B45607.16571327892874 (code B ref 45607); Wed, 06 Jul 2022 18:40:02 +0000 Original-Received: (at 45607) by debbugs.gnu.org; 6 Jul 2022 18:39:49 +0000 Original-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 Original-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 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id DAABD100002; Wed, 6 Jul 2022 18:39:38 +0000 (UTC) In-Reply-To: <8735felbi7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 06 Jul 2022 13:35:28 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236289 Archived-At: >>>> (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'.