;;; -*-Scheme-*-
;;;
-;;; $Id: abbrev.scm,v 1.1 2000/02/28 22:50:55 cph Exp $
+;;; $Id: abbrev.scm,v 1.2 2000/02/29 01:34:47 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
(lambda (argument)
(let ((mode (ref-mode-object abbrev)))
(if (if argument
- (> (command-argument-value argument) 0)
+ (> (command-argument-numeric-value argument) 0)
(not (current-minor-mode? mode)))
(enable-current-minor-mode! mode)
(disable-current-minor-mode! mode)))))
;;; -*-Scheme-*-
;;;
-;;; $Id: basic.scm,v 1.136 2000/02/28 22:50:14 cph Exp $
+;;; $Id: basic.scm,v 1.137 2000/02/29 01:34:38 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
;;;
(define-command self-insert-command
"Insert the character you type.
Whichever character you type to run this command is inserted."
- "p"
- (lambda (n)
+ "P"
+ (lambda (argument)
(let ((char (last-command-key)))
(if (not (char? char))
(editor-error "self-insert-command only works on character keys."))
- (self-insert char n #t))))
+ (self-insert char (command-argument-numeric-value argument) #t))))
(define (self-insert char n allow-auto-fill?)
(and (> n 0)
"P"
(lambda (argument)
(let ((m* (mark-right-inserting (current-point))))
- (insert-newlines (or (command-argument-value argument) 1))
+ (insert-newlines (command-argument-numeric-value argument))
(set-current-point! m*))))
\f
(define-command narrow-to-region
;;; -*-Scheme-*-
;;;
-;;; $Id: comred.scm,v 1.116 2000/02/28 22:50:03 cph Exp $
+;;; $Id: comred.scm,v 1.117 2000/02/29 01:34:55 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
;;;
(or (command-argument-value (command-argument))
(prompt-for-number prompt false))))
((#\p)
- (prefix (or (command-argument-value (command-argument)) 1)))
+ (prefix (command-argument-numeric-value (command-argument))))
((#\P)
(prefix (command-argument)))
((#\r)