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: Thu, 21 Feb 2013 02:51:07 -0800 (PST) Message-ID: <1361443867952-278923.post@n5.nabble.com> 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; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361443881 1774 80.91.229.3 (21 Feb 2013 10:51:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2013 10:51:21 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 21 11:51:43 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 1U8Tkb-0004OU-Of for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2013 11:51:41 +0100 Original-Received: from localhost ([::1]:38484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8TkH-0004XR-F7 for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2013 05:51:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8TkB-0004VE-Pu for Emacs-devel@gnu.org; Thu, 21 Feb 2013 05:51:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8Tk5-00051C-6P for Emacs-devel@gnu.org; Thu, 21 Feb 2013 05:51:15 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:42631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Tk5-00050u-1p for Emacs-devel@gnu.org; Thu, 21 Feb 2013 05:51:09 -0500 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U8Tk3-0007Ja-Uz for Emacs-devel@gnu.org; Thu, 21 Feb 2013 02:51:07 -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:157231 Archived-At: There are 400 lines of code, after I added some better documentation and comments. I decided to share it via pastebin , rather than to paste the whole code directly in a message.. Excuse me if that's not an acceptable way to share code here, it's just the first time I do it. Some points to note: 1. New functions and macros were given "msv-" prefix (author's initials). This should be changed. 2. As we cannot use CL package in "lisp-mode.el", I decided to "reimplement" loop and block/return-from. The other option would be to complicate code with deeper nesting by using only primitive Elisp control flow structures. I don't like it myself.. I just cannot afford anything better at the moment. AFAIK, the problem of partial reimplementation of CL package in every Emacs library is well-known. -- View this message in context: http://emacs.1067599.n5.nabble.com/Better-indentation-for-elisp-tp278668p278923.html Sent from the Emacs - Dev mailing list archive at Nabble.com.