[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Re: Defining LaTeX-math-list
From: |
Reiner Steib |
Subject: |
[AUCTeX] Re: Defining LaTeX-math-list |
Date: |
Fri, 08 Sep 2006 18:30:15 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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...
| 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/
- Re: [AUCTeX] Defining LaTeX-math-list, (continued)
- Re: [AUCTeX] Defining LaTeX-math-list, David Kastrup, 2006/09/04
- [AUCTeX] Re: Defining LaTeX-math-list, Andreas Matthias, 2006/09/05
- Re: [AUCTeX] Re: Defining LaTeX-math-list, Ralf Angeli, 2006/09/05
- [AUCTeX] Re: Defining LaTeX-math-list, Andreas Matthias, 2006/09/06
- Re: [AUCTeX] Re: Defining LaTeX-math-list, David Kastrup, 2006/09/06
- Re: [AUCTeX] Re: Defining LaTeX-math-list, Ralf Angeli, 2006/09/06
- Re: [AUCTeX] Re: Defining LaTeX-math-list, David Kastrup, 2006/09/06
[AUCTeX] Re: Defining LaTeX-math-list, Reiner Steib, 2006/09/08