Ralf Angeli <[EMAIL PROTECTED]> writes:
> (defun TeX-newline ()
> "Call the function specified by the variable `TeX-newline-function'."
> (interactive) (funcall TeX-newline-function))
> @@ -3311,6 +3326,8 @@
> (define-key map "\C-c\C-m" 'TeX-insert-macro)
> (if TeX-electric-escape
> (define-key map "\\" 'TeX-electric-macro))
> + (define-key map "^" 'TeX-insert-sub-or-superscript)
> + (define-key map "_" 'TeX-insert-sub-or-superscript)
If we have those for _ and ^ in our release, then it does not seem to
make much sense to do \ conditionally. I think we should then have
TeX-maybe-electric-macro bound to \, and that should look something
like
(defun TeX-maybe-electric-macro (???) (interactive "???")
(if TeX-electric-escape (TeX-insert-macro ???)
(self-insert-command ???)))
That way the complaint that TeX-electric escape can't be changed in
session would go away. Sure, there might be some problem we did not
yet notice, but the same holds for _ and ^, so it seems pointless to
wait.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel