From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.devel Subject: Re: Common Lisp indentation bug fix/new feature Date: Tue, 22 Nov 2011 15:52:53 +0000 Message-ID: <87mxbo9msq.fsf@gmx.li> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321977217 10924 80.91.229.12 (22 Nov 2011 15:53:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Nov 2011 15:53:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 22 16:53:33 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RSsf2-0008Ak-Pl for ged-emacs-devel@m.gmane.org; Tue, 22 Nov 2011 16:53:28 +0100 Original-Received: from localhost ([::1]:57620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSsf2-0006O8-BO for ged-emacs-devel@m.gmane.org; Tue, 22 Nov 2011 10:53:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSsev-0006N3-8w for emacs-devel@gnu.org; Tue, 22 Nov 2011 10:53:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSses-0002SW-7p for emacs-devel@gnu.org; Tue, 22 Nov 2011 10:53:21 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSses-0002Rz-2l for emacs-devel@gnu.org; Tue, 22 Nov 2011 10:53:18 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RSseh-0007tP-9t for emacs-devel@gnu.org; Tue, 22 Nov 2011 16:53:07 +0100 Original-Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Nov 2011 16:53:07 +0100 Original-Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Nov 2011 16:53:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e4300lm.epcc.ed.ac.uk User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) Cancel-Lock: sha1:gBnEBJ7UC7lcGG/rDiihsTNNC4M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146148 Archived-At: Lars Magne Ingebrigtsen wrote: > Stefan Monnier writes: >> I think it's a good change, but I don't think there's any rush to put it >> into Emacs-24.1. > Right. And it's not a totally complete solution, either. Stuff like > (loop for (bar foo) > on zot > by #'cddr > collect bar) > should probably not indent like that? (Which is what it does both now > and with my additional patch, I think.) > I think the LOOP indentation thing really needs to have deeper knowledge > about the semantics to indent stuff better. That is, it needs to know > that FOR and COLLECT introduce a new clause, while ON/BY don't. > So I'll write something more semantically aware and apply it to Emacs > after 24.1. Are you aware of the existing efforts in this area, namely the slime-cl-indent that's being developed in SLIME. See http://www.didierverna.com/sciblog/index.php?post/2011/05/06/Common-Lisp-indentation-in-XEmacs and http://random-state.net/log/3513839648.html Perhaps it could be synced into Emacs. Lawrence -- Lawrence Mitchell