Changeset 668


Ignore:
Timestamp:
Mar 18, 2004, 4:44:46 PM (21 years ago)
Author:
Gary Byers
Message:

Quoted-insert sets up command-info function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/hemlock/src/command.lisp

    r629 r668  
    6464  With prefix argument, insert the character that many times."
    6565  "Reads a key-event from *editor-input* and inserts it at the point."
    66   (let ((char (hemlock-ext:key-event-char (get-key-event *editor-input* t)))
    67         (point (current-point)))
    68     (unless char (editor-error "Can't insert that character."))
    69     (if (and p (> p 1))
    70         (insert-string point (make-string p :initial-element char))
    71         (insert-character point char))))
     66  (setf (hi::command-interpreter-info-function hi::*current-command-info*)
     67        #'(lambda (key-event)
     68            (let* ((char (hemlock-ext:key-event-char key-event))
     69                   (point (current-point)))
     70              (unless char (editor-error "Can't insert that character."))
     71              (if (and p (> p 1))
     72                (insert-string point (make-string p :initial-element char))
     73                (insert-character point char))))))
    7274
    7375(defcommand "Forward Character" (p)
Note: See TracChangeset for help on using the changeset viewer.