From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: Info on define-minor-mode - :init-valueor :initial-value?] Date: Sun, 31 Jul 2005 20:47:46 -0500 (CDT) Message-ID: <200508010147.j711lkl02842@raven.dms.auburn.edu> References: <200507290256.j6T2uPh18315@raven.dms.auburn.edu> <200507310043.j6V0hDm25599@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1122861498 31832 80.91.229.2 (1 Aug 2005 01:58:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2005 01:58:18 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 01 03:58:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DzPZ8-00081e-RQ for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2005 03:58:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzPbl-0003aw-Ha for ged-emacs-devel@m.gmane.org; Sun, 31 Jul 2005 22:00:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzPan-0003DQ-F1 for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:59:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzPag-00039Q-Nh for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:59:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzPaf-00036s-Ii for emacs-devel@gnu.org; Sun, 31 Jul 2005 21:59:41 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DzPbH-0000e1-6O; Sun, 31 Jul 2005 22:00:19 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j711lmqt001823; Sun, 31 Jul 2005 20:47:48 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j711lkl02842; Sun, 31 Jul 2005 20:47:46 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (rms@gnu.org) 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:41392 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41392 Richard Stallman wrote: Do you mean, that sets up the timer? Yes. Do you mean activating and canceling the timer? Yes. But every so often the feature will be mysteriously silently enabled, when some file is silently loaded, for instance by Custom. The variable could have three states: an active timer, an inactive timer, and nil meaning no timer has been set. The set function could create the timer only if the variable is nil. That sounds complex, but anyway, the situation with timers is just one example among many. Using custom-initialize-set or custom-initialize-default completely solves the timer problem as I pointed out, so there is no need to come up with a more complex solution. Sincerely, Luc.