[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A widget-based version of find-cmd

From: Michael Heerdegen
Subject: Re: A widget-based version of find-cmd
Date: Tue, 04 Jun 2019 00:40:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> I think I understand what you're after, but I'd like to clarify:
> find-cmd lets you build a command using an Elisp expression, so it's
> meant for use from Elisp code, rather than interactively.
> Whereas you seem to be considering an interactive use case, right?

Exactly.  The main overlap with find-cmd is the inherent knowledge about

I want that a user can compose the "find" call with widgets and hit C-c
C-c or so to execute it.

> Yes, of course.  Another direction (complementary rather than opposed to
> what you're suggesting) would be to extend Elisp's completion so it
> understands `find-cmd` and hence gives you the valid completion after
> you type `(find-cmd '(pru TAB`
> [ Of course, we don't want elisp-mode.el to know about find-cmd.el,
>   we'd instead want this to be modular; could be used for `rx` as well,
>   for example.  ]

Something like that would be good, yes.

> I'm sending you all my psychic power.  I hope it helps.

I think it does.

> I think you're looking for the `lazy` widget.

Bingo!  Thanks.

> The Widgets code was written pretty much specifically for Customs, so
> I'm not surprised if some parts are not cleanly separated.
> Please mark them with a FIXME or fix them when you bump into them ;-)

Ok, will do.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]