From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#31953: feature request - `highlight-rx` interactively Date: Mon, 04 Nov 2019 00:27:37 +0200 Message-ID: <87sgn4egti.fsf_-_@mail.linkov.net> References: <875zkqsx1c.fsf@gnus.org> <87o8yirgk4.fsf@gnus.org> <646a4a85cca29e6ca83e1b5b2004902b@webmail.orcon.net.nz> <87a7a2qwb7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="233965"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Phil Sainty , VanL , 31953@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 03 23:41:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iROYc-000yk4-9q for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 23:41:14 +0100 Original-Received: from localhost ([::1]:56736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iROYb-0002z1-6m for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Nov 2019 17:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34176) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iROYQ-0002x6-Ow for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 17:41:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iROYP-0003bZ-Qk for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 17:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55044) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iROYP-0003bO-NQ for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 17:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iROYP-0007b7-Jk for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2019 17:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2019 22:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31953 X-GNU-PR-Package: emacs Original-Received: via spool by 31953-submit@debbugs.gnu.org id=B31953.157282083229150 (code B ref 31953); Sun, 03 Nov 2019 22:41:01 +0000 Original-Received: (at 31953) by debbugs.gnu.org; 3 Nov 2019 22:40:32 +0000 Original-Received: from localhost ([127.0.0.1]:35632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iROXu-0007a3-B8 for submit@debbugs.gnu.org; Sun, 03 Nov 2019 17:40:31 -0500 Original-Received: from black.elm.relay.mailchannels.net ([23.83.212.19]:56673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iROXr-0007Zt-Lw for 31953@debbugs.gnu.org; Sun, 03 Nov 2019 17:40:28 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3A7A32C1121; Sun, 3 Nov 2019 22:40:26 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (100-96-85-194.trex.outbound.svc.cluster.local [100.96.85.194]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6B13E2C0D0D; Sun, 3 Nov 2019 22:40:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 03 Nov 2019 22:40:26 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Keen-Whispering: 22bf7ac757ec152a_1572820826005_1156870946 X-MC-Loop-Signature: 1572820826005:2184537100 X-MC-Ingress-Time: 1572820826005 Original-Received: from pdx1-sub0-mail-a77.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTP id 08EFE852E9; Sun, 3 Nov 2019 14:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=/YYnAJ S2ojZQ6PjfC6znlMUxb3w=; b=kF2HAgdDlTXT+lKHHTfDq5Gw3Speev0gm4uBG5 Hxsp44g5ERDeNLa97XSVnoBJtadtRqEmz0bIe7PFd+ZiIxuPcgCwQlF3V2dZC1T/ bY5NtBjhrNdg/BpYyzyDViGMxrpt5WgiNp7NoBVocKqYCwApZk3CJWLSL7MVvYN1 Iju6A= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a77.g.dreamhost.com (Postfix) with ESMTPSA id 3E3A6852E7; Sun, 3 Nov 2019 14:40:15 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a77 In-Reply-To: <87a7a2qwb7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 15 Oct 2019 09:53:16 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170906 Archived-At: > If this is something we want (and I don't really envision people > willingly typing in rx forms interactively), then it should be fixed > in `read-regexp'. Yep, `read-regexp' would be the right place to implement this. Then like `read-from-minibuffer' has the arg `READ': If fourth arg READ is non-nil, interpret the result as a Lisp object and return that object: in other words, do =E2=80=98(car (read-from-string INPUT-STRING))=E2=80= =99 `read-regexp' could have the same arg.