From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27442: Un-obsolete x-clipboard-yank, or provide analogous functional Date: Mon, 05 Jul 2021 17:28:02 +0200 Message-ID: <87eeccwzjx.fsf@gnus.org> References: <83r2ydupg7.fsf@gnu.org> <9b98217a-be79-56ed-16a9-0c15622111c5@yandex.ru> <877di4yhk8.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27518"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 27442@debbugs.gnu.org, Constantine Kharlamov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 05 17:29:27 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 1m0QXA-0006c7-3y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 17:29:20 +0200 Original-Received: from localhost ([::1]:49304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0QX8-0005VZ-N4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jul 2021 11:29:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0QWs-0005Sy-EH for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 11:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0QWs-0000XM-7M for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0QWs-0004CO-5Z for bug-gnu-emacs@gnu.org; Mon, 05 Jul 2021 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jul 2021 15:29: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.162549890016061 (code B ref 27442); Mon, 05 Jul 2021 15:29:02 +0000 Original-Received: (at 27442) by debbugs.gnu.org; 5 Jul 2021 15:28:20 +0000 Original-Received: from localhost ([127.0.0.1]:46476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0QWB-0004Az-OI for submit@debbugs.gnu.org; Mon, 05 Jul 2021 11:28:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:58680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0QW4-0004Ae-E4 for 27442@debbugs.gnu.org; Mon, 05 Jul 2021 11:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6csCaUrH5H9AGUPPSlk62qGaNfnOMznwOC0Q9pfl96Q=; b=rgIHmDqHN+uIexJFTrMsUr4bD2 bszUa5PKGHwZNHoHPxfaEaYp/I0QDDhiWRNOOW1ev0VmFJnAPvRvmt+gkNg8f5rKpa9kkTfh+SR+m fUu7qcld2ccUetJpqbh+wo/xRjTJTKT5Rtg6H84hMgjBTnQSw9LfajLCKiD0kDisKgKQ=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0QVv-0005wV-5w; Mon, 05 Jul 2021 17:28:05 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAxQTFRF Hi9CSGqJjIqH////hBDDtQAAAAFiS0dEAxEMTPIAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAHdElN RQflBwUPFDAMiKx3AAAAb0lEQVQoz9XRuw2AMAwE0CzBPoxApFzDBrAFQzACEr4pCflxKWjocPd0 tiM5zr0WRgUmhSgCQdEyaARIVuAV+bkKdECHoIhj0EiATzAFaQpyV/BQlNaCrAqyg70irmwwjyVh W9PZhhvn8w1zcL+rCwjog7TRnwVFAAAAWmVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAA AAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAAhMAAwAAAAEAAQAAAAAAAAAAAEgAAAABAAAA SAAAAAEfUvc0AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTA3LTA1VDE1OjIwOjQ4KzAwOjAwRDr/ VgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wNy0wNVQxNToyMDo0OCswMDowMDVnR+oAAAAXdEVY dGV4aWY6WUNiQ3JQb3NpdGlvbmluZwAxrA+AYwAAADh0RVh0aWNjOmNvcHlyaWdodABDb3B5cmln aHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJkIENvbXBhbnn5V3k3AAAAIXRFWHRpY2M6ZGVzY3Jp cHRpb24Ac1JHQiBJRUM2MTk2Ni0yLjFXrdpHAAAAJnRFWHRpY2M6bWFudWZhY3R1cmVyAElFQyBo dHRwOi8vd3d3LmllYy5jaBx/AEwAAAA3dEVYdGljYzptb2RlbABJRUMgNjE5NjYtMi4xIERlZmF1 bHQgUkdCIGNvbG91ciBzcGFjZSAtIHNSR0JEU0ipAAAAAElFTkSuQmCC X-Now-Playing: Tuxedomoon's _Live in Umbria (1989)_: "Hugging The Earth" In-Reply-To: (Stefan Monnier's message of "Mon, 05 Jul 2021 10:46:12 -0400") 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:209471 Archived-At: Stefan Monnier writes: > AFAIK this part of the clipboard interaction is one I just preserved > from earlier code when I did my "gui-selection" rework. > I "just preserved" it because I don't really understand how it's > intended to work, nor do I understand enough of the design constraints > to be able to come up with my own design of how it should work :-( *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 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. 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. Anybody else able to deduce what the point of the code is? And if they do, can they put some comments in `gui-selection-value'? > Your patch looks acceptable to me (it is also disappointing because > it doesn't really help understand how this thing is intended to work, > but it follows the same principles as the ones I followed). :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no