* David Kastrup (2005-11-01) writes:

> Ralf Angeli <[EMAIL PROTECTED]> writes:
>
>> Also, does anybody know why
>> `TeX-electric-escape'/`TeX-electric-macro' is implemented in a way
>> that Emacs has to be restarted for a change of `TeX-electric-escape'
>> to take effect?  If nobody objects I can change it, so that typing
>> `\' will always call `TeX-electric-macro' (maybe renamed) and the
>> function will then check the value of `TeX-electric-escape'.
>
> I don't feel that is a good idea.  Wouldn't it break the TeX input
> method, for example?

Experimenting with

(progn
  (defun foo ()
    (interactive)
    (self-insert-command 1)
    (message "Rhabarber"))
  (global-set-key "\\" 'foo)
  (switch-to-buffer (get-buffer-create "*temp*"))
  (set-input-method "TeX"))

didn't show any negative effects.  I'll check what happens if
`TeX-mode-map' is used instead of the global keymap.

-- 
Ralf


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

Reply via email to