[Top][All Lists]

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

[AUCTeX-devel] Re: [AUCTeX-diffs] Changes to auctex/tex.el

From: David Kastrup
Subject: [AUCTeX-devel] Re: [AUCTeX-diffs] Changes to auctex/tex.el
Date: Sat, 05 Nov 2005 13:13:17 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> 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

(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

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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