[slime-devel] Re: [patch] a way to specify custom Emacs indentation right in the Lisp source

Michael Livshin gmane at cmm.kakpryg.net
Mon Aug 27 14:15:13 UTC 2007


Matthias Koeppe <mkoeppe+slime at mail.math.uni-magdeburg.de> writes:

> Michael Livshin <gmane at cmm.kakpryg.net> writes:
>> using the underappreciated CL feature called "symbol property lists"
>> [... using the ...]
>> :EMACS-INDENTATION keyword 
>
> Can you prepare a patch (including documentation for the SLIME manual)
> based on this simplified idea?

sure,
--m

2007-08-27  Michael Livshin <slime at cmm.kakpryg.net>

	Allow manual indentation tuning through the :emacs-indentation
	symbol property.

	* slime.el (slime-handle-indentation-update): Clean up the
	indentation	spec that comes from Swank by removing any package
	prefixes.
	(slime-clean-indent-spec): ...by calling this new function.
	* swank.lisp (symbol-indentation): Look at the value of the
	:emacs-indentation property and use that if present.
	* doc/slime.texi: Briefly document this in the "Semantic indentation"
	section.  Perhaps should also describe what indentation specs should
	look like...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 3922 bytes
Desc: :emacs-indentation support
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20070827/d2e95c7c/attachment.diff>


More information about the slime-devel mailing list