# HG changeset patch # User Richard M. Stallman # Date 846353632 0 # Node ID 51916440738f89a03576cbb0c428fc54bbd3c25c # Parent b050d980c4225d3bb6e644386299c54402faa53b (mouse-sel-set-selection-function): Doc fix. Use x-select-text, for the primary selection. (mouse-sel-get-selection-function): Use x-cut-buffer-or-selection-value, for the primary selection. diff -r b050d980c422 -r 51916440738f lisp/mouse-sel.el --- a/lisp/mouse-sel.el Sat Oct 26 18:12:01 1996 +0000 +++ b/lisp/mouse-sel.el Sat Oct 26 18:13:52 1996 +0000 @@ -185,17 +185,24 @@ type for this selection should be stored.") (defvar mouse-sel-set-selection-function - (if (fboundp 'x-set-selection) - 'x-set-selection) + (function (lambda (selection value) + (if (eq selection 'PRIMARY) + (x-select-text value) + (x-set-selection selection value)))) "Function to call to set selection. Called with two arguments: SELECTION, the name of the selection concerned, and - VALUE, the text to store.") + VALUE, the text to store. +This sets the selection as well as the cut buffer for the older applications. +Use (setq mouse-sel-set-selection-function 'x-set-selection) if you don't care +for them.") (defvar mouse-sel-get-selection-function - (if (fboundp 'x-get-selection) - 'x-get-selection) + (function (lambda (selection) + (if (eq selection 'PRIMARY) + (x-cut-buffer-or-selection-value) + (x-get-selection selection)))) "Function to call to get the selection. Called with one argument: