On Fri, Sep 08 2006, David Kastrup wrote:

> Reiner Steib <[EMAIL PROTECTED]> 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...

| Error: Wrong type argument: integer-or-marker-p, key

I tried with...

(setq LaTeX-math-keymap '(keymap (96 . self-insert-command)))

(setq LaTeX-math-default
  '((?a "alpha" "Greek Lowercase" 945) ;; #X03B1
    ("v e" "varepsilon" "Greek Lowercase" 949))) ;; #X03B5

Then, edebugging `kbd' (a macro) shows that the argument received by
`kbd' is the *symbol* `key'.

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

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



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

Reply via email to