]> git.eshelyaron.com Git - emacs.git/commit
Better check for when clipboard or primary selection have changed
authorIgnacio <ignacio.decasso@imdea.org>
Sun, 13 Mar 2022 20:05:18 +0000 (21:05 +0100)
committerPo Lu <luangruo@yahoo.com>
Fri, 1 Apr 2022 12:57:54 +0000 (20:57 +0800)
commit2b564f504bbf7c050355840b40a9897f12ed91f9
tree999cb1c07fc02c632d7adb8e10b7f6df18cb7757
parentff067408e460c02e69c5b7fd06a03c9b12a5744b
Better check for when clipboard or primary selection have changed

Previously it was done by just comparing new and old selection
text, now we use also selection timestamps for systems that
support it (only enabled in X for now).  (bug#53894)

* lisp/select.el: (gui--last-selection-timestamp-clipboard)
(gui--last-selection-timestamp-primary): New variables.

(gui--set-last-clipboard-selection)
(gui--set-last-primary-selection)
(gui--clipboard-selection-unchanged-p)
(gui--primary-selection-unchanged-p): New functions.
lisp/menu-bar.el
lisp/select.el
lisp/term/pc-win.el