all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sergey Mozgovoy <egnartsms@gmail.com>
To: Emacs-devel@gnu.org
Subject: Re: Better indentation for elisp
Date: Wed, 20 Feb 2013 06:55:58 -0800 (PST)	[thread overview]
Message-ID: <1361372158545-278835.post@n5.nabble.com> (raw)
In-Reply-To: <jwv8v6k5smr.fsf-monnier+emacs@gnu.org>


>  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.


> 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".



--
View this message in context: http://emacs.1067599.n5.nabble.com/Better-indentation-for-elisp-tp278668p278835.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.



  parent reply	other threads:[~2013-02-20 14:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18 19:59 Better indentation for elisp Sergey Mozgovoy
2013-02-18 20:45 ` Thierry Volpiatto
2013-02-19  6:23   ` Sergey Mozgovoy
2013-02-19  6:55     ` Thierry Volpiatto
2013-02-19 13:53 ` Stefan Monnier
2013-02-19 15:41   ` João Távora
2013-02-20 14:55   ` Sergey Mozgovoy [this message]
2013-02-20 15:47     ` Stefan Monnier
2013-02-21 10:51       ` Sergey Mozgovoy
2013-02-21 15:31         ` Stefan Monnier
2013-02-21 15:54 ` Didier Verna
2013-02-24  8:29   ` Sergey Mozgovoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1361372158545-278835.post@n5.nabble.com \
    --to=egnartsms@gmail.com \
    --cc=Emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.