;;; -*-Scheme-*-
;;;
-;;; $Id: compile.scm,v 1.7 1999/01/28 06:03:23 cph Exp $
+;;; $Id: compile.scm,v 1.8 1999/01/28 06:10:20 cph Exp $
;;;
;;; Copyright (c) 1992-1999 Massachusetts Institute of Technology
;;;
(list (prompt-for-string "Compile command"
(ref-variable compile-command)
'DEFAULT-TYPE 'INSERTED-DEFAULT
- 'HISTORY 'COMPILE)))
+ 'HISTORY 'COMPILE
+ 'HISTORY-DEFAULT #t)))
(lambda (command)
(set-variable! compile-command command)
(run-compilation command)))
(lambda ()
(list (prompt-for-string "Run grep (with args): " #f
'DEFAULT-TYPE 'INSERTED-DEFAULT
- 'HISTORY 'GREP)))
+ 'HISTORY 'GREP
+ 'HISTORY-DEFAULT #t)))
(lambda (command)
(run-compilation (string-append "grep -n " command " /dev/null"))))
(lambda ()
(list (prompt-for-string "Run fgrep (with args): " #f
'DEFAULT-TYPE 'INSERTED-DEFAULT
- 'HISTORY 'FGREP)))
+ 'HISTORY 'FGREP
+ 'HISTORY-DEFAULT #t)))
(lambda (command)
(run-compilation (string-append "grep -n " command " /dev/null"))))
;;; -*-Scheme-*-
;;;
-;;; $Id: prompt.scm,v 1.177 1999/01/28 05:59:00 cph Exp $
+;;; $Id: prompt.scm,v 1.178 1999/01/28 06:10:14 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology
;;;
'SET-PROMPT-HISTORY-STRINGS!))
(set-cdr! (name->history name) strings))
-(define-prompt-option 'HISTORY symbol?
- (lambda (options history)
- (set-options/history! options history)
- (history->default-string options)))
+(define-simple-option 'HISTORY symbol?)
+(define-simple-option 'HISTORY-INDEX exact-nonnegative-integer?)
-(define-prompt-option 'HISTORY-INDEX exact-nonnegative-integer?
- (lambda (options index)
- (set-options/history-index! options index)
+(define-prompt-option 'HISTORY-DEFAULT (lambda (x) x #t)
+ (lambda (options ignore)
+ ignore
(history->default-string options)))
(define (history->default-string options)
(prompt-for-string "Redo" #f
'DEFAULT-TYPE 'INSERTED-DEFAULT
'HISTORY 'REPEAT-COMPLEX-COMMAND
- 'HISTORY-INDEX (- argument 1))))))
+ 'HISTORY-INDEX (- argument 1)
+ 'HISTORY-DEFAULT #t)))))
\f
;;; Password Prompts