[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 16:22:39 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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?
--- latex.el 01 Sep 2006 11:40:40 +0200 5.419
+++ latex.el 08 Sep 2006 16:18:45 +0200
@@ -3609,7 +3609,8 @@
:group 'LaTeX-math
:type '(repeat (group (choice :tag "Key"
(const :tag "none" nil)
- (character))
+ (choice (character)
+ (string :tag "Key sequence")))
(choice :tag "Value"
(string :tag "Macro")
(function))
@@ -4206,7 +4207,9 @@
(setq name value))
(if key
(progn
- (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))))
(define-key map key name)))
(if menu
(let ((parent LaTeX-math-menu))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- [AUCTeX] Defining LaTeX-math-list, Andreas Matthias, 2006/09/04
- 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