From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ignacio Casso Newsgroups: gmane.emacs.bugs Subject: bug#53894: 27.2; Clipboard copy -> C-y -> M-y -> Same clipboard copy does not push to kill ring Date: Sun, 27 Feb 2022 19:57:46 +0100 Message-ID: References: <87r18bg59w.fsf@gnus.org> <87wni3zdqf.fsf@yahoo.com> <838rujutsj.fsf@gnu.org> <87a6ezfcnc.fsf@gnus.org> <83zgmztabd.fsf@gnu.org> <8735kr9kmp.fsf@gnus.org> <83pmnuudo6.fsf@gnu.org> <87ee4ayl3n.fsf@yahoo.com> <83k0e2ucq7.fsf@gnu.org> <877da2yjze.fsf@yahoo.com> <87iltm7upm.fsf@gnus.org> <87leyiw6uu.fsf@yahoo.com> <87wni1tzzl.fsf@yahoo.com> <87pmnttw78.fsf@yahoo.com> <87leyhtv9q.fsf@yahoo.com> <87wni0str6.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="38191"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 27.2 Cc: Lars Ingebrigtsen , 53894@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 20:50:20 2022 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 1nOPYi-0009oq-J2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 20:50:20 +0100 Original-Received: from localhost ([::1]:48522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOPYh-0003kz-Hi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 14:50:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOPYQ-0003ko-5w for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 14:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOPYP-0000qE-T2 for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 14:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOPYP-0005li-RU for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 14:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ignacio Casso Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 19:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53894 X-GNU-PR-Package: emacs Original-Received: via spool by 53894-submit@debbugs.gnu.org id=B53894.164599136822131 (code B ref 53894); Sun, 27 Feb 2022 19:50:01 +0000 Original-Received: (at 53894) by debbugs.gnu.org; 27 Feb 2022 19:49:28 +0000 Original-Received: from localhost ([127.0.0.1]:59249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOPXs-0005kt-2L for submit@debbugs.gnu.org; Sun, 27 Feb 2022 14:49:28 -0500 Original-Received: from mail-oln040092073019.outbound.protection.outlook.com ([40.92.73.19]:43013 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOPXp-0005ke-Ev for 53894@debbugs.gnu.org; Sun, 27 Feb 2022 14:49:26 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fmJOwVKuIMHZJy9if4TP/OTlaoNzda9dDv5+8RogcKEd1tvN9ayL9TKiULZoRh/TOa7TQmPkhUOxZen8+UQ/BTZGlW5PYWikwFdkbR67Y0StlhB7d791R0m9u8wrPxdldfiFEUoJFn4eUGbnn6KVCp+z5NVEYuOngjoumictM3GA5Pzng4QPO/PDYOziDQvYbEkflTAgJgQ27dRAKlQBI3FUocX/+VnJb3TAQc9wX98dDfQ/3JewHITDN1HqR6vZqX25BFYxypiiSeNXtN4dz1tm53NEtrPXQGpYyCNQA7830r8bajXxrmTQNb+gU9EhoSouN3DNGzqJJaEo9yMZMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RbCx98QPMM2utYAFYz0s/egCGU4pCFvusNwcvoVTGz0=; b=mzfAar8p+8DOEB0yYaO83E1R3weOh5mr6473rkMJSYpcuI+eYRSv0O0CT3b5V3BbKMeKmb6fq52KtlDDCjIa42bjH7t8doN3jo3AmmEaZL1klA0wADxXLZkEhG8gPnh/BHc1m2YqkPQ2enRhX7ENO6j+HLO4DS/PGVp/rw0EQzliJlfqEuDjvp4V+TwRlvA43RrXXdrjEK6lNIYvd7sZYuPCYDc40kSkiVVAMDHfr2ARamYuiQfQt9hjJaKfFKhgZjSHrzP3xA8zUDAGjF5iIWbx13eMfUvcdxFQ8iP9PKAeS1SmAEV/uk6kzehAt/qUXBTtLL07EnZ2cfRpq5P20Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RbCx98QPMM2utYAFYz0s/egCGU4pCFvusNwcvoVTGz0=; b=kDbKHqbuZR8EyQg/gijRlWIZ7AczV9V4nf4K4/CZV9ateOmiKajFXQjml1xuku1DKgOdWMizb8rlwz9Agew0jLmPTZClrSgOFPVF0LPtfdS2iWOnALjYxSHlQv8HTMTCAUV79ekZp4P8PzTh2PBF2c6Bn6yPUk4uSKdBdsEE/aMP/edYR01XB7RwjBo/ccxRwsc1QyTcIRKt6SWi4rXZ4n+Or7VmFYEhcTdRNR3GK/9OFa09AXEILkiitEmN+4wvXty3y2K63JK53T8MzjNOQxIHbgPB25WgSJSXg2eIdRJM8J7FillMXpnAsIQpTwcH7IXJxPNSHCMi9ZCehFbTDw== Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by VI1PR06MB5469.eurprd06.prod.outlook.com (2603:10a6:803:c4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.25; Sun, 27 Feb 2022 19:49:18 +0000 Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::89d5:1159:122b:2b2f]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::89d5:1159:122b:2b2f%6]) with mapi id 15.20.5017.026; Sun, 27 Feb 2022 19:49:18 +0000 In-reply-to: <87wni0str6.fsf@yahoo.com> X-TMN: [9JAHUWrUw4QvDA674CA1KzhYKi0v6GHF] X-ClientProxiedBy: MR2P264CA0005.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:1::17) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87mticozt3.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f0b20c6-d049-4737-b546-08d9fa2a3dd3 X-MS-TrafficTypeDiagnostic: VI1PR06MB5469:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MZgrqK683ReIPWMIMNpjI24Nbg5fSyxJrq0lflLIMWieNfMO7V4XjWEfatiCZ6UjBeR8aTuazMbNJ1hZIQ/x3sKeNaA2GQ4fF0v8tDQVAEFDl+26BC38B6T88R48a5Y7OoEaFOMQSXLOBJctpNukaM1gLRZaYoHl8LcyFU7DxG7k2qkQvlDZq67cSbXCbl2sAgrlAc9D/uUlHDBdNm8uaJANPsQuAkWOa1/SEuTEy1l99Ap3ezTWFcLDxvx3/3dxUjIuCZjGrwb8fJfgCqISs2uVn1iuyboEEJEbCquRY3Xd9ih3PoGPL5DVRn82aQ5Wle5aZWRSxAqc679fYPidjQB2xOgnlDdfKPQ4PnfJDCftq/nmhIWCfhgGq+XPBYpr20qi9m1B8RBm/EG40xVl6L7W4nMITHiNKRSOgG6QhyI5IOJ7fmX/J1NyaN6Z1JtXH8e2NB3fVzE+FXcIS1Af+jlD9bqCAszOk1PB5kjCe37Fn9BV/BcDWq9aKQoF4whZ20/9Id/yomPnbHHdoPzkepxstSR3EcvzhLIMn82abeu7oAWmrr3xDM4Q68K0LMT1IyqOIpHUZskH3U1AMwZumg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kbd1LcaSoNtun25zGN7XZfIKCtRoY2QCZeYNZKAAnziow0A+Ou0IpfA9ChJWqvnk0SMIm76E5oB2Z8TT3eHuxUfS56qb6679oT0obRarZkUlOiSQQt0YxrtLfaOY5xR1K9z0IIzjuNTao0bxfM6r+sXGOphEojE117vHo6NM+tsKgqrmnVH/z+9BkIEGPxhCFeYwInUbfwj9XU6VfqmzMtDFSVYKRuVTVqyjpagIGM4ly9S/7ya/nKCMwBHY+7/LhmsUBqoj+KvdKmos3paq49gBASz3np6ybqX2+oKmNaHPq6OfBLP0d/mExHC1so0cqICHtHevAKMP/BrPL8pieJMaQSkbUTYUxEsWUKqi19dEaEtnb2uJbdbD7LtCX+EJoFMwYC9UYtxEm6mq6UNqxVWCNRc54IljztGo9lJ9LmSkDnS7gMJuyxfWfPOmpHKSDLlqvYOYtZkdcvofjwFCSbWOnFWc+PsQCCTGWiwal3LtUtFS8s/WTJJjfjc8VAJYPTSg7LEQs95MrAhh80EZxT0JcgVsg/xWaR85684GgJbtQg8eCLYHv/P7lBWjcBa32TzwBwINI6Q5LlLkLCfSDOH4A69EIyrNWCsC4BC26GsPCDKNYabgF823mgzCde3T7UKAi3ks4yu2MRnIVmET54nziKY7kiPbXpnTi25ip1kqKNEhhvea82EBT0B7YiP3/slvkbotoqCtYNHBgX3XxB8utCnQcdPy79edTmwozh8QzdyLkNLQQR2nMK E1Ae4TPIxLq0wV4SSQEW24zgBIzmTAI8RWvkT/mnEaB9Yb9uR1/TWdz3LQi72Yvj3oNPOPyNuy0Y7imtGphER7gZxveGOu/GEs X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 6f0b20c6-d049-4737-b546-08d9fa2a3dd3 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2022 19:49:18.6410 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB5469 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:227743 Archived-At: Hello again, Sorry for not answering earlier, my original intention was just to report the bug and clarify the misunderstanding and then leave you all to discuss it since you would know better what to do. But I though this could be a chance to make my first Emacs contribution so I'm reviving the discussion. > So if (x-get-selection 'CLIPBOARD 'TIMESTAMP) is larger than the last > time it was recorded, then it is safe to say that the selection has > "changed". > > However, it will still be necessary to keep the DWIM logic on X as a > fallback in the case that the clipboard timestamp has not changed, since > some clients are badly behaved and only change their record of the > current period's selection if they already own it. So I guess you mean that if the timestamp has not changed, we can't assume that the selection has not changed either and we need to confirm it by checking whether the selection text has changed. In other words, consider that the selection has changed if and only if either the timestamp or the text has. If we implemented that, the only new case we would distinguish would be when the text has not changed but the timestamp has, which is precisely the case of the "bug" I reported. If (x-get-selection 'CLIPBOARD 'TIMESTAMP) works out of the box right now, maybe it's worth to implement it. And it it's not, we could still update the documentation that reflects the previous, incomplete understanding of the issue, e.g., in the last paragraph of the docstring for interprogram-paste-function or in the comments of the definition of gui-selection-value. I volunteer to do both if you agree that it would be an improvement. Not because it's actually important for me (again, all of this began because I started reporting the bugs I had written down over my time using Emacs, most of which I did not really care about), but because I see it as a chance to get started in contributing to free software and Emacs. Let me know what you think. Regards, Ignacio