From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Strange eval-after-load Date: Tue, 04 Jul 2006 08:54:30 -0400 Message-ID: References: <20060702133304.GA4008@muc.de> <20060702191851.GA1299@muc.de> <20060703171606.GD2626@muc.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1152017692 29218 80.91.229.2 (4 Jul 2006 12:54:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 12:54:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 14:54:50 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 1FxkQO-000238-QW for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 14:54:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxkQO-0003Xu-Ee for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 08:54:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxkQC-0003WL-Cb for emacs-devel@gnu.org; Tue, 04 Jul 2006 08:54:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FxkQB-0003Vj-Rk for emacs-devel@gnu.org; Tue, 04 Jul 2006 08:54:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxkQB-0003Vg-LF for emacs-devel@gnu.org; Tue, 04 Jul 2006 08:54:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fxkdr-0002h7-HJ for emacs-devel@gnu.org; Tue, 04 Jul 2006 09:08:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FxkQA-0001pq-4q; Tue, 04 Jul 2006 08:54:30 -0400 Original-To: Alan Mackenzie In-reply-to: <20060703171606.GD2626@muc.de> (message from Alan Mackenzie on Mon, 3 Jul 2006 18:16:06 +0100) 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:56481 Archived-At: PLEASE, PLEASE, PLEASE give your views on the example I quoted from cc-defs.el. It is obsolete -- the code should use `declare'. def-edebug-spec is autoloaded, so calls to it do not _need_ to be in eval-after-load. However, it is inefficient to load all of edebug just to execute a call to def-edebug-spec; so I think it would be good to move that definition into subr.el. Would someone like to do that? Given that CC Mode is intented to be compatible with many (X)Emacs versions, nearly all of which lack the `declare' feature in defmacro, I cannot see how I can get along without eval-after-loads like the above. For XEmacs, you can use a conditional. Old Emacs versions do not matter; I do not want ugly code for their sake. I do not understand why you regard eval-after-load as objectionable. I am sorry you don't understand, but I will not change this policy and I don't have time to reopen the question. I have other work to do!