emacs-devel
[Top][All Lists]
Advanced

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

Re: local binding ineffective inside widget


From: Michael Heerdegen
Subject: Re: local binding ineffective inside widget
Date: Tue, 24 Sep 2019 11:28:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Michael Heerdegen <address@hidden> writes:

> That solution is ok for me, and it works, so I'll just do that.
> Thanks!

Ok, this also seems to be a bit tricky: find(1) has options -newerXY,
for each combination of X, Y in {a, B, c, m, t} there exists an
according -newerXY option (e.g. -newerBa -- some combinations are not
allowed).  I want to make it so that the user selects literal "-newerXY"
(i.e. there is only one widget for the whole set) and the widget will
prompt for X and Y itself.  And the argument REFERENCE of the option.

Here is the problem: REFERENCE is a file in nearly all cases, but not if
a "t" has been specified.  Then the widget would have to replace the
"file: " child widget with a different kind of "time: " widget, because
in this case the argument will be interpreted as a time.  How can I
implement that?  Do I have to do it by hand, as e.g. in
`widget-delete-button-action' -- or is there a built in solution (then I
didn't find it) to replace child widgets?

TIA, Michael.



reply via email to

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