changeset 12313:eca218b0a8ca

(negative-argument, digit-argument): Set overriding-terminal-local-map like C-u. (universal-argument-map): Add binding for \e t.
author Richard M. Stallman <rms@gnu.org>
date Mon, 19 Jun 1995 16:15:06 +0000
parents 7816b2769014
children b55e6abc0f0e
files lisp/simple.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Mon Jun 19 15:36:11 1995 +0000
+++ b/lisp/simple.el	Mon Jun 19 16:15:06 1995 +0000
@@ -938,6 +938,7 @@
 (defconst universal-argument-map
   (let ((map (make-sparse-keymap)))
     (define-key map [t] 'universal-argument-other-key)
+    (define-key map (vector meta-prefix-char t) 'universal-argument-other-key)
     (define-key map [switch-frame] nil)
     (define-key map [?\C-u] 'universal-argument-more)
     (define-key map [?-] 'universal-argument-minus)
@@ -983,7 +984,8 @@
 	((eq arg '-)
 	 (setq prefix-arg nil))
 	(t
-	 (setq prefix-arg '-))))
+	 (setq prefix-arg '-)))
+  (setq overriding-terminal-local-map universal-argument-map))
 
 (defun digit-argument (arg)
   "Part of the numeric argument for the next command.
@@ -997,7 +999,8 @@
 	   ;; Treat -0 as just -, so that -01 will work.
 	   (setq prefix-arg (if (zerop digit) '- (- digit))))
 	  (t
-	   (setq prefix-arg digit)))))
+	   (setq prefix-arg digit))))
+  (setq overriding-terminal-local-map universal-argument-map))
 
 ;; For backward compatibility, minus with no modifiers is an ordinary
 ;; command if digits have already been entered.