From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27442: Un-obsolete x-clipboard-yank, or provide analogous functional Date: Tue, 06 Jul 2021 18:45:15 +0300 Message-ID: <83im1nfnuc.fsf@gnu.org> References: <83r2ydupg7.fsf@gnu.org> <9b98217a-be79-56ed-16a9-0c15622111c5@yandex.ru> <877di4yhk8.fsf@gnus.org> <87eeccwzjx.fsf@gnus.org> <83a6n0hf9x.fsf@gnu.org> <87tul8v7v9.fsf@gnus.org> <831r8bhen3.fsf@gnu.org> <87bl7fv845.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16583"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 27442@debbugs.gnu.org, Hi-Angel@yandex.ru To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 06 17:46:12 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 1m0nH2-000476-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jul 2021 17:46:12 +0200 Original-Received: from localhost ([::1]:52610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0nH1-0000UN-4O for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Jul 2021 11:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0nGs-0000Sn-Dk for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2021 11:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0nGs-00028k-77 for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2021 11:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0nGs-0007Hx-6P for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2021 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2021 15:46: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.162558633026246 (code B ref 27442); Tue, 06 Jul 2021 15:46:02 +0000 Original-Received: (at 27442) by debbugs.gnu.org; 6 Jul 2021 15:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:49802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0nGL-0006os-UK for submit@debbugs.gnu.org; Tue, 06 Jul 2021 11:45:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0nGI-0006gA-G8 for 27442@debbugs.gnu.org; Tue, 06 Jul 2021 11:45:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47550) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0nGB-00024X-OI; Tue, 06 Jul 2021 11:45:19 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3965 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0nG2-0000YL-Rh; Tue, 06 Jul 2021 11:45:19 -0400 In-Reply-To: <87bl7fv845.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 06 Jul 2021 16:18:18 +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:209539 Archived-At: > From: Lars Ingebrigtsen > Cc: monnier@iro.umontreal.ca, Hi-Angel@yandex.ru, 27442@debbugs.gnu.org > Date: Tue, 06 Jul 2021 16:18:18 +0200 > > Eli Zaretskii writes: > > >> Hm... I don't really see any with our current low-level > >> functions. I think x-get-selection-internal could have returned more > >> metadata -- the timestamp, for instance, which would have allowed us to > >> see whether we ourselves really pushed the data to the clipboard. > > > > Where would that time stamp come from? > > Selections have time stamps In the clipboard? supported by all the systems and all the clipboard varieties out there? > so we could compare the time stamp from > when we pushed the data onto the clipboard with what we have. I think? Is it reasonable to assume that close enough time stamps necessarily mean we are the owner? > > I admit I don't really understand what the patch does and how. can > > you elaborate on that? > > It just makes `M-x clipboard-yank' defeat the "check for duplicates" > logic and always return the contents of the clipboard. But that would mean we throw away the baby together with the bathwater, no? Why would we want to do that?