Hi, 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 4196,4198c4196 < (let ((map (make-sparse-keymap))) < (define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command) < map) --- > (make-sparse-keymap) 4271c4269,4271 < (cdr parent)))))))))) --- > (cdr parent))))))))) > (unless (lookup-key map (LaTeX-math-abbrev-prefix)) > (define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command)))
4196,4198c4196 < (let ((map (make-sparse-keymap))) < (define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command) < map) --- > (make-sparse-keymap) 4271c4269,4271 < (cdr parent)))))))))) --- > (cdr parent))))))))) > (unless (lookup-key map (LaTeX-math-abbrev-prefix)) > (define-key map (LaTeX-math-abbrev-prefix) 'self-insert-command)))
_______________________________________________ auctex-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex-devel
