Changeset 587


Ignore:
Timestamp:
Feb 28, 2004, 1:23:22 AM (21 years ago)
Author:
Gary Byers
Message:

More changes for Cocoa Hemlock.

Location:
trunk/ccl/hemlock/src
Files:
8 edited

Legend:

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

    r569 r587  
    6565(bind-key "Scroll Next Window Up" #k"control-meta-V")
    6666
    67 (bind-key "Process File Options" #k"control-meta-m")
    68 (bind-key "Ensure File Options Line" #k"control-meta-M")
     67(bind-key "Process File Options" #k"control-x m" :global)
     68(bind-key "Ensure File Options Line" #k"control-meta-M" :global)
    6969(bind-key "Help" #k"home")
    7070(bind-key "Help" #k"control-_")
     
    9090(bind-key "Find File" #k"control-x control-f")
    9191(bind-key "Backup File" #k"control-x meta-b")
    92 (bind-key "Save All Files" #k"control-x control-m")
    93 (bind-key "Save All Files" #k"control-x return")
    94 (bind-key "Save All Files and Exit" #k"control-x meta-z")
     92;(bind-key "Save All Files" #k"control-x control-m")
     93;(bind-key "Save All Files" #k"control-x return")
     94;(bind-key "Save All Files and Exit" #k"control-x meta-z")
    9595
    9696(bind-key "List Buffers" #k"control-x control-b")
  • trunk/ccl/hemlock/src/cocoa-hemlock.lisp

    r569 r587  
    3333  (setq *current-window* new-window))
    3434
     35;;; This is a public variable.
     36;;;
     37(defvar *last-key-event-typed* ()
     38  "This variable contains the last key-event typed by the user and read as
     39   input.")
     40
     41(defvar *input-transcript* ())
  • trunk/ccl/hemlock/src/filecoms.lisp

    r569 r587  
    235235              (funcall (cdr hook) buffer type)
    236236              (setq mode (buffer-major-mode buffer)))))
    237         (with-mark ((mark (buffer-start-mark buffer)))
     237        (with-mark ((mark (buffer-start-mark buffer) :left-inserting))
    238238          (if (string-equal mode "Lisp")
    239239            (let* ((package-name
  • trunk/ccl/hemlock/src/htext1.lisp

    r569 r587  
    191191                 (buffer-unmodified-tick ,b))
    192192          (invoke-hook hemlock::buffer-modified-hook ,b t))
    193         (setf (buffer-modified-tick ,b) (tick)))
     193        (setf (buffer-modified ,b) t))
    194194      (unwind-protect
    195195           (progn
  • trunk/ccl/hemlock/src/htext3.lisp

    r569 r587  
    7171    (declare (simple-string string))
    7272    (unless (zerop (- end start))
    73       (modifying-buffer
    74        buffer
    75        (modifying-line line mark)
    76        (if (%sp-find-character string start end #\newline)
    77          (with-mark ((mark mark :left-inserting))
     73      (if (%sp-find-character string start end #\newline)
     74        (with-mark ((mark mark :left-inserting))
    7875           (do ((left-index start (1+ right-index))
    7976                (right-index
     
    8582             (insert-string mark string left-index right-index)
    8683             (insert-character mark #\newline)))
     84        (modifying-buffer
     85         buffer
     86         (modifying-line line mark)
    8787         (let ((length (- end start)))
    8888           (if (<= *right-open-pos* (+ *left-open-pos* end))
     
    9999              (let ((new (+ *left-open-pos* length)))
    100100                (%sp-byte-blt string start *open-chars* *left-open-pos* new)
    101                 (setq *left-open-pos* new))))))
    102        (buffer-note-insertion buffer mark (- end start))))))
     101                (setq *left-open-pos* new)))))
     102         (buffer-note-insertion buffer mark (- end start)))))))
    103103
    104104
  • trunk/ccl/hemlock/src/modeline.lisp

    r569 r587  
    219219  "This is the default value for \"Default Modeline Fields\".")
    220220
     221(defun %init-redisplay ()
     222  (add-hook hemlock::buffer-major-mode-hook 'queue-buffer-change)
     223  (add-hook hemlock::buffer-minor-mode-hook 'queue-buffer-change)
     224  (add-hook hemlock::buffer-name-hook 'queue-buffer-change)
     225  (add-hook hemlock::buffer-pathname-hook 'queue-buffer-change)
     226  (add-hook hemlock::buffer-modified-hook 'queue-buffer-change)
     227  (add-hook hemlock::window-buffer-hook 'queue-window-change))
     228
     229(defun queue-buffer-change (buffer &optional something-else another-else)
     230  (declare (ignore something-else another-else))
     231  (dolist (w (buffer-windows buffer))
     232    (invalidate-modeline w)))
  • trunk/ccl/hemlock/src/streams.lisp

    r6 r587  
    228228;;;; Stuff to support keyboard macros.
    229229
     230#+later
     231(progn
     232 
    230233(defstruct (kbdmac-stream
    231234            (:include editor-input
     
    262265  (setf (kbdmac-stream-buffer stream) input)
    263266  stream)
     267)
  • trunk/ccl/hemlock/src/struct.lisp

    r569 r587  
    104104  (delete-hook nil)           ; List of functions to call upon deletion.
    105105  (external-format :unix)     ; Line-termination, for the time being
     106  process                     ; Maybe a listener
    106107  )
    107108
Note: See TracChangeset for help on using the changeset viewer.