From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Noah Friedman Newsgroups: gmane.emacs.devel Subject: recent change to yanking behavior of the clipboard Date: Sat, 05 Feb 2022 19:39:44 -0800 (PST) Message-ID: <20220205193944.836651.FMU2130669@unexploded-cow.prv.splode.com> Reply-To: Noah Friedman Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17025"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: luangruo@yahoo.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 06 08:06:18 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGbcn-0004Dj-Fl for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Feb 2022 08:06:17 +0100 Original-Received: from localhost ([::1]:52068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGbcl-0005Ru-LX for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Feb 2022 02:06:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGZFH-0005MW-Om for emacs-devel@gnu.org; Sat, 05 Feb 2022 23:33:51 -0500 Original-Received: from [2600:3c01:e000:3d5:f03c:91ff:fe96:f92b] (port=59564 helo=bacon-event-horizon.splode.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGZFG-0007z5-3w for emacs-devel@gnu.org; Sat, 05 Feb 2022 23:33:51 -0500 Original-Received: from unexploded-cow.prv.splode.com (97-126-49-80.tukw.qwest.net [97.126.49.80]) (authenticated bits=0) by bacon-event-horizon.splode.com (8.15.2/8.15.2) with ESMTPSA id 2163e38g063926 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 5 Feb 2022 19:40:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=splode.com; s=splode-20130101; t=1644118804; bh=F3beIL5wpKd4DX+lHHa8avaxk+HSvqQNXO7ND+lz6S0=; h=From:To:Cc:Subject:Reply-To:Date:From; b=UK1ge1+yV8bo43YE1HmJuLeBUVDmEhPha4Zf2YlSGrZydkixL8JLUiUJ2aLGLh5H0 gX3X2OTWQKrcn7U7+5lhSRAmHIZzs4jigFYdJmAWDvHB38mloquEm4+A31UEK00DlO hKk7am2p/HUAPMiVpvhZHpGfyordPxN07II7VROc= X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (bacon-event-horizon.splode.com [74.207.245.10]); Sat, 05 Feb 2022 19:40:04 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:3c01:e000:3d5:f03c:91ff:fe96:f92b (failed) Received-SPF: none client-ip=2600:3c01:e000:3d5:f03c:91ff:fe96:f92b; envelope-from=noah@splode.com; helo=bacon-event-horizon.splode.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 06 Feb 2022 01:57:45 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285933 Archived-At: This change in master: 2022-02-01 10:13:15 +0800 Po Lu 99c637499e Only apply last change to the clipboard * lisp/select.el (gui--selection-value-internal): Only return nil if we own the clipboard. Means that yanking never pastes the clipboard if I've programmatically set the clipboard selection (which I do for both emacs and the sake of other program windows that use it) But, curiously, you didn't make this change for the primary selection. That means when I yank, I don't get the thing I've most recently copied to the clipboard. I get some old thing from the primary selection. I don't understand how this new behavior is meant to be useful. It's broken, and I am not exaggerating, somewhere around 30 years of muscle reflexes. Please revert this. Not every item that goes to the clipboard comes from a buffer kill or copy action. Not everything emacs "owns" is already in the kill-ring.