From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Lisp indentation. Date: Sun, 13 Mar 2005 14:23:15 +0100 Message-ID: <87psy31xz0.fsf@xs4all.nl> References: <87mztbmk6r.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110720332 10795 80.91.229.2 (13 Mar 2005 13:25:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2005 13:25:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 13 14:25:32 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAT5l-0008Pd-Jd for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2005 14:25:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DATLF-0007pA-JR for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2005 08:41:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DATKS-0007fx-7H for emacs-devel@gnu.org; Sun, 13 Mar 2005 08:40:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DATKN-0007db-SO for emacs-devel@gnu.org; Sun, 13 Mar 2005 08:40:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DATKN-0007dA-Ql for emacs-devel@gnu.org; Sun, 13 Mar 2005 08:40:19 -0500 Original-Received: from [194.109.24.26] (helo=smtp-vbr6.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DAT3v-00030d-M3 for emacs-devel@gnu.org; Sun, 13 Mar 2005 08:23:20 -0500 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr6.xs4all.nl (8.12.11/8.12.11) with ESMTP id j2DDNExv086982; Sun, 13 Mar 2005 14:23:14 +0100 (CET) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DAT3r-000539-00; Sun, 13 Mar 2005 14:23:15 +0100 Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Thu, 10 Mar 2005 14:43:34 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 28 X-Virus-Scanned: by XS4ALL Virus Scanner 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34538 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34538 Stefan Monnier writes: [...] > I'd say they should be set in the `declare' part of the definition > of the macro. See the definition of `when' or `unless' for > examples. Unless it's common to edit code that uses the macro while > the macro itself is not loaded, in which case it might be worthwhile > to put the `put' in some other file like lisp-mode.el. Actually, there is a problem with using declare to specify indentation. Some macro's like `eval-when-compile' are defined upon startup, because loadup.el loads the file in which they are defined. If (put ... 'lisp-indent-function ...) is used to specify indentation, then that is executed during startup as well. However, if (declare (indent ...)) is used to specify indentation, then the macro is defined during startup, but its lisp-indent-property will not be set. [I guess, this is why there is a (put 'when 'lisp-indent-function 1) in lisp-mode.el, even though the definition of when in subr.el uses (declare (indent 1)).] (declare (debug ...)) has the same problem wrt the edebug-form-spec property. This should probably be fixed somehow, or else documented. Lute.