Hi alex,

2016-04-12 21:10 GMT+02:00 alex <[email protected]>:
> Hi,
>
> As it stands, `TeX-newline' doesn't respect `electric-indent-mode'. It calls
> `TeX-newline-function' non-interactively, which disables the electric
> indentation that `newline' would normally do when `electric-indent-mode` is
> enabled. I know that setting this variable to `newline-and-indent' would
> work,
> but all other modes that use `newline' work out of the box.
>
> Is this intentional? It would be solved by using `call-interactively'
> instead of
> `funcall', but there's still the issue of no arguments being passed into
> `TeX-newline-function'.
>
> Though I don't really see the point in this variable/function in the first
> place. Why not tell people interested in changing behaviour to put the
> relevant
> define-key call in their init file?

electric-indent-mode came into Emacs only with version 24.1, AUCTeX
supports Emacs down to version 21.1.  About the "Is this intentional?"
question I can guess that it's so because it's more comfortable to
customize an option than to rebind a key for inexperienced users, but
I'm not sure about it.

Bye,
Mosè

_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to