Changeset 6705


Ignore:
Timestamp:
Jun 12, 2007, 12:47:22 PM (17 years ago)
Author:
Gary Byers
Message:

current-point-for-deletion in listener c-d.


File:
1 edited

Legend:

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

    r6665 r6705  
    145145(add-hook listener-mode-hook 'listener-mode-lisp-mode-hook)
    146146
    147 (defhvar "Editor Definition Info"
    148   "When this is non-nil, the editor Lisp is used to determine definition
    149    editing information; otherwise, the slave Lisp is used."
    150   :value t
    151   :mode "Listener")
    152 
    153 #|
    154 (defvar *selected-eval-buffer* nil)
    155 
    156 (defcommand "Select Listener Buffer" (p)
    157   "Goto buffer in \"Listener\" mode, creating one if necessary."
    158   "Goto buffer in \"Listener\" mode, creating one if necessary."
    159   (declare (ignore p))
    160   (unless *selected-eval-buffer*
    161     (when (getstring "Listenere" *buffer-names*)
    162       (editor-error "There is already a buffer named \"Listener\"!"))
    163     (setf *selected-eval-buffer*
    164           (make-buffer "Listener"
    165                        :delete-hook
    166                        (list #'(lambda (buf)
    167                                  (declare (ignore buf))
    168                                  (setf *selected-eval-buffer* nil)))))
    169     (setf (buffer-minor-mode *selected-eval-buffer* "Listener") t))
    170   (change-to-buffer *selected-eval-buffer*))
    171 |#
     147
     148
    172149
    173150
     
    230207  "Send :POP if input-mark is at buffer's end, else delete forward character."
    231208  (let* ((input-mark (value buffer-input-mark))
    232          (point (current-point)))
     209         (point (current-point-for-deletion)))
    233210    (if (and (null (next-character point))
    234211             (null (next-character input-mark)))
     
    238215             
    239216
    240 (defcommand "Abort Listener Input" (p)
    241   "Move to the end of the buffer and prompt."
    242   "Move to the end of the buffer and prompt."
    243   (declare (ignore p))
    244   (let ((point (current-point)))
    245     (buffer-end point)
    246     (insert-character point #\newline)
    247     (insert-string point "Aborted.")
    248     (insert-character point #\newline)
    249     (insert-string point (get-prompt))
    250     (move-mark (value buffer-input-mark) point)))
     217
    251218
    252219
     
    453420  (setf (buffer-minor-mode buffer "Editor") t))
    454421
    455 (defhvar "Editor Definition Info"
    456   "When this is non-nil, the editor Lisp is used to determine definition
    457    editing information; otherwise, the slave Lisp is used."
    458   :value t
    459   :mode "Editor")
     422
    460423
    461424(defcommand "Editor Compile Defun" (p)
Note: See TracChangeset for help on using the changeset viewer.