Change logic to retain REQUIRE-MATCH? option for later use when
authorChris Hanson <org/chris-hanson/cph>
Mon, 7 May 2001 18:44:35 +0000 (18:44 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 7 May 2001 18:44:35 +0000 (18:44 +0000)
verifying values.

v7/src/edwin/prompt.scm

index 1d9aa8d1e8d3c278ba27982e4f3e062d7678944d..3a64427a1204831f83a5fbbde253877021101203 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: prompt.scm,v 1.192 2001/05/07 18:37:15 cph Exp $
+;;; $Id: prompt.scm,v 1.193 2001/05/07 18:44:35 cph Exp $
 ;;;
 ;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology
 ;;;
   (list-completions #f read-only #t)
   (verify-final-value #f read-only #t)
   (default-type 'VISIBLE-DEFAULT)
-  (confirm-completion? #f)
+  (require-match? #f)
   (case-insensitive-completion? #f)
   (history #f)
   (history-index -1))
     (if require-match?
        (set-options/mode! options
                           (ref-mode-object minibuffer-local-must-match)))
-    (set-options/confirm-completion?! options (eq? 'CONFIRM require-match?))))
+    (set-options/require-match?! options require-match?)))
+
+(define (options/confirm-completion? options)
+  (eq? 'CONFIRM (options/require-match? options)))
 \f
 ;;;; Prompt History Mechanism
 
@@ -623,8 +626,7 @@ a repetition of this command will exit."
              (complete-string original
                (lambda (string)
                  (let ((verified?
-                        (if (eq? (ref-mode-object minibuffer-local-must-match)
-                                 (options/mode *options*))
+                        (if (options/require-match? *options*)
                             ((options/verify-final-value *options*) string)
                             #t)))
                    (set! effected? #t)