branch: elpa
commit 56c1afdb4f18fade14341917c699cb54c9a4f107
Author: Mosè Giordano <[email protected]>
Commit: Mosè Giordano <[email protected]>
Call TeX-newline-function interactively
* tex.el (TeX-newline): Replace `funcall' with `call-interactively'.
This makes `electric-indent-mode' work out-of-the-box. Suggested by
alex (http://comments.gmane.org/gmane.emacs.auctex.devel/4631).
---
tex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tex.el b/tex.el
index 43a70fa..b85a72a 100644
--- a/tex.el
+++ b/tex.el
@@ -4861,7 +4861,7 @@ Brace insertion is only done if point is in a math
construct and
(defun TeX-newline ()
"Call the function specified by the variable `TeX-newline-function'."
- (interactive) (funcall TeX-newline-function))
+ (interactive) (call-interactively TeX-newline-function))
(defvar TeX-mode-map
(let ((map (make-sparse-keymap)))