From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Better indentation for elisp Date: Tue, 19 Feb 2013 08:53:11 -0500 Message-ID: References: <1361217567226-278668.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361282007 15189 80.91.229.3 (19 Feb 2013 13:53:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2013 13:53:27 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Sergey Mozgovoy Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 19 14:53:46 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7ndh-0006lm-BK for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2013 14:53:45 +0100 Original-Received: from localhost ([::1]:44517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7ndN-00035T-BG for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2013 08:53:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7ndI-00035L-GV for Emacs-devel@gnu.org; Tue, 19 Feb 2013 08:53:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7ndC-0006ey-A6 for Emacs-devel@gnu.org; Tue, 19 Feb 2013 08:53:20 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:60621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7ndC-0006ej-5r for Emacs-devel@gnu.org; Tue, 19 Feb 2013 08:53:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBrEfkA6RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1721056" Original-Received: from 108-161-117-233.dsl.teksavvy.com (HELO pastel.home) ([108.161.117.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Feb 2013 08:53:12 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 748916D7F4; Tue, 19 Feb 2013 08:53:11 -0500 (EST) In-Reply-To: <1361217567226-278668.post@n5.nabble.com> (Sergey Mozgovoy's message of "Mon, 18 Feb 2013 11:59:27 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:157154 Archived-At: > I think we could just reuse some SLIME indentation ideas for Emacs > Lisp. The algorithm is smart enough to handle any typical Elisp > indentation, and it is kind of a generalization of the present one. OT1H I like the idea, but OTOH I also like the fact that the simple indentation strategy used in Elisp works well enough for almost all of Elisp. So, I think I could be convinced, but only if the new indentation algorithm is sufficiently simple. I generally like the indentation specifications you suggest (except for `defun': why do we need it?). Stefan