Changeset 6769


Ignore:
Timestamp:
Jun 20, 2007, 11:28:58 AM (17 years ago)
Author:
Gary Byers
Message:

Start to prompt for package; might be better to just (constantly)
search for it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/hemlock/src/echo.lisp

    r6756 r6769  
    155155            (write-string (apply #'format nil string args)
    156156                          *echo-area-stream*)
     157            ;; keep command loop from clearing the echo area,
     158            ;; by asserting that the echo area buffer's unmodified.
    157159            (setf (buffer-modified *echo-area-buffer*) t))))
    158160   (force-output *echo-area-stream*)
     
    434436    (parse-for-something)))
    435437
     438
     439
     440
     441;;;; Package names.
     442(defun make-package-string-table ()
     443  (let ((names ()))
     444    (dolist (p (list-all-packages))
     445      (let* ((name (package-name p)))
     446        (push (cons name name) names)
     447        (dolist (nick (package-nicknames p))
     448          (push (cons nick name) names))))
     449    (make-string-table :initial-contents names)))
     450
     451#||
     452(defun prompt-for-package (&key ((:must-exist *parse-value-must-exist*) t)
     453                                  (default nil defaultp)
     454                                  ((:default-string *parse-default-string*))
     455                                  ((:prompt *parse-prompt*) "Package Name:")
     456                                  ((:help *parse-help*) "Type a package name."))
     457||#
    436458
    437459
Note: See TracChangeset for help on using the changeset viewer.