From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command Date: Wed, 06 Jul 2022 13:35:28 +0200 Message-ID: <8735felbi7.fsf@gnus.org> References: <80o8i7676p.fsf@felesatra.moe> <87czfkir6n.fsf@gnus.org> <86r1402un1.fsf@mail.linkov.net> <87y1y79x82.fsf@gnus.org> <87v8t9y8hi.fsf@gnus.org> <87r13xy8c3.fsf@gnus.org> <871quzaagc.fsf@web.de> <861quywusu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7336"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , 45607@debbugs.gnu.org, Allen Li To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 06 13:43:44 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 1o93RY-0001hI-AW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 13:43:44 +0200 Original-Received: from localhost ([::1]:41884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o93RW-00024O-SC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jul 2022 07:43:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o93K6-0006oL-Mt for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 07:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o93K6-0002Kg-Dm for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o93K6-00059D-AG for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2022 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2022 11:36: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.165710733919755 (code B ref 45607); Wed, 06 Jul 2022 11:36:02 +0000 Original-Received: (at 45607) by debbugs.gnu.org; 6 Jul 2022 11:35:39 +0000 Original-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 Original-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=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o93JY-0004k7-Uj; Wed, 06 Jul 2022 13:35:31 +0200 In-Reply-To: <861quywusu.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 06 Jul 2022 10:53:13 +0300") 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" 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:236220 Archived-At: 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