Changeset 6605


Ignore:
Timestamp:
May 25, 2007, 5:03:51 AM (18 years ago)
Author:
Gary Byers
Message:

Don't use "active regions" concept.

Stuff pushed on the kill ring goes to the clipboard.

File:
1 edited

Legend:

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

    r779 r6605  
    2727  "When set, some commands that affect the current region only work when the
    2828   region is active."
    29   :value t)
     29  :value nil)
    3030
    3131(defhvar "Highlight Active Region"
     
    226226               (eq last-type :char-kill-backward))
    227227           (when *delete-char-region*
    228              (ring-push *delete-char-region* *kill-ring*)
     228             (kill-ring-push *delete-char-region*)
    229229             (setf *delete-char-region* nil))
    230230           (setf region (kill-region-top-of-ring region current-type)))
    231231          ((zerop (ring-length *kill-ring*))
    232232           (setf region (delete-and-save-region region))
    233            (ring-push region *kill-ring*))
     233           (kill-ring-push region))
    234234          ((or (eq last-type :kill-forward) (eq last-type :kill-backward))
    235235           (setf region (kill-region-top-of-ring region current-type)))
    236236          (t
    237237           (setf region (delete-and-save-region region))
    238            (ring-push region *kill-ring*)))
     238           (kill-ring-push region)))
    239239    (make-region-undo :insert "kill" (copy-region region) insert-mark)
    240240    (setf (last-command-type) current-type)))
     
    310310          (t
    311311           (when *delete-char-region*
    312              (ring-push *delete-char-region* *kill-ring*)
     312             (kill-ring-push *delete-char-region*)
    313313             (setf *delete-char-region* nil))
    314314           (let ((r (ring-ref *kill-ring* 0)))
     
    322322                     :kill-backward))))))
    323323
     324(defun kill-ring-push (region)
     325  (hi::region-to-clipboard region)
     326  (ring-push region *kill-ring*))
     327
     328
     329 
    324330
    325331
     
    342348  "Insert the region into the kill ring."
    343349  (declare (ignore p))
    344   (ring-push (copy-region (current-region)) *kill-ring*))
     350  (kill-ring-push (copy-region (current-region))))
    345351
    346352(defcommand "Kill Next Word" (p)
Note: See TracChangeset for help on using the changeset viewer.