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#52558: Option for easier typing of regexps Date: Tue, 28 Dec 2021 22:25:56 +0200 Organization: LINKOV.NET Message-ID: <867dboo4rv.fsf@mail.linkov.net> References: <86v8zkkgxn.fsf@mail.linkov.net> <8635moe8z1.fsf@mail.linkov.net> <86wnk0ctxp.fsf@mail.linkov.net> <868rw4pmln.fsf@mail.linkov.net> <83ee5wlbv5.fsf@gnu.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="26000"; 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: laszlomail@protonmail.com, 52558@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 28 21:28:11 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 1n2J4t-0006do-6w for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Dec 2021 21:28:11 +0100 Original-Received: from localhost ([::1]:33078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2J4s-0002Vs-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Dec 2021 15:28:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2J4k-0002Um-HU for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 15:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2J4k-0002sd-7I for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 15:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2J4k-00042U-2O for bug-gnu-emacs@gnu.org; Tue, 28 Dec 2021 15:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Dec 2021 20:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52558-submit@debbugs.gnu.org id=B52558.164072325515474 (code B ref 52558); Tue, 28 Dec 2021 20:28:02 +0000 Original-Received: (at 52558) by debbugs.gnu.org; 28 Dec 2021 20:27:35 +0000 Original-Received: from localhost ([127.0.0.1]:47525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2J4J-00041W-6K for submit@debbugs.gnu.org; Tue, 28 Dec 2021 15:27:35 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:47927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2J4H-00041I-BR for 52558@debbugs.gnu.org; Tue, 28 Dec 2021 15:27:33 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 486401BF203; Tue, 28 Dec 2021 20:27:25 +0000 (UTC) In-Reply-To: <83ee5wlbv5.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 28 Dec 2021 22:21:02 +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:223284 Archived-At: > Thanks, but the doc string of the new function is hard to understand: > >> +(defvar replace-regexp-function nil >> + "Function to convert a search string to a regexp to replace. >> +It's bound to `isearch-regexp-function' when searching >> +for a string to replace.") > > The first sentence is unclear: what do you mean by "convert a search > string to a regexp to replace"? What "search string" is being > converted to regexp, and how does "replace" enter this picture? It has a reference to `isearch-regexp-function' that has a complete explanation to avoid duplication of the docstring. > And this: > > It's bound to `isearch-regexp-function' when searching > > seems to be incorrect: it's isearch-regexp-function that's bound to > replace-regexp-function, not the other way around. Maybe this is better: `isearch-regexp-function' is bound to it when searching