>>> The specification has to come with feature and/or the language, not the >>> tool. How would Emacs know about it? Or Notepad? Every editor — and every >>> tool in the tool chain — must know what indentation means if it may touch >>> it.
My goal here is not for Emacs to know how to indent things perfectly, it is merely to ensure that Emacs or my merge tool have not made a hash of it. Also, perhaps more importantly, it should ensure that other contributors' editors haven't made a hash of it! This is a much easier problem! > How would a library express indentation rules? Would indentation rules meant > for s-expression languages be useful in at-exp or sweet-exp notations? At least in Elisp, indentation rules are specified by using a "declare" form in a macro definition [1]. racket-mode for Emacs also allows a similar customization of indentation by setting properties on symbol plists, which provides something about as expressive as the DrRacket configuration dialog. A good indenter for Racket would probably need to macroexpand the source, but I imagine that something like a designated submodule could contain indentation specifications in a similar format. [1]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Indenting-Macros.html#Indenting-Macros I don't know how to properly indent things from other readers, though. /David -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

