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?

--- 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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to