From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: image-load-path / tool-bar icons / dumped Emacs with images.el Date: Fri, 21 Oct 2005 17:08:27 +0200 Message-ID: References: <739FCE66-7AB2-4375-A4EC-32473BF1EFFC@inf.ed.ac.uk> <874q7bkkbc.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129911288 31192 80.91.229.2 (21 Oct 2005 16:14:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2005 16:14:48 +0000 (UTC) Cc: David Reitter , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 18:14:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESzTM-0002p4-B0 for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 18:10:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESzTL-0002ST-65 for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 12:10:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESyWP-0001Jd-96 for emacs-devel@gnu.org; Fri, 21 Oct 2005 11:09:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESyWN-0001Iw-Tp for emacs-devel@gnu.org; Fri, 21 Oct 2005 11:09:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESyWM-0001Ic-Nu for emacs-devel@gnu.org; Fri, 21 Oct 2005 11:09:27 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESyWL-00016R-Pv; Fri, 21 Oct 2005 11:09:25 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 74A8A47FEA6; Fri, 21 Oct 2005 17:09:22 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <874q7bkkbc.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 21 Oct 2005 10:40:52 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:44510 Archived-At: Stefan Monnier writes: >> In general, maybe we could set "run-once" hook variables to t after >> they have run, and signal an error if someone tries to modify a hook >> which is t. > > Sounds like a good idea. But I'm wondering how many such hooks exist and > what happens to code that checks (eq foo-hook t) when Emacs changes cause > the hook to not be t any more because it may be run again later (I'm > thinking of things like term-setup-hook which currently can only be run > once but which may be run several times once we add multi-tty). Ok, so we have to think carefully before setting a hook to t. But in any case, such _errors_ only need to be found once :-) -- Kim F. Storm http://www.cua.dk