diff lisp/utils/edmacro.el @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents 43dd3413c7c7
children 8eaf7971accc
line wrap: on
line diff
--- a/lisp/utils/edmacro.el	Mon Aug 13 09:42:28 2007 +0200
+++ b/lisp/utils/edmacro.el	Mon Aug 13 09:43:35 2007 +0200
@@ -5,7 +5,7 @@
 ;; Author: Dave Gillespie <daveg@synaptics.com>
 ;;         Hrvoje Niksic <hniksic@srce.hr>  -- XEmacs port
 ;; Maintainer: Hrvoje Niksic <hniksic@srce.hr>
-;; Version: 3.15
+;; Version: 3.16
 ;; Keywords: abbrev
 
 ;; This file is part of XEmacs.
@@ -538,6 +538,12 @@
 	      (if (/= (length word) 2)
 		  (error "^ must be followed by one character"))
 	      `((control ,(aref word 1))))
+	     ((string-match "^M--?[0-9]+$" word)
+	      ;; Special case: M- followed by an optional hyphen and
+	      ;; one or more digits
+	      (mapcar (lambda (digit)
+			(list 'meta digit))
+		      (substring word 2)))
 	     ((string-match "^\\([MCSsAH]\\|Sh\\)-" word)
 	      ;; Parse C-* and stuff
 	      (list