From unknown Sat Sep 06 21:08:20 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#734 <734@debbugs.gnu.org> To: bug#734 <734@debbugs.gnu.org> Subject: Status: 23.0.60; Interactively use a list argument to replace-string + missing documentation Reply-To: bug#734 <734@debbugs.gnu.org> Date: Sun, 07 Sep 2025 04:08:20 +0000 retitle 734 23.0.60; Interactively use a list argument to replace-string + = missing documentation reassign 734 emacs submitter 734 Nikos Apostolakis severity 734 wishlist thanks From nikos.ap@gmail.com Sat Aug 16 16:35:43 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Aug 2008 23:35:43 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7GNZefK025176 for ; Sat, 16 Aug 2008 16:35:41 -0700 Received: from mail.gnu.org ([199.232.76.166]:51220 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KUVHs-000189-2a for emacs-pretest-bug@gnu.org; Sat, 16 Aug 2008 19:34:24 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KUVJ2-0005KU-52 for emacs-pretest-bug@gnu.org; Sat, 16 Aug 2008 19:35:39 -0400 Received: from wx-out-0506.google.com ([66.249.82.233]:64405) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUVJ1-0005KK-Sz for emacs-pretest-bug@gnu.org; Sat, 16 Aug 2008 19:35:35 -0400 Received: by wx-out-0506.google.com with SMTP id h28so675373wxd.24 for ; Sat, 16 Aug 2008 16:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:mime-version:content-type; bh=REN1UlQcDxOwTEYaptye91C93TVJAPh1OIzO1cB4PK8=; b=p73kEZUgDxZydOmXaA1YPcR0oIe5T2DmxXbTdky3auFFL17PKDc4KiMI3s33O0/MC0 3p7Kgfs7K4eZXIk5z4F/eYzgYx/QSA4DoyUcO2sxOo9L+fGmThJZAan0wX3lKeYC6Qwa 7KTn6e0TVVXXjIEBEAv8p1SGkEBjD1dpqF42Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:mime-version:content-type; b=aj4KEHkns1BHmS+i/dOdanUaVNGYjll0WFmcwrhXVU9qlSaw/JT25siK0kexQgnrZu yKI6gzm7JnB+8AGbk4ONwsSF+y4EJWug418vy7fSS5UqiVECp9rtxBk5WKKmLg0rvG63 rDK8jM+D8a2LjzYXsB/5v3lXCUlUt0dRvGTFM= Received: by 10.70.26.8 with SMTP id 8mr5283128wxz.13.1218929734465; Sat, 16 Aug 2008 16:35:34 -0700 (PDT) Received: from knotter.earthlink.net ( [68.161.107.145]) by mx.google.com with ESMTPS id 8sm5034606hsp.4.2008.08.16.16.35.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Aug 2008 16:35:33 -0700 (PDT) From: Nikos Apostolakis To: emacs-pretest-bug@gnu.org Cc: rfrancoise@debian.org Subject: 23.0.60; Interactively use a list argument to replace-string + missing documentation Date: Sat, 16 Aug 2008 19:37:06 -0400 Message-ID: <87skt45y71.fsf@knotter.earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) I learned from a post in gnu.emacs.help that the second argument to replace-string can be a list of strings. In this case the elements of the list are used in cyclic order. It appears that this feature can't be used when the function is used interactively. I think this can be a very useful feature and should probably be accessible interactively. Also this behavior is not documented in the doc string or the info page of replace-string -- although it is documented in the info page for perform-replace function. Thanks, Nikos From cyd@stupidchicken.com Thu Aug 28 12:50:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 734) by emacsbugs.donarmstrong.com; 28 Aug 2008 19:50:20 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SJoGUE024178 for <734@emacsbugs.donarmstrong.com>; Thu, 28 Aug 2008 12:50:18 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 2DE7657E186; Thu, 28 Aug 2008 15:52:12 -0400 (EDT) To: Nikos Apostolakis Cc: 734@debbugs.gnu.org Subject: 23.0.60; Interactively use a list argument to replace-string + missing documentation From: Chong Yidong Date: Thu, 28 Aug 2008 15:52:12 -0400 Message-ID: <87fxoo534j.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii One of the reason we don't document the fact that the second argument to replace-string can be a list of strings is that currently this can only be used programmatically. As noted in its docstring, replace-string is seldom the right thing to use in a Lisp program. As for providing a way to use this feature interactively, that might be feasible in the future. From cyd@stupidchicken.com Thu Aug 28 12:50:37 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.7 required=4.0 tests=AWL,BAYES_00, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 28 Aug 2008 19:50:37 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SJoZEB024451 for ; Thu, 28 Aug 2008 12:50:36 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 56AE557E186; Thu, 28 Aug 2008 15:52:30 -0400 (EDT) To: control@debbugs.gnu.org Subject: severity 734 wishlist From: Chong Yidong Date: Thu, 28 Aug 2008 15:52:30 -0400 Message-ID: <87d4js5341.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 734 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 02:06:57 2019 Received: (at 734) by debbugs.gnu.org; 30 Sep 2019 06:06:57 +0000 Received: from localhost ([127.0.0.1]:56601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEopk-00030Q-W4 for submit@debbugs.gnu.org; Mon, 30 Sep 2019 02:06:57 -0400 Received: from quimby.gnus.org ([80.91.231.51]:44506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEopi-00030G-SM for 734@debbugs.gnu.org; Mon, 30 Sep 2019 02:06:55 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEopf-0003qH-JQ; Mon, 30 Sep 2019 08:06:53 +0200 From: Lars Ingebrigtsen To: Nikos Apostolakis Subject: Re: bug#734: 23.0.60; Interactively use a list argument to replace-string + missing documentation References: <87skt45y71.fsf@knotter.earthlink.net> Date: Mon, 30 Sep 2019 08:06:51 +0200 In-Reply-To: <87skt45y71.fsf@knotter.earthlink.net> (Nikos Apostolakis's message of "Sat, 16 Aug 2008 19:37:06 -0400") Message-ID: <87sgoejp1g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Nikos Apostolakis writes: > I learned from a post in gnu.emacs.help that the second argument to > replace-string can be a list of strings. In this case the elements of > the list are used in cyclic order. It appears that this [...] 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: 0.0 (/) X-Debbugs-Envelope-To: 734 Cc: rfrancoise@debian.org, 734@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: -1.0 (-) Nikos Apostolakis writes: > I learned from a post in gnu.emacs.help that the second argument to > replace-string can be a list of strings. In this case the elements of > the list are used in cyclic order. It appears that this feature can't > be used when the function is used interactively. I think this can be > a very useful feature and should probably be accessible interactively. > > Also this behavior is not documented in the doc string or the info page > of replace-string -- although it is documented in the info page for > perform-replace function. The underlying function supports a complex list of replacements, but `replace-match' does not: It's an interactive-only function, and entering a list of strings interactively doesn't make much sense. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 02:07:04 2019 Received: (at control) by debbugs.gnu.org; 30 Sep 2019 06:07:04 +0000 Received: from localhost ([127.0.0.1]:56605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEops-00031C-9a for submit@debbugs.gnu.org; Mon, 30 Sep 2019 02:07:04 -0400 Received: from quimby.gnus.org ([80.91.231.51]:44524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEopq-00030n-Ew for control@debbugs.gnu.org; Mon, 30 Sep 2019 02:07:02 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEopn-0003qS-Rc for control@debbugs.gnu.org; Mon, 30 Sep 2019 08:07:01 +0200 Date: Mon, 30 Sep 2019 08:06:59 +0200 Message-Id: <87r23yjp18.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #734 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 734 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: 0.0 (/) 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: -1.0 (-) close 734 quit From unknown Sat Sep 06 21:08:20 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, 28 Oct 2019 11:24:10 +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