From: Po Lu Date: Tue, 1 Feb 2022 02:13:15 +0000 (+0800) Subject: Only apply last change to the clipboard X-Git-Tag: emacs-29.0.90~2606 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=99c637499ec2bc0babb5d98b16f9c578952d54fd;p=emacs.git Only apply last change to the clipboard * lisp/select.el (gui--selection-value-internal): Only return nil if we own the clipboard. --- diff --git a/lisp/select.el b/lisp/select.el index 420967c1b00..d9f537cfce6 100644 --- a/lisp/select.el +++ b/lisp/select.el @@ -173,6 +173,7 @@ decoded. If `gui-get-selection' signals an error, return nil." (unless (and (memq window-system '(x haiku)) ;; gui-backend-selection-p might be unreliable on other ;; window systems. + (eq type 'CLIPBOARD) (gui-backend-selection-owner-p type)) (let ((request-type (if (memq window-system '(x pgtk)) (or x-select-request-type