Jim <[email protected]> writes:
> Oops, sorry, ConTeXt mode. Mea culpa!
>
> More complete example: enter
>
> \def\mymac#1
> {
> /#1/ or anything else you want here
> }
>
> And then go to the '{' line. Hit the tab key.
>
> Now you have
>
> \def\mymac#1
> {
> /#1/ or anything else you want here
> }
>
> The open brace really doesn't want to be out there, IMHO. (And I haven't
> seen any plain TeX or ConTeXt code indented like that. Don't know about
> LaTeX.)
Thanks. I agree, the indentation is wrong. Consider this code:
--8<---------------cut here---------------start------------->8---
\starttext
\def\mymac#1{
/#1/ or anything else you want here
}
\def\mymac#1{
/#1/ or anything else you want here
}
\def\yourmac#1#2{
text
}
\stoptext
%%% Local Variables:
%%% mode: ConTeXt
%%% TeX-master: t
%%% ConTeXt-Mark-version: "IV"
%%% End:
--8<---------------cut here---------------end--------------->8---
If you put the opening brace in the same line as \def, you get good
results. The indentation code in latex.el works as expected on how you
put insert the braces, i.e.:
--8<---------------cut here---------------start------------->8---
\def\mymac#1
{
/#1/ or anything else you want here
}
--8<---------------cut here---------------end--------------->8---
Do you want to try your examples in a file in LaTeX-mode?
I haven't checked, but I think this is part of the TODO in context.el:
;; 1. indentation still bad.
Best, Arash
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex