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#50644: Ungrokkable argument names in string-replace Date: Fri, 17 Sep 2021 19:08:42 +0300 Organization: LINKOV.NET Message-ID: <87lf3vjm8x.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32006"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 50644@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 17 18:11:48 2021 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 1mRGSq-00086v-GB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 18:11:48 +0200 Original-Received: from localhost ([::1]:58412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGSp-0004uS-F1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 12:11:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGR9-00036F-JY for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGR8-00032E-SC for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:10:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRGR8-0005z2-JX for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:10: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: Fri, 17 Sep 2021 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50644 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163189498522971 (code B ref -1); Fri, 17 Sep 2021 16:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2021 16:09:45 +0000 Original-Received: from localhost ([127.0.0.1]:60992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGQr-0005yR-1I for submit@debbugs.gnu.org; Fri, 17 Sep 2021 12:09:45 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGQp-0005yH-BL for submit@debbugs.gnu.org; Fri, 17 Sep 2021 12:09:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGQp-0002QM-29 for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:09:43 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:36907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGQl-0002gK-Mw for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:09:42 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id F0B0C240006 for ; Fri, 17 Sep 2021 16:09:35 +0000 (UTC) Received-SPF: pass client-ip=217.70.178.230; envelope-from=juri@linkov.net; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:214555 Archived-At: Especially INSTRING is hard to parse in: -- Function: string-replace fromstring tostring instring This function replaces all occurrences of FROMSTRING with TOSTRING in INSTRING and returns the result. It may return one of its arguments unchanged, a constant string or a new string. Case is significant, and text properties are ignored. Whereas other functions like perform-replace use ‘-’ to separate words, e.g. “FROM-STRING”: -- Function: perform-replace from-string replacements query-flag regexp-flag delimited-flag &optional repeat-count map start end backward region-noncontiguous-p This function is the guts of ‘query-replace’ and related commands. It searches for occurrences of FROM-STRING in the text between