From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: Re: Indentation of constants in LISP Date: Tue, 20 Feb 2007 20:17:56 +0100 (CET) Message-ID: <18370522.43101171999076107.JavaMail.www@wwinf4101> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1171999107 28900 80.91.229.12 (20 Feb 2007 19:18:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2007 19:18:27 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 20 20:18:17 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HJaVD-0001fM-Ez for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 20:18:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJaVC-0000jy-Tx for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 14:18:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJaUz-0000ig-Jk for emacs-devel@gnu.org; Tue, 20 Feb 2007 14:18:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJaUx-0000hj-VW for emacs-devel@gnu.org; Tue, 20 Feb 2007 14:18:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJaUx-0000hd-QN for emacs-devel@gnu.org; Tue, 20 Feb 2007 14:17:59 -0500 Original-Received: from smtp2.voila.fr ([193.252.22.175] helo=smtp1.voila.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJaUx-0000hU-CG for emacs-devel@gnu.org; Tue, 20 Feb 2007 14:17:59 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4108.voila.fr (SMTP Server) with ESMTP id 465CD1C003F4; Tue, 20 Feb 2007 20:17:58 +0100 (CET) Original-Received: from wwinf4101 (wwinf4101 [172.22.152.28]) by mwinf4108.voila.fr (SMTP Server) with ESMTP id 1CFE31C004C5; Tue, 20 Feb 2007 20:17:56 +0100 (CET) X-ME-UUID: 20070220191756118.1CFE31C004C5@mwinf4108.voila.fr X-Originating-IP: [86.107.96.49] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~| X-WUM-REPLYTO: |~| X-detected-kernel: Linux 2.4-2.6 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:66561 Archived-At: > Message du 20/02/07 =C3=A0 19h04 > De : "Stuart D. Herring" > A : alinsoar@voila.fr > Copie =C3=A0 : emacs-devel@gnu.org > Objet : Re: Indentation of constants in LISP >=20 > > This is not a problem at all, because in this case this old situation i= s > > also a problem: > > > > (prog2 > > x > > y > > z) >=20 > How is this a problem? `prog2' is supposed to indent its first two > arguments specially: >=20 > Symbol prog2's plist is > (lisp-indent-function 2) >=20 > >> (foo :a b :c d > >> :e f) > > > > This is OK. >=20 > Er, what? Just because two constant-value pairs fit on one line, I don't > follow that we should align everything that follows to the latter. When I posted it , I wrote: It's not an exhaustive treatment, because there is not an exhaustive definition of this kind of alignement.=20 When I wrote the code, I supposed that some special commands, like prog2, e= tc will take CONSTANT symbols as the last parameters, not the first as you = write. The constant symbols are special cases. Where in all Emacs do you se= e a code like that one of which you say here? First of all look at the code of Emacs. Where, in all thousands of lines of= Emacs, do you find a code as you do critique here: (prog2 a :b c A Soare