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.devel Subject: Re: master 99c637499e: Only apply last change to the clipboard Date: Wed, 02 Feb 2022 14:49:03 +0200 Message-ID: <83bkzp77sw.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 02 14:12:19 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 1nFFQo-0005lN-EA for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 14:12:18 +0100 Original-Received: from localhost ([::1]:56576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFFQm-0001Jw-FT for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Feb 2022 08:12:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFF4M-0003Cm-4f for emacs-devel@gnu.org; Wed, 02 Feb 2022 07:49:08 -0500 Original-Received: from [2001:470:142:3::e] (port=59682 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFF4I-0004Qd-W6; Wed, 02 Feb 2022 07:49:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pZvHhkPNGVG5GAS8TRFiPOVrtWxuyXR93sS1Wioks94=; b=GsvBhU4KlO3y E9BmtYMIw4BrWLIApWdkSByFlc74zigsYBCqtGY2NcKO5hd+t1yaCgmFNi3LvRyi3OyIDGjUG1PFM NaY3pxkZ1dg2EEYEe9htRzJjFxUiuzDaFhLx+/dos9HtnElxhExKy9wtYds2e2dKGWafj4qUJdSk5 dn1ZYZZ4SCVW70E5WVTIyEorKCoazHt1n9wdQawQP3NUQfpOJEW0Se9H6usyRg5WlHZ5+5npk0rkM JG0AnFi530ssvLdhZy+hh5lhh8MyVVzcnjwS5JdF8d2CGNTucW+L6q1OpuqvUAkHUay9LsgyQAewt DVcsnXMswDsZHM30tJtwyQ==; Original-Received: from [87.69.77.57] (port=4315 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 1nFF4H-0001TX-Nn; Wed, 02 Feb 2022 07:49:02 -0500 In-Reply-To: <87sft1an3o.fsf@yahoo.com> (message from Po Lu on Wed, 02 Feb 2022 12:50:19 +0800) 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:285783 Archived-At: > From: Po Lu > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Wed, 02 Feb 2022 12:50:19 +0800 > > Eli Zaretskii writes: > > > It returns nil here in both cases. This is with today's master. > > 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? 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.