[Top][All Lists]

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

Re: a bug of read-passwd

From: Stefan Monnier
Subject: Re: a bug of read-passwd
Date: Mon, 24 Jul 2006 10:38:57 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>> Another possibility is to implement a `inhibit-timers' variable and
>>> set it to t by default inside filter functions (similar to how
>>> `inhibit-quit' is bound to t in filter functions.)  This is probably
>>> easier to implement.  What do you think?
>> I think it's a good idea, although let-binding timer-list (and
>> timer-idle-list) to nil might be even better since it'd still allow filter
>> functions to use timers.

> Doing a let-bind is conceptually cleaner, but one can imagine a
> situation in which a filter function needs access to a
> previously-defined timer.  A `inhibit-timer' mechanism would allow
> filter functions to manually turn the timer back on if they need to.

Agreed.  So maybe the inhibit-timer should not be boolean, but contain a list
of inhibited timers (it'd be set just before running a filter to the list
of timers active when the filter is started).


reply via email to

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