From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sergey Mozgovoy Newsgroups: gmane.emacs.devel Subject: Re: Better indentation for elisp Date: Sun, 24 Feb 2013 00:29:52 -0800 (PST) Message-ID: <1361694592746-279172.post@n5.nabble.com> References: <1361217567226-278668.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361694602 13819 80.91.229.3 (24 Feb 2013 08:30:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2013 08:30:02 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 09:30:25 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 1U9WyT-0005oZ-Rb for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2013 09:30:21 +0100 Original-Received: from localhost ([::1]:60653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Wy8-0008DD-Mp for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2013 03:30:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Wy4-0008CX-TF for Emacs-devel@gnu.org; Sun, 24 Feb 2013 03:29:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9Wy1-0006fK-QC for Emacs-devel@gnu.org; Sun, 24 Feb 2013 03:29:56 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:41189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9Wy1-0006f4-Kw for Emacs-devel@gnu.org; Sun, 24 Feb 2013 03:29:53 -0500 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U9Wy0-00086G-OH for Emacs-devel@gnu.org; Sun, 24 Feb 2013 00:29:52 -0800 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.139.236.26 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:157288 Archived-At: Didier Verna-3 wrote > Given that you think (and I agree) that the current Slime indentation > contrib is superior to the current one for Emacs Lisp, I don't quite > understand why you would want to write some new machinery. Well, there are basically 2 reasons: * Emacs Lisp indentation mustn't in any way depend on SLIME. Emacs Lisp is a vital language and mode for Emacs, whereas SLIME is just an ordinary extension package like, for instance, Python or JavaScript mode. So doing something like *(require 'slime)* from "lisp-mode.el" is definitely wrong. Thus, we can either steal some ideas from SLIME (and probably code, as well), or revert this dependency: implement the whole customizable, pluggable and generally quite complex algorithm in "lisp-mode.el" and adjust SLIME and other lisp modes into this model. I just chose the first path, for my personal use (at the time being). * I don't like the fact that they specify absolute indentation in spaces, in SLIME. :) I'd agree that this is my subjective attitude and may not be a general problem for most other people, though. On the whole, the main reason why I started this post is that I'd want to see Emacs Lisp have really better indentation support. This wouldn't require too much effort to implement, yet this would make it much more convenient to use *macrolet*, *flet*, and other high-level macros in Elisp. -- View this message in context: http://emacs.1067599.n5.nabble.com/Better-indentation-for-elisp-tp278668p279172.html Sent from the Emacs - Dev mailing list archive at Nabble.com.