Mercurial > hg > xemacs-beta
diff lisp/select.el @ 487:54fa1a5c2d12
[xemacs-hg @ 2001-04-28 07:48:36 by ben]
misc changes, some for 21.4
remove bogus lines setting zmacs_region_stays to 0.
remove debug lines.
Correct general info about init file.
Fix up Cygwin section.
More contributions.
Fix spurious setting of zmacs-region-stays to t after a non-shift
motion command.
Sync up with FSF 20.7, to fix bugs handling some etags line formats.
Move non-window-system specific code that was duplicated in
all window systems into the generic code.
* gutter.el (init-gutter): Removed. (unused)
Clean up the rectangle code w.r.t. selections. You'll now get
the right text copied into the primary selection (but not the
clipboard yet, unfortunately -- that really requires defining
our own rectangle type).
author | ben |
---|---|
date | Sat, 28 Apr 2001 07:48:46 +0000 |
parents | 576fb035e263 |
children | 943eaba38521 |
line wrap: on
line diff
--- a/lisp/select.el Sat Apr 28 02:10:57 2001 +0000 +++ b/lisp/select.el Sat Apr 28 07:48:46 2001 +0000 @@ -196,8 +196,9 @@ (own-selection string 'CLIPBOARD)) (defun disown-selection (&optional secondary-p) - "Assuming we own the selection, disown it. With an argument, discard the -secondary selection instead of the primary selection." + "Assuming we own the selection, disown it. +With an argument, discard the secondary selection instead of the +primary selection." (disown-selection-internal (if secondary-p 'SECONDARY 'PRIMARY)) (when (and selection-sets-clipboard (or (not secondary-p) @@ -205,7 +206,6 @@ (eq secondary-p 'CLIPBOARD))) (disown-selection-internal 'CLIPBOARD))) -;; from x-init.el ;; selections and active regions ;; If and only if zmacs-regions is true: @@ -220,10 +220,10 @@ ;; application asserts the selection. This is probably not a big deal. (defun activate-region-as-selection () - (if (marker-buffer (mark-marker t)) - (own-selection (cons (point-marker t) (mark-marker t))))) + (cond (mouse-track-rectangle-p (mouse-track-activate-rectangular-selection)) + ((marker-buffer (mark-marker t)) + (own-selection (cons (point-marker t) (mark-marker t)))))) -; moved from x-select.el (defvar primary-selection-extent nil "The extent of the primary selection; don't use this.") @@ -294,7 +294,6 @@ )) previous-extent)))) -;; moved from x-select.el (defun valid-simple-selection-p (data) "An obsolete function that tests whether something was a valid simple selection using the old XEmacs selection support. You shouldn't use this