Function: gui--set-last-primary-selection

gui--set-last-primary-selection is a byte-compiled function defined in select.el.gz.

Signature

(gui--set-last-primary-selection TEXT)

Documentation

Save last primary selection.

Save the selected text, passed as argument, and for window systems that support it, save the selection timestamp too.

Source Code

;; Defined in /usr/src/emacs/lisp/select.el.gz
(defun gui--set-last-primary-selection (text)
  "Save last primary selection.
Save the selected text, passed as argument, and for window
systems that support it, save the selection timestamp too."
  (setq gui--last-selected-text-primary text)
  (when (eq window-system 'x)
    (setq gui--last-selection-timestamp-primary
          (gui-backend-get-selection 'PRIMARY 'TIMESTAMP))))