Changeset 7913
- Timestamp:
- Dec 14, 2007, 4:26:09 PM (17 years ago)
- Location:
- branches/event-ide/ccl/cocoa-ide/hemlock/src
- Files:
-
- 11 edited
-
buffer.lisp (modified) (1 diff)
-
command.lisp (modified) (4 diffs)
-
edit-defs.lisp (modified) (2 diffs)
-
filecoms.lisp (modified) (1 diff)
-
isearchcoms.lisp (modified) (1 diff)
-
killcoms.lisp (modified) (4 diffs)
-
lispmode.lisp (modified) (2 diffs)
-
listener.lisp (modified) (1 diff)
-
morecoms.lisp (modified) (2 diffs)
-
package.lisp (modified) (1 diff)
-
register.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/event-ide/ccl/cocoa-ide/hemlock/src/buffer.lisp
r7844 r7913 331 331 ;; establish a new (empty) region at point. 332 332 (unless (%buffer-current-region-p b) 333 (push- buffer-mark (copy-mark point)t))333 (push-new-buffer-mark point t)) 334 334 point)) 335 335 -
branches/event-ide/ccl/cocoa-ide/hemlock/src/command.lisp
r7844 r7913 307 307 "Sets the current region from point to the end of the buffer." 308 308 (declare (ignore p)) 309 ( push-buffer-mark (buffer-end (copy-mark (current-point))) t))309 (buffer-end (push-new-buffer-mark (current-point) t))) 310 310 311 311 (defcommand "Mark to Beginning of Buffer" (p) … … 313 313 "Sets the current region from the beginning of the buffer to point." 314 314 (declare (ignore p)) 315 ( push-buffer-mark (buffer-start (copy-mark (current-point))) t))315 (buffer-start (push-new-buffer-mark (current-point) t))) 316 316 317 317 (defcommand "Beginning of Buffer" (p) … … 320 320 (declare (ignore p)) 321 321 (let ((point (current-point-collapsing-selection))) 322 (push- buffer-mark (copy-mark point))322 (push-new-buffer-mark point) 323 323 (buffer-start point))) 324 324 … … 328 328 (declare (ignore p)) 329 329 (let ((point (current-point-collapsing-selection))) 330 (push- buffer-mark (copy-mark point))330 (push-new-buffer-mark point) 331 331 (buffer-end point))) 332 332 -
branches/event-ide/ccl/cocoa-ide/hemlock/src/edit-defs.lisp
r7911 r7913 151 151 (string-upcase name) *last-go-to-def-string*))) 152 152 (if (eq buffer (current-buffer)) 153 (push- buffer-mark (copy-mark point)))153 (push-new-buffer-mark point)) 154 154 (move-mark point def-mark)))) 155 155 (t … … 161 161 (string-upcase name) *last-go-to-def-string*)) 162 162 (let ((point (current-point))) 163 (push- buffer-mark (copy-mark point))163 (push-new-buffer-mark point) 164 164 (move-mark point m)))))))) 165 165 |# -
branches/event-ide/ccl/cocoa-ide/hemlock/src/filecoms.lisp
r7911 r7913 278 278 (region (region start end))) 279 279 (setv pathname-defaults pn) 280 (push- buffer-mark (copy-mark end))280 (push-new-buffer-mark end) 281 281 (read-file pn end) 282 282 (make-region-undo :delete "Insert File" region))) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/isearchcoms.lisp
r7898 r7913 133 133 (let* ((iss (make-isearch-state :direction direction 134 134 :start-region (current-region-info)))) 135 (push- buffer-mark (copy-mark (current-point)))135 (push-new-buffer-mark (current-point)) 136 136 (setf (value i-search-state) iss) 137 137 (%i-search-message iss))) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/killcoms.lisp
r7844 r7913 145 145 (%buffer-push-buffer-mark (current-buffer) mark activate-region)) 146 146 147 (defun push-new-buffer-mark (mark &optional (activate-region nil)) 148 "Pushes a new mark at argument position" 149 (push-buffer-mark (copy-mark mark :right-inserting) activate-region)) 147 150 148 151 (defcommand "Set/Pop Mark" (p) … … 154 157 "Set or Pop the mark ring." 155 158 (cond ((not p) 156 (push- buffer-mark (copy-mark (current-point)) t)159 (push-new-buffer-mark (current-point) t) 157 160 (message "Mark pushed.")) 158 161 ((= p (value universal-argument-default)) … … 197 200 (end (region-end region)) 198 201 (point (current-point))) 199 (push- buffer-mark (copy-mark point))200 (cond (p (push- buffer-mark (copy-mark start)t)202 (push-new-buffer-mark point) 203 (cond (p (push-new-buffer-mark start t) 201 204 (move-mark point end)) 202 (t (push- buffer-mark (copy-mark end)t)205 (t (push-new-buffer-mark end t) 203 206 (move-mark point start))))) 204 207 … … 474 477 (let* ((region (ring-ref *kill-ring* idx)) 475 478 (point (current-point-for-insertion)) 476 (mark (copy-mark point))) 477 (push-buffer-mark mark) 479 (mark (push-new-buffer-mark point))) 478 480 (insert-region point region) 479 481 (make-region-undo :delete "Un-Kill" -
branches/event-ide/ccl/cocoa-ide/hemlock/src/lispmode.lisp
r7911 r7913 1411 1411 (pre-command-parse-check m) 1412 1412 (let ((count (or p 1)) 1413 (mark (push- buffer-mark (copy-mark m)t)))1413 (mark (push-new-buffer-mark m t))) 1414 1414 (if (form-offset m count) 1415 1415 (move-mark mark m) … … 1430 1430 (t 1431 1431 (move-mark point start) 1432 (move-mark (push- buffer-mark (copy-mark point)t) end))))))1432 (move-mark (push-new-buffer-mark point t) end)))))) 1433 1433 1434 1434 (defcommand "Forward Kill Form" (p) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/listener.lisp
r7844 r7913 398 398 (region (copy-mark start) (copy-mark end)))))) 399 399 (buffer-end point) 400 (push- buffer-mark (copy-mark point))400 (push-new-buffer-mark point) 401 401 (insert-region point region) 402 402 (setf (last-command-type) :ephemerally-active)))) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/morecoms.lisp
r7898 r7913 313 313 (point (current-point))) 314 314 (with-mark ((ipoint point :left-inserting)) 315 (let ((save-end2-loc (push- buffer-mark (copy-mark end2))))315 (let ((save-end2-loc (push-new-buffer-mark end2))) 316 316 (ninsert-region (move-mark ipoint end2) region1) 317 (push- buffer-mark (copy-mark ipoint))317 (push-new-buffer-mark ipoint) 318 318 (cond (adjacent-p 319 (push- buffer-mark (copy-mark start2))319 (push-new-buffer-mark start2) 320 320 (move-mark point save-end2-loc)) 321 (t (push- buffer-mark (copy-mark end1))321 (t (push-new-buffer-mark end1) 322 322 (ninsert-region (move-mark ipoint end1) region2) 323 323 (move-mark point ipoint)))))) … … 400 400 (declare (simple-string name)) 401 401 (cond ((not againp) 402 (push- buffer-mark (copy-mark point)))402 (push-new-buffer-mark point)) 403 403 ((string-equal name *goto-page-last-string*) 404 404 (setf dir (nthcdr *goto-page-last-num* dir)) -
branches/event-ide/ccl/cocoa-ide/hemlock/src/package.lisp
r7911 r7913 71 71 #:pop-buffer-mark 72 72 #:push-buffer-mark 73 #:push-new-buffer-mark 73 74 #:change-to-buffer 74 75 #:make-buffer -
branches/event-ide/ccl/cocoa-ide/hemlock/src/register.lisp
r7833 r7913 179 179 (editor-error "Register ~A does not hold a region." reg-name)) 180 180 (let ((point (current-point))) 181 (push- buffer-mark (copy-mark point))182 (insert-region (current-point)(car val))))181 (push-new-buffer-mark point) 182 (insert-region point (car val)))) 183 183 (setf (last-command-type) :ephemerally-active))
Note:
See TracChangeset
for help on using the changeset viewer.
