From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively Date: Tue, 15 Oct 2019 14:34:46 +0000 (UTC) Message-ID: <6f2c5355-95c3-4e92-b4c6-430ef4158da7@default> 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=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="94656"; mail-complaints-to="usenet@blaine.gmane.org" Cc: VanL , 31953@debbugs.gnu.org To: Lars Ingebrigtsen , Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 15 16:55:44 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 1iKOEg-000OUY-0X for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2019 16:55:42 +0200 Original-Received: from localhost ([::1]:47496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKOEe-0004h1-L3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2019 10:55:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38524) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKNwd-0007fa-P8 for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2019 10:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKNwc-0003aX-KV for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2019 10:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35852) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKNwc-0003aR-GH for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2019 10:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKNwb-0005fd-PP for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2019 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2019 14:37: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.157115020221770 (code B ref 31953); Tue, 15 Oct 2019 14:37:01 +0000 Original-Received: (at 31953) by debbugs.gnu.org; 15 Oct 2019 14:36:42 +0000 Original-Received: from localhost ([127.0.0.1]:44673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKNwH-0005f4-Kp for submit@debbugs.gnu.org; Tue, 15 Oct 2019 10:36:41 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:53026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKNwF-0005er-8T for 31953@debbugs.gnu.org; Tue, 15 Oct 2019 10:36:39 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9FEZ6i6102422; Tue, 15 Oct 2019 14:36:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=OU4vlESova8zURAPHX8KTiOm3ofV+Yx8+3mPQYCTByM=; b=UUixxsdPyaEq6bmVulJMbktpwpP7Q2OPh7vk8KyWpurYAfP4daNdeAuBQppaRaSWOSrA uSj6CYBIDN/z9GHxTDMQYSmIICMsFYtHqoe6tlsr6tYEa01/cklfwqNT+G8olh+n/Kvs oBOQbwq8wBWBHi3wqLZrn0Nzw4DOmj1E5RNR8OmL5I06xyBCNt2iOo+zY7KtjX3fnM+C EEf9ZhwRrdeaJkpozYjfO6tHfxQBQk8ggcYeOx1s8tANdvope2RDSxVMTH7v+uKoWhNt MPKAxMNNMG/IwON2wF7QmdaYz49ffHqSBpCOQACkQApjWL5yXNtETXliihznJ7sSVyXe pw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2vk7fr8bry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Oct 2019 14:36:33 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9FEa5tQ100339; Tue, 15 Oct 2019 14:36:32 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2vnb0f982p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Oct 2019 14:36:28 +0000 Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x9FEYmt7012519; Tue, 15 Oct 2019 14:34:49 GMT In-Reply-To: <87a7a2qwb7.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4900.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9411 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=974 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910150130 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9411 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910150130 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:169382 Archived-At: > I think it would be rather odd to have just one regexp-reading command > that uses the rx syntax interactively. 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'. It could, > for instance, have a keystroke that changes the input mode. >=20 > But do we think that people want to type in rx forms? (Apologies for jumping in here, ignoring the thread.) FWIW - Many applications, including some good ones, provide dialog boxes (modal or not) for things like search & replace that let you check a number of settings that configure the kind of search (and replace). Emacs generally favors progressive interaction: if you need to specify multiple things then you are prompted multiple times, or you use a prefix arg together with perhaps responding to a single prompt. But there's no reason that Emacs could not or should not also offer such dialog boxes - including for things like Isearch. (If I had more free time perhaps I'd wrestle something up with widgets.) The other thing is that originally Isearch was simple, in terms of the possibilities it offered. That's changed over time (char folding and lots of other things). The ability to configure multiple search settings at once, with a straightforward dialog box, and then reuse the same settings or modify them, is a feature waiting to happen. And I think configuring rx searches would be a great candidate for this kind of thing. I don't use RX, mainly because I'm used to regexps and it think it would be slower to use RX. But not necessarily so, if it's just a question of checking a few boxes. It should be quick to configure a given search. And it's super clear because the dialog box can lay it all out and even provide helpful tooltips for fields/actions. And once configured just repeat, with or without changing some setting. I say go for it - even without a dialog box. Do people really "want to type in rx forms?" Maybe not. But later on we could give them a dialog box that takes the place of typing in rx syntax ("forms").