From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#27442: Un-obsolete x-clipboard-yank, or provide analogous functional Date: Mon, 05 Jul 2021 11:59:32 -0400 Message-ID: References: <83r2ydupg7.fsf@gnu.org> <9b98217a-be79-56ed-16a9-0c15622111c5@yandex.ru> <877di4yhk8.fsf@gnus.org> <87eeccwzjx.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , 27442@debbugs.gnu.org, Constantine Kharlamov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 05 18:00:43 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1m0R1W-00085c-SW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 18:00:42 +0200 Original-Received: from localhost ([::1]:49812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0R1V-0000vQ-Lm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 12:00:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0R0s-0000uM-QS for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 12:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35006) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0R0s-0003LG-ID for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 12:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0R0s-0007GF-BP for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jul 2021 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27442 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 27442-submit@debbugs.gnu.org id=B27442.162550078527856 (code B ref 27442); Mon, 05 Jul 2021 16:00:02 +0000 Original-Received: (at 27442) by debbugs.gnu.org; 5 Jul 2021 15:59:45 +0000 Original-Received: from localhost ([127.0.0.1]:46552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0R0a-0007FE-Q9 for submit@debbugs.gnu.org; Mon, 05 Jul 2021 11:59:44 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:19250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0R0Z-0007F2-LW for 27442@debbugs.gnu.org; Mon, 05 Jul 2021 11:59:43 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id ECEFA440FA6; Mon, 5 Jul 2021 11:59:37 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C59A7440F85; Mon, 5 Jul 2021 11:59:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1625500776; bh=4iQym5OU48qy+6sjrBkKHSNz4GxWkSdKQqTte/L9BQw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kenH1OgWHoE7OTw3fAhTFIVyzcyRFey6Be5RjGe11oGCjfuYTqfQ9h0J3oW1uvRY4 vm4iEA9M7fbvx7+KSTwOdrsqf4YKC8dPrqAQRfDukTVcM0Kr07wkIHJz2hVII7feuD TSXiQ8Vde4BHaYDUjhVc0nPfXq3WHDp2OZdyElNtf53samgQiF5uhdAiv8SpQBe1fB 2UUiuwG1zpipEf4clAwG887HxbYgk74F6DihCbwrkUTPryKweiBKzv7WYvsDhaELCK Xlhhvb0uSGrh8XeLLgf5m8LpnJ4fkPQQziULZM5G6RpZcti2Dho7IGsuZQAj5ukPjY 6c1p3tJAr+AcA== Original-Received: from alfajor (unknown [45.72.205.238]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 923641202F2; Mon, 5 Jul 2021 11:59:35 -0400 (EDT) In-Reply-To: <87eeccwzjx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 05 Jul 2021 17:28:02 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209474 Archived-At: > *ponder* Well, I guess it's a vague kind of DWIM thing going on... > Since we don't have timestamps on our own kills, and > `select-enable-clipboard' defaults to t, we want to let a clipboard > selection "win" if we haven't yanked it before? But... it seems to me > like this is already handled by other logic when putting things on the > kill ring in the first place. That pretty much matches my understanding, yes. > That is, if you "emacs -Q", put something on the clipboard from a > different programme, and when `M-w' something in Emacs, then `C-y' will > insert the latter. Yes, IIUC this is the easy case. I think the harder case is when we `M-w` first and then put something on the clipboard with another application, then do `C-y`. > I've tested various things here now, and I'm unable to come up with a > scenario where the current DWIM logic is helpful, really. Yet AFAICT the kill-ring logic was there already when the clipboard logic was added, so I'm not sure the duplication is completely redundant. Stefan