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: Wed, 20 Feb 2013 10:47:58 -0500 Message-ID: References: <1361217567226-278668.post@n5.nabble.com> <1361372158545-278835.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361375297 2185 80.91.229.3 (20 Feb 2013 15:48:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 15:48:17 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Sergey Mozgovoy Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 16:48:37 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 1U8BuM-0005YE-QS for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2013 16:48:34 +0100 Original-Received: from localhost ([::1]:39758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Bu2-0005bN-Je for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2013 10:48:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Btu-0005ZP-Ax for Emacs-devel@gnu.org; Wed, 20 Feb 2013 10:48:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Bto-0006lL-IC for Emacs-devel@gnu.org; Wed, 20 Feb 2013 10:48:06 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:45990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Bto-0006lE-Dn for Emacs-devel@gnu.org; Wed, 20 Feb 2013 10:48:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFsoXXp/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1814373" 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; 20 Feb 2013 10:47:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E23E36CBBA; Wed, 20 Feb 2013 10:47:58 -0500 (EST) In-Reply-To: <1361372158545-278835.post@n5.nabble.com> (Sergey Mozgovoy's message of "Wed, 20 Feb 2013 06:55:58 -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:157212 Archived-At: >> I generally like the indentation specifications you suggest (except >> for `defun': why do we need it?). > For backward compatibility. Aside from this, I'm sure we do not, at all. OK, that makes sense. >> So, I think I could be convinced, but only if the new indentation >> algorithm is sufficiently simple. > Well, my algorithm is essentially the same in logic as the standard > one, plus some code for matching indentation patterns and walking up > through containing sexps. This is 300-350 LOC (including heavy > comments) which would supersede existing 265 lines in "lisp-mode.el". > Obviously, it is not tested and verified thoroughly. > If you're interested, I can just post here a diff against "lisp-mode.el". Please do, Stefan