From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: recent change to yanking behavior of the clipboard Date: Mon, 07 Feb 2022 08:14:13 -0500 Message-ID: References: <20220205193944.836651.FMU2130669@unexploded-cow.prv.splode.com> <87o83kphri.fsf@yahoo.com> <87sfsv62nf.fsf@gnus.org> <87fsovmqd9.fsf@yahoo.com> <87leynz8th.fsf@gnus.org> <87leynjrpv.fsf@yahoo.com> <87h79bz6kb.fsf@gnus.org> <87a6f3jq02.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30763"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Noah Friedman , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 07 14:53:49 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 1nH4Si-0007nv-9T for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Feb 2022 14:53:48 +0100 Original-Received: from localhost ([::1]:47216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH4Sg-0007lO-GI for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Feb 2022 08:53:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH3ql-0001D9-5h for emacs-devel@gnu.org; Mon, 07 Feb 2022 08:14:35 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH3qU-000143-Vt for emacs-devel@gnu.org; Mon, 07 Feb 2022 08:14:20 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B542E44070B; Mon, 7 Feb 2022 08:14:16 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E15F044028E; Mon, 7 Feb 2022 08:14:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1644239654; bh=H+uwwzazfisBYa6pcI7paFUQoe5KO3fTDfDma2/uAQc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=N3YHZq65t2FX/GnWvYw5SSH5fkPWcCHmUodfV+HNWjOP1K82Yb53b3IbEiTjghGRW hasHPyRPY3KtwU5+Y2jchtUj0mVin6iLSH7hIYm/DHMSYQTCMqpL4Z2YyfWDWDs4aX D/2LVxDD28DM5BLaZLuFWpyeBhI2ymgyVdt1RlB3MFpGg9E8W9Qe1t0C43P5c/9Dsb W8COmqSMn54Z9lKE7rerV+lusoMn8nuAGz07c/WzRJfzZi2fDjj4NuX8ROT/GDMK8W 2Abjuxj+9bKmjLocxAZipGydzU+e3Ztb6CXzXqwfA1aFud0yVbtryACf8/LQREZdrA 7Y9WfH4asVjkA== Original-Received: from pastel (76-10-138-212.dsl.teksavvy.com [76.10.138.212]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B415F12055A; Mon, 7 Feb 2022 08:14:14 -0500 (EST) In-Reply-To: <87a6f3jq02.fsf@yahoo.com> (Po Lu's message of "Mon, 07 Feb 2022 11:48:45 +0800") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:286041 Archived-At: > On X, every program is supposed to follow this: > > https://specifications.freedesktop.org/clipboards-spec/clipboards-spec.txt > > In short: Some of those specs talk about interaction with other programs, in which case we should arguably follow them to be good neighbors. But other parts talk about the UI and only affect the contract between the application and the user. We have no obligation to follow those parts, tho of course it might make a lot of sense to make the default behavior follow those specs to avoid surprising the user. The change under discussion here was motivated by an optimization, so presumably it should not affect the interface between the user and Emacs, but only between Emacs and the system. So IIUC this is a part where the spec is indeed very relevant and we should strive to follow it. But I must say I don't know which part of the spec the change is related to. Could you clarify? > Setting `select-enable-clipboard' to nil violates 3, 4, and 5, while > setting `select-enable-primary' to t violates 5 and 4. These seem to only affect the contract between the user and Emacs, so if the users change them to their default, that can only hurt themselves. And AFAICT our default settings don't violate those parts 3, 4, and 5, so we're fine. And of course I still can't see in which way this relates to commit 99c637499e. Stefan