[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 |

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)))*

**
**`latex-diff`

*Description:* Text document

**[AUCTeX-devel] Math prefix binding in LaTeX-math-keymap**,
*Augusto Ritter Stoffel* **<=**