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: Hi, I'm back! + Re: Strange eval-after-load Date: Sun, 2 Jul 2006 20:18:51 +0100 Message-ID: <20060702191851.GA1299@muc.de> References: <20060702133304.GA4008@muc.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151875193 22289 80.91.229.2 (2 Jul 2006 21:19:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2006 21:19:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 02 23:19:51 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 1Fx9M7-0007pk-4L for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2006 23:19:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fx9M6-0007NI-AE for ged-emacs-devel@m.gmane.org; Sun, 02 Jul 2006 17:19:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fx9Lu-0007N3-Vm for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:19:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fx9Lt-0007Mr-Iw for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:19:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fx9Lt-0007Mo-C8 for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:19:37 -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 1Fx9ZC-00025s-53 for emacs-devel@gnu.org; Sun, 02 Jul 2006 17:33:22 -0400 Original-Received: (qmail 52092 invoked from network); 2 Jul 2006 21:19:34 -0000 Original-Received: from acm.muc.de (HELO localhost.localdomain) (Debian-exim@193.149.49.134) by mail.muc.de with SMTP; 2 Jul 2006 21:19:34 -0000 Original-Received: from acm by localhost.localdomain with local (Exim 4.50) id 1Fx7T2-0000Xv-04; Sun, 02 Jul 2006 20:18:52 +0100 Original-To: Thien-Thi Nguyen 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:56384 Archived-At: On Sun, Jul 02, 2006 at 01:28:33PM -0400, Thien-Thi Nguyen wrote: > Alan Mackenzie writes: > > ;; Make edebug understand the macros. > > (eval-after-load "edebug" > > '(progn > > (def-edebug-spec cc-eval-when-compile t) > > (def-edebug-spec c-point t) > > ..... > > )) > each defmacro can include a `declare' form which > can include a (debug SPEC) clause. i wonder if: > (def-edebug-spec cc-eval-when-compile t) > is equivalent to > (defmacro cc-eval-when-compile (...) > (declare (debug t)) > ...) Ah. I didn't know about that. Thanks! > ? if so, these particular usages of `eval-after-load' > are no longer necessary. This feature is not documented in the Elisp for Emacs 21, and is thus probably available only in GNU Emacs 22. Even after the release of Emacs 22, it will still be necessary to Edebug CC Mode with other Emacsen. I don't think this invalidates my main point, namely that there are valid uses of eval-after-load. > thi -- Alan.