[Top][All Lists]

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

Re: [AUCTeX] Re: Defining LaTeX-math-list

From: David Kastrup
Subject: Re: [AUCTeX] Re: Defining LaTeX-math-list
Date: Fri, 08 Sep 2006 18:49:19 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Reiner Steib <address@hidden> writes:

> On Fri, Sep 08 2006, David Kastrup wrote:
>> Reiner Steib <address@hidden> writes:
>>> On Mon, Sep 04 2006, David Kastrup wrote:
>>> IIRC, I once tried to add this, but I couldn't figure out quickly how
>>> to represent `v f' in `LaTeX-math-default'.  According to the custom
>>> type of the "Key" in `LaTeX-math-list', key sequences are not allowed.
>> Does the following change work for you?
>> -        (setq key (if (numberp key) (char-to-string key) (vector key)))
>> +        (setq key (cond ((numberp key) (char-to-string key))
>> +                        ((stringp key) (kbd key))
>> +                        (t (vector key))))
> No, compiling `latex.el' fails while evaluating this form...
> (let ((math (reverse (append LaTeX-math-list LaTeX-math-default)))
>       (map LaTeX-math-keymap)
>       (unicode (and LaTeX-math-menu-unicode (fboundp 'decode-char))))
> with...
> Then, edebugging `kbd' (a macro) shows that the argument received by
> `kbd' is the *symbol* `key'.

Uh, yes.

> When using `read-kbd-macro' instead of `kbd' it compiles, and is
> seems to work.  So I committed it and added keys for \var*.


David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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