From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Strange eval-after-load Date: Fri, 7 Jul 2006 12:46:28 +0100 Message-ID: <20060707114628.GB3487@muc.de> References: <20060703135010.GB2626@muc.de> <20060704080222.GA1316@muc.de> <20060704210805.GF1316@muc.de> <20060705085731.GB1418@muc.de> <85ejx0e7uj.fsf@lola.goethe.zz> <20060705222851.GC1992@muc.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152269223 16887 80.91.229.2 (7 Jul 2006 10:47:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2006 10:47:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 07 12:47:02 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 1FynrF-0000Tt-HP for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 12:46:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FynrF-0005yf-4w for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 06:46:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fynr3-0005ya-Uq for emacs-devel@gnu.org; Fri, 07 Jul 2006 06:46:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fynr2-0005xe-7h for emacs-devel@gnu.org; Fri, 07 Jul 2006 06:46:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fynr1-0005xU-W8 for emacs-devel@gnu.org; Fri, 07 Jul 2006 06:46:36 -0400 Original-Received: from [193.149.48.1] (helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FynrQ-0001hw-3r for emacs-devel@gnu.org; Fri, 07 Jul 2006 06:47:00 -0400 Original-Received: (qmail 82314 invoked from network); 7 Jul 2006 10:46:32 -0000 Original-Received: from acm.muc.de (HELO localhost.localdomain) (Debian-exim@193.149.49.134) by mail.muc.de with SMTP; 7 Jul 2006 10:46:32 -0000 Original-Received: from acm by localhost.localdomain with local (Exim 4.50) id 1Fyomy-0001Jc-BO; Fri, 07 Jul 2006 12:46:28 +0100 Original-To: Richard Stallman Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i 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:56711 Archived-At: Hi, Richard! On Fri, Jul 07, 2006 at 12:14:34AM -0400, Richard Stallman wrote: > eval-after-load is conceptually the same as add-hook. > The point here is the difference between them. If you've decided to > treat that difference as unimportant, then of course you don't see > why I prefer one to the other. > Why is > using e-a-l worse than using LaTeX-mode-hook, for example? > The code in tex-mode.el explicitly runs LaTeX-mode-hook, > but it does not explicitly run the eval-after-load forms. > I cannot conceive of any (real) problems which might be caused by > > (eval-after-load "edebug" '(def-edebug-spec c-point t)) > I agree this does not cause any practical problem. > However, it is cleaner to use `declare'. > Also, I will move def-edebug-spec into subr.el, so that there > is no point in using eval-after-load here. OK. I'll change the CC Mode source files to call def-edebug-spec directly. Thanks! -- Alan.