unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: a bug of read-passwd
Date: Mon, 24 Jul 2006 10:38:57 -0400	[thread overview]
Message-ID: <jwvbqrf5asg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87k6635bpp.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 24 Jul 2006 10:17:22 -0400")

>>> 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).


        Stefan

  reply	other threads:[~2006-07-24 14:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15 17:16 [kazu@iij.ad.jp: a bug of read-passwd] Richard Stallman
2006-07-16  3:54 ` Chong Yidong
2006-07-19  0:49   ` Kazu Yamamoto
2006-07-21  0:57     ` a bug of read-passwd Kazu Yamamoto
2006-07-21 19:08       ` Chong Yidong
2006-07-21 19:33         ` Chong Yidong
2006-07-24  2:24           ` Kazu Yamamoto
2006-07-22  4:39         ` Richard Stallman
2006-07-24  4:18           ` Chong Yidong
2006-07-24  4:54           ` Chong Yidong
2006-07-24 13:22             ` Stefan Monnier
2006-07-24 14:17               ` Chong Yidong
2006-07-24 14:38                 ` Stefan Monnier [this message]
2006-07-25  3:09             ` Richard Stallman
2006-07-26 18:33               ` Chong Yidong
2006-07-27  0:25                 ` Richard Stallman
2006-07-27  0:34                   ` Yidong Chong
2006-07-28  3:39                   ` Kazu Yamamoto
  -- strict thread matches above, loose matches on Subject: below --
2006-07-15  4:49 Kazu Yamamoto

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=jwvbqrf5asg.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /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).