From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: Strange eval-after-load Date: Mon, 03 Jul 2006 23:48:32 +0200 Message-ID: References: <20060702133304.GA4008@muc.de> <20060702191851.GA1299@muc.de> <20060703171606.GD2626@muc.de> <87irmer51p.fsf@thunk.shootybangbang.com> <20060703215402.GA1669@muc.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1151963354 23410 80.91.229.2 (3 Jul 2006 21:49:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2006 21:49:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 03 23:49:13 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 1FxWHq-0001w8-6m for ged-emacs-devel@m.gmane.org; Mon, 03 Jul 2006 23:48:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxWHp-0003i0-PA for ged-emacs-devel@m.gmane.org; Mon, 03 Jul 2006 17:48:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxWHc-0003fM-On for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:48:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FxWHc-0003eN-0E for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:48:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxWHb-0003eH-SJ for emacs-devel@gnu.org; Mon, 03 Jul 2006 17:48:43 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FxWV8-0007Nv-Rp for emacs-devel@gnu.org; Mon, 03 Jul 2006 18:02:43 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FxWHV-0001tv-Hf for emacs-devel@gnu.org; Mon, 03 Jul 2006 23:48:37 +0200 Original-Received: from iota202.dd.chalmers.se ([129.16.117.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Jul 2006 23:48:37 +0200 Original-Received: from bojohan+news by iota202.dd.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Jul 2006 23:48:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iota202.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:OCOhx8auIc6mp3d/ZJpcKGn8iX4= 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:56444 Archived-At: Alan Mackenzie writes: > On Mon, Jul 03, 2006 at 06:06:58PM +0100, John Paul Wallington wrote: > >> How about getting rid of the (eval-after-load "edebug" '(progn ... >> )) form and instead replacing the `def-edebug-spec' calls with (put >> 'mumble 'edebug-form-spec 'spec) at toplevel ? Or alternatively >> having those `def-edebug-spec' calls appear at toplevel where they >> would be expanded to `put' calls when compiled provided that >> `def-edebug-spec' is defined (untested) ? > > Ah, thanks! So the thing to do would be to load edebug at compile > time, and expand the `def-edebug-spec' macros at compile time. This > would surely work. Well, it will work if we can guarantee that every > Emacs where somebody's going to be installing CC Mode _has_ edebug. > Or putting in another wearisome check for it. But.... I think that edebug may be unavailable. So how about the first alternative? Gnus uses the `(put ...)' form directly and so does ERC (we went through the same thing). -- Johan Bockgård