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 15:14:04 +0100 (CET) Message-ID: <12473544.41741171980844617.JavaMail.www@wwinf4106> 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: 7bit X-Trace: sea.gmane.org 1171980876 29550 80.91.229.12 (20 Feb 2007 14:14:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2007 14:14:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 20 15:14:30 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 1HJVlA-0004WR-GT for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 15:14:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJVl9-0007c6-Ug for ged-emacs-devel@m.gmane.org; Tue, 20 Feb 2007 09:14:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJVku-0007WF-Dx for emacs-devel@gnu.org; Tue, 20 Feb 2007 09:14:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJVks-0007Tx-K9 for emacs-devel@gnu.org; Tue, 20 Feb 2007 09:14:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJVks-0007Tj-GM for emacs-devel@gnu.org; Tue, 20 Feb 2007 09:14:06 -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 1HJVks-0004xw-4l for emacs-devel@gnu.org; Tue, 20 Feb 2007 09:14:06 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4102.voila.fr (SMTP Server) with ESMTP id A859B1C00272 for ; Tue, 20 Feb 2007 15:14:04 +0100 (CET) Original-Received: from wwinf4106 (wwinf4106 [172.22.152.33]) by mwinf4102.voila.fr (SMTP Server) with ESMTP id 9AB0B1C001E8 for ; Tue, 20 Feb 2007 15:14:04 +0100 (CET) X-ME-UUID: 20070220141404633.9AB0B1C001E8@mwinf4102.voila.fr X-Originating-IP: [89.34.170.37] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| 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:66552 Archived-At: > Message: 11 > Date: Tue, 20 Feb 2007 14:29:06 +0100 > From: bojohan+news@dd.chalmers.se (Johan Bockg?rd ) > Subject: Re: Indentation of constants in LISP > To: emacs-devel@gnu.org > Message-ID: > Content-Type: text/plain; charset=utf-8 > > A Soare writes: > > > In case that the first symbol of the current line is a constant, > > the indentation will be: > > > > '( :stipple nil > > :background "LightBlue" > > :foreground "Black" > > :inverse-video nil > > See below. > > > (f p q r :name nil > > :server nil This is OK. > > It's not clear that this is necessarily an improvement. > > > Generally, I think that this approach is flawed. It breaks the > indentation of many forms, and trying to "align" things in this way is > a bad idea in the first place. > > Problems: > > (prog2 > x > :y > z) > This is not a problem at all, because in this case this old situation is also a problem: (prog2 x y z) > (defcustom var :val > :group foo) This is ok. > > (foo :a b :c d > :e f) This is OK. > > (foo a :b c > d > :e f) This is ok. > > (actually, TAB and indent-region produce different results in the > last two cases!) If you take into consideration my definition of the align. it is all ok. > > etc. > > Here's one more: > > :x TAB => error > This is not OK. As I said when I send this improvement, I GAVE NOT a GENERAL DEFINITION of this kind of alignement. I have taken into consideration just the cases that I needed for my own code.