Function: gui--primary-selection-unchanged-p

gui--primary-selection-unchanged-p is a byte-compiled function defined in select.el.gz.

Signature

(gui--primary-selection-unchanged-p TEXT)

Documentation

Check whether the primary selection has changed.

Compare the selection text, passed as argument, with the text from the last saved selection. For window systems that support it, compare the selection timestamp too.

Source Code

;; Defined in /usr/src/emacs/lisp/select.el.gz
(defun gui--primary-selection-unchanged-p (text)
  "Check whether the primary selection has changed.
Compare the selection text, passed as argument, with the text
from the last saved selection. For window systems that support
it, compare the selection timestamp too."
  (and
   (equal text gui--last-selected-text-primary)
   (or (not (eq window-system 'x))
       (eq gui--last-selection-timestamp-primary
           (gui-backend-get-selection 'PRIMARY 'TIMESTAMP)))))