From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Phil Sainty <psainty@orcon.net.nz>
Cc: VanL <van@scratch.space>, 31953@debbugs.gnu.org
Subject: bug#31953: [VanL] Re: bug#31953: feature request - `highlight-rx` interactively
Date: Tue, 15 Oct 2019 14:34:46 +0000 (UTC) [thread overview]
Message-ID: <6f2c5355-95c3-4e92-b4c6-430ef4158da7@default> (raw)
In-Reply-To: <87a7a2qwb7.fsf@gnus.org>
> 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.
>
> 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").
next prev parent reply other threads:[~2019-10-15 14:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-24 7:47 bug#31953: feature request - `highlight-rx` interactively Van L
2019-10-09 22:02 ` Lars Ingebrigtsen
2019-10-14 23:54 ` bug#31953: [VanL] " Lars Ingebrigtsen
2019-10-15 0:35 ` Lars Ingebrigtsen
2019-10-15 2:39 ` Phil Sainty
2019-10-15 7:53 ` Lars Ingebrigtsen
2019-10-15 8:37 ` Michael Heerdegen
2019-10-15 8:43 ` Lars Ingebrigtsen
2019-10-15 9:09 ` Michael Heerdegen
2019-10-15 14:34 ` Drew Adams [this message]
2019-11-03 22:27 ` Juri Linkov
2019-10-20 6:34 ` bug#31953: [VanL] " VanL
2019-10-20 15:49 ` Juri Linkov
2019-10-20 23:35 ` Noam Postavsky
2019-10-21 21:19 ` Juri Linkov
2019-11-02 8:30 ` VanL
2019-11-18 21:42 ` Juri Linkov
2019-11-19 12:34 ` VanL
2019-11-19 21:39 ` VanL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6f2c5355-95c3-4e92-b4c6-430ef4158da7@default \
--to=drew.adams@oracle.com \
--cc=31953@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=psainty@orcon.net.nz \
--cc=van@scratch.space \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).