all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Moreton <andrewjmoreton@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Lisp mode doc, and Lisp indentation props
Date: Sun, 09 Aug 2015 21:51:11 +0100	[thread overview]
Message-ID: <86mvy0tccg.fsf@gmail.com> (raw)
In-Reply-To: 20150809181249.29353.36656491@ahiker.mooo.com

On Sun 09 Aug 2015, Ian Zimmerman wrote:

> On 2015-08-09 18:56 +0100, Andy Moreton wrote:
>
>> The declare macro can be used to add an indent property to a function
>> or macro, which tells the mode how to compute required
>> indentation. This is described in the Emacs Lisp manual at (info
>> "(elisp) Declare Form").
>
> Ok, thanks for your answer.  But is there a way to _change_ this for an
> already existing function or macro?  That's why I asked in terms of
> properties, because I'm pretty sure the declaration just results into
> some proerties set on the symbol.  If so, I thought I could control the
> indentation by modifying those properties.

I don't know the proper way to achieve this. From reading the code, it
appears that this is handled by the indent property from the declare
form, the value of lisp-body-indent, and the value of the
lisp-indent-function property of the forms within the defun/macro being
indented.

See (info "(elisp) Indenting Macros") and lisp-indent-function in
lisp-mode.el for the details.

    AndyM







  parent reply	other threads:[~2015-08-09 20:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09 16:36 Lisp mode doc, and Lisp indentation props Ian Zimmerman
2015-08-09 17:56 ` Andy Moreton
2015-08-09 18:17   ` Ian Zimmerman
2015-08-09 20:31     ` John Mastro
2015-08-09 20:51     ` Andy Moreton [this message]
2015-08-09 21:00       ` Michael Heerdegen
2015-08-10  0:00         ` Drew Adams
2015-08-09 18:07 ` Marcin Borkowski
2015-08-11  0:58 ` Emanuel Berg

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=86mvy0tccg.fsf@gmail.com \
    --to=andrewjmoreton@gmail.com \
    --cc=help-gnu-emacs@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.