From: egnarts-ms <egnartsms@gmail.com>
To: Emacs-devel@gnu.org
Subject: indentation of functions inside flet
Date: Fri, 20 Jan 2012 02:50:46 -0800 (PST) [thread overview]
Message-ID: <33173596.post@talk.nabble.com> (raw)
Function definitions established by "flet", "flet*" and "labels" are not
aligned (indented) the same way as those established with usual "defun".
Instead, certainly, they are indented according to what the function name
specifies, like the following:
(flet ((some-func (a b)
(* a b)))
(body-form-1)
(body-form-2)
...)
In most cases function names (like "some-func" in this example) do not have
the "lisp-indent-function" symprop attached, and even if they happen to
have--that is also not what we want.
So it would be nice if Lisp mode indented such function definitions like
defuns. I wonder, has anyone cared about this before me (I'm sure someone
has) and are there any improvements to the Lisp mode available ?
(I managed to introduce a change to "lisp-indent-function" function which
does the job, but I'm not sure whether my patch can be considered a decent
one.)
--
View this message in context: http://old.nabble.com/indentation-of-functions-inside-flet-tp33173596p33173596.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.
next reply other threads:[~2012-01-20 10:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 10:50 egnarts-ms [this message]
2012-01-20 14:13 ` indentation of functions inside flet Stefan Monnier
2012-01-20 14:37 ` egnarts-ms
2012-01-20 16:17 ` Stefan Monnier
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=33173596.post@talk.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.