auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] On TeX-newline


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] On TeX-newline
Date: Wed, 13 Apr 2016 17:18:29 +0200

Hi alex,

2016-04-12 21:10 GMT+02:00 alex <address@hidden>:
> 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è



reply via email to

[Prev in Thread] Current Thread [Next in Thread]