Subject: Re: bug#53894: 27.2; Clipboard copy -> C-y -> M-y -> Same clipboard copy does not push to kill ring

From: Eli Zaretskii <[email-masked]>
Date: Fri, 01 Apr 2022 13:59:08 +0300

> From: Ignacio Casso <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked], [email-masked]
> Date: Fri, 01 Apr 2022 12:15:58 +0200
> 
> +(defun gui--set-last-clipboard-selection (text)
> +  "Save last clipboard 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-clipboard text)
> +  (when (memq window-system '(x))

This should use 'eq', nor 'memq', since you are testing against a
single value.  (There are more of such code elsewhere in the patch.)