From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 99c637499e: Only apply last change to the clipboard Date: Wed, 02 Feb 2022 21:51:26 +0800 Message-ID: <87zgn98jhd.fsf@yahoo.com> References: <164368163944.24305.8528536193885928245@vcs2.savannah.gnu.org> <20220201021359.C439EC40717@vcs2.savannah.gnu.org> <8735l3cg7b.fsf@yahoo.com> <87y22vb1ft.fsf@yahoo.com> <83y22u7hui.fsf@gnu.org> <87h79iaxu2.fsf@yahoo.com> <83ilty6izh.fsf@gnu.org> <87sft1an3o.fsf@yahoo.com> <83bkzp77sw.fsf@gnu.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="38708"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 02 15:09:21 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 1nFGK1-0009yj-0m for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 15:09:21 +0100 Original-Received: from localhost ([::1]:42674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFGJy-0000mH-9W for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 09:09:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFG2w-00048A-Q9 for emacs-devel@gnu.org; Wed, 02 Feb 2022 08:51:42 -0500 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:43923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFG2u-0007QS-5a for emacs-devel@gnu.org; Wed, 02 Feb 2022 08:51:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643809899; bh=asrCFpHnnQfaKARl6Omzog3tjEf929zC9MfmlJJ9SB8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=RfVzRy/I0/gyoDdeXxAoMFjVuNO0iZxkXEKm9SV+H2Z1bpAbkuCISb0CuULrJ2xlDI1QF+GkkdorWF2F6Gj1d9X4OhlYEBkYGtiwaHcDLEyf6bEsdHq+TcwmyqtKELSzwrQrGhI/IuAHddMjbrvs63918xnUqB+RkK59F719sHsrdfkpnOI87ZqF835ieaiTGfxWMjscY0F3HolW+yo8yFLq2JTVZ2HwaneX9AS8ijFNgUR1uh71j56FyFvHZ31phWjCf3p9sQibtSU5C+KYaEdlW8fJ5pKcAoI6I5JaTMoaTkYIbHkZ/A9XHifX//+0xDlrSFS6xmib9pwgnms+fQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643809899; bh=KGZ1HjhG7Ndq7krx+fPl+DFo3tEB77/yTxhSaNE+BgH=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=mE4+BgV7wPmXWVAoeNyjiJ4o2VCd1lYbAnDCU6ZI85e8gd9hloMPm5LrX4nzPgGwX7A9VAtSe8mfp2aXXwPlIjdJVveL80ArhLycupjoaXQwXRwZgFDhQXmcfOcu3JUR/amuAojcAy5jzbIIcJdC1aO4ds/NSXlk4PJ3pZbu/wbtJoJHGKOUDhLIpkyR/b4Hx8UE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mail.ne1.yahoo.com with HTTP; Wed, 2 Feb 2022 13:51:39 +0000 Original-Received: by kubenode513.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f3af1989873faadf70fc1ac982dd3bbf; Wed, 02 Feb 2022 13:51:32 +0000 (UTC) In-Reply-To: <83bkzp77sw.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 02 Feb 2022 14:49:03 +0200") X-Mailer: WebService/1.1.19615 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:285790 Archived-At: Eli Zaretskii writes: >> Hmm, that means the result is not useful for `gui-selection-value'. >> Would there be a way to implement that feature on MS-Windows? >> >> The simplest way to implement it would be to return `t' if Emacs stored >> the text currently in the clipboard. > What would be the purpose of that? What would you like to do with > "ownership" of the clipboard data, and why? That way, `gui-selection-value' can return nil if Emacs owns the selection (per the doc string of `interprogram-paste-function') to avoid fetching the selection in the common case where the user is yanking text saved by Emacs. > Emacs on Windows already tries internally to keep track of whether the > stuff in the clipboard was put there by the current session, so I'm > not sure why else would you need this. See the doc string of `interprogram-paste-function': If no other program has provided text to paste, the function should return nil (in which case the caller, usually current-kill, should use the top of the Emacs kill ring) Thanks.