[Top][All Lists]

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

[AUCTeX-devel] Math prefix binding in LaTeX-math-keymap

From: Augusto Ritter Stoffel
Subject: [AUCTeX-devel] Math prefix binding in LaTeX-math-keymap
Date: Tue, 09 Jun 2009 20:29:53 -0300


In LaTeX-math-keymap initialization, LaTeX-math-abbrev-prefix is bound
to self-insert-command, so that trying to bind say "` ` e" to
\varepsilon via LaTeX-math-list causes an error.

Therefore, I think that binding LaTeX-math-abbrev-prefix to
self-insert-command should be done only after we are sure the user won't
use it as a prefix.

I have written some code to do that, which seems to work. If you think
this change is worthwhile, I will be glad to help, but I don't know
exactly how to send it.

Diff'ing latex.el version 11.85 and my version yields

<   (let ((map (make-sparse-keymap)))
<     (define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command)
<     map)
>   (make-sparse-keymap)
<                             (cdr parent))))))))))
>                             (cdr parent)))))))))
>   (unless (lookup-key map (LaTeX-math-abbrev-prefix))
>     (define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command)))

Attachment: latex-diff
Description: Text document

reply via email to

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