From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: a bug of read-passwd Date: Mon, 24 Jul 2006 10:38:57 -0400 Message-ID: References: <877j2etda5.fsf@stupidchicken.com> <20060719.094900.73654343.kazu@iij.ad.jp> <20060721.095708.119557783.kazu@iij.ad.jp> <874pxau66i.fsf@stupidchicken.com> <87vepn61s4.fsf@stupidchicken.com> <87k6635bpp.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153751961 30634 80.91.229.2 (24 Jul 2006 14:39:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2006 14:39:21 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 24 16:39:20 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G51aX-0000as-OY for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2006 16:39:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G51aX-000455-3S for ged-emacs-devel@m.gmane.org; Mon, 24 Jul 2006 10:39:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G51aM-00044z-Ig for emacs-devel@gnu.org; Mon, 24 Jul 2006 10:39:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G51aL-000443-62 for emacs-devel@gnu.org; Mon, 24 Jul 2006 10:39:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G51aL-000440-0l for emacs-devel@gnu.org; Mon, 24 Jul 2006 10:39:05 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G51bQ-000846-SM; Mon, 24 Jul 2006 10:40:12 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id D65332CEB69; Mon, 24 Jul 2006 10:39:03 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 945EB445C; Mon, 24 Jul 2006 10:38:57 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 87FA44C6DEA; Mon, 24 Jul 2006 10:38:57 -0400 (EDT) Original-To: Chong Yidong In-Reply-To: <87k6635bpp.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 24 Jul 2006 10:17:22 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57538 Archived-At: >>> 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