From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: emacsq via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54017: add regexp translation option to read-regexp Date: Thu, 17 Feb 2022 10:55:22 +0000 Message-ID: <9LWah4VVitpa2lng3EOUtAFaCtAdV_OJKWGiRVz5TmrajnJ3gWDmhpqy4_Ac-1F4Qv2xmVGckjS35Ity5cq9M4BFd5DJxH2JklOkKR5r6c0=@protonmail.com> References: <8635kj2h7s.fsf@mail.linkov.net> <86pmnlew9d.fsf@mail.linkov.net> Reply-To: emacsq Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23665"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54017@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 17 11:56:25 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 1nKeSX-0005zq-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Feb 2022 11:56:25 +0100 Original-Received: from localhost ([::1]:45336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKeSV-00040R-Qb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Feb 2022 05:56:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKeSA-000402-Bd for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2022 05:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKeSA-0008AW-2u for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2022 05:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKeSA-000410-3q for bug-gnu-emacs@gnu.org; Thu, 17 Feb 2022 05:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: emacsq Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Feb 2022 10:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54017 X-GNU-PR-Package: emacs Original-Received: via spool by 54017-submit@debbugs.gnu.org id=B54017.164509533215398 (code B ref 54017); Thu, 17 Feb 2022 10:56:02 +0000 Original-Received: (at 54017) by debbugs.gnu.org; 17 Feb 2022 10:55:32 +0000 Original-Received: from localhost ([127.0.0.1]:50283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKeRf-00040I-U7 for submit@debbugs.gnu.org; Thu, 17 Feb 2022 05:55:32 -0500 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:53807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKeRd-000403-KD for 54017@debbugs.gnu.org; Thu, 17 Feb 2022 05:55:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1645095322; bh=CUa5DM1V7t8YE96CpseXvx3BcR2gjWKwXpanfZXP6Ac=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=c/hOXmOPrfmtw6/kwayQL52g7Qwkt1DrWxFESIhQrCAog2eKKodbFKOqAdBdAdT3c oDm/7L21mti4SS5B11lbYgp/udqwg+TIMU0KkVJOvyBCscPEkg1LbUYFXM8LheclIC O+6S1FUwoe61fCoYBAOBLULTSpV1H57W27pqZ1W3dLwS/ReNNpPKDyQNtFccUtM9DU loxnGAyogzJmZxzTAVxqPl5WPZLM6lEWNSluF3kNRuLObe8UVEMzjPIubtkdpwfrhY 4/9edc/WOXmi1HhfiuwRja1TnmR1tK1ObrhiBzPLkxb6dGgbQiZqckybwoMVzuxiRf i3XHXy9+qhKCg== In-Reply-To: <86pmnlew9d.fsf@mail.linkov.net> 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" X-ACL-Warn: , emacsq Xref: news.gmane.io gmane.emacs.bugs:227082 Archived-At: > a pair of two translation functions should be provided: > one to translate a custom regexp syntax to the default regexp syntax >(to be used on the return value of read-regexp), and another translation > from the default regexp syntax to the custom regexp syntax (to be used > to translate the default regexp value added to the minibuffer)? The purpose of regexp translation is that all user facing regexps by read-regexp should use the translated format, so if there is a need for a function which converts to the convenient format then the user should provide that as well. Maybe there should be one function only with an argument specifying the direction of the translation. BTW, ideally the variables you mentioned ('search-default-mode' and 'replace-regexp-function') should be merged with this option, because it's unlikely the user wants one regexp syntax for one command and a different syntax for an other one, so there should be a single translation function which works everywhere where user facing regexps occur.