From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Panteleev Newsgroups: gmane.emacs.bugs Subject: bug#53769: Implementation of X11 MULTIPLE selection is incomplete (with patches) Date: Fri, 4 Feb 2022 03:01:43 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000070ff0905d72879db" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14751"; mail-complaints-to="usenet@ciao.gmane.io" To: 53769@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 04:38:10 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 1nFpQI-0003cd-IH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 04:38:10 +0100 Original-Received: from localhost ([::1]:57128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFpQH-0004u1-4v for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 22:38:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFpQA-0004tX-IY for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 22:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFpQA-0008Uw-9W for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 22:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFpQA-0004rO-8Y for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 22:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Panteleev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 03:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53769 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164394585618630 (code B ref -1); Fri, 04 Feb 2022 03:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2022 03:37:36 +0000 Original-Received: from localhost ([127.0.0.1]:58482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFpPj-0004qP-PV for submit@debbugs.gnu.org; Thu, 03 Feb 2022 22:37:36 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nForM-0003zX-8q for submit@debbugs.gnu.org; Thu, 03 Feb 2022 22:02:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nForL-00014r-U4 for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 22:02:04 -0500 Original-Received: from [2607:f8b0:4864:20::935] (port=44813 helo=mail-ua1-x935.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nForJ-0001LT-88 for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 22:02:03 -0500 Original-Received: by mail-ua1-x935.google.com with SMTP id y26so864333ual.11 for ; Thu, 03 Feb 2022 19:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=USnlYIl5tgsXA1p8yUkoT+rKV1tEll+/8t6O3gBOCuQ=; b=P2zfJagCQb5HFE/4RZ5vy0fEvCtps1OGF9lso6AE7pAZF5dT+14ScQJ7d/IO/8I5YW RaOZUDlMpiLn706KgeaMyIIL0Z21m5DuLyTdb2zT11b5k5kXWwOqZfEqwYBYCwgCD6hb xcx2oWnP09CzUUkwhZGyP8ZFHY2a0VE74bUL3JThqMN9NVRtmd8H7dhkVtPRORjX6KJG NUthFH9IkTzhvMmaB64PkjhMNNdyei9cv4vNSw+D5qsV7q7ShTe6ihyzg4AAvNW4d/8+ D1kasS6s1yTwg3tsm00mVaFcfs2CNSSawwwVAPQNqm2gc/NVlThEj3kk6M8SsVWnLz7o 39RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=USnlYIl5tgsXA1p8yUkoT+rKV1tEll+/8t6O3gBOCuQ=; b=mZUZd+R7nrVtF1hGhNNksrZV+ePRITz5Ku/V1vi78MPyrn281Ujr4FHLLTAlOQXIbz Muowntounh2/WxoV/aRWflRNKm12iX9Sv8BR2FXmFjo6bi0Ryw+Czcbmj7+Zdvmvn33E 54eruNQVXg4iO2fxF4+YVQwF8ZFmMtuRfuGUJ0S8hTM96TduPU3unbbsJDeJoBK5zfcP SoBWC+Y7J5v+6DdJT/vgQrh32ZuruUqkEI6vY88E+K9nTvS92s0qSUwGVGB0YTYEEjFP CpEUNXaQbsOHKoKJgS1c/TvJRbJttrSiAHXTxY+DaWFVAuI/yakW6hmOlWtPLiDksmRi DmhQ== X-Gm-Message-State: AOAM532MTPKFfQpB2xqsby8gkxMgcugfD1u198VXmWsTV84if0/rl+Ze bCS1emkmiFtSi0ANuOsJWbCewuTL7WgZo9DPQ19x1eN3mpw= X-Google-Smtp-Source: ABdhPJwB1QNkDNeOubMuKX8UpW7GdKjoyA1zJ3lNctehEDlRXyX8XeeDHLA8YTVIqVI7HnmHaDAt6FQt6OJUZbmFulg= X-Received: by 2002:ab0:314c:: with SMTP id e12mr309615uam.108.1643943719640; Thu, 03 Feb 2022 19:01:59 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::935 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::935; envelope-from=thecybershadow@gmail.com; helo=mail-ua1-x935.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 03 Feb 2022 22:37:34 -0500 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:225954 Archived-At: --00000000000070ff0905d72879db Content-Type: text/plain; charset="UTF-8" 1 - Emacs deletes the MULTIPLE property (with the requested target/property atom pairs) after reading it; whereas it should be deleted by the requestor, not the owner. 2 - Emacs should update the MULTIPLE property with the conversion outcome for each target (i.e. None if the conversion failed) Patches attached, please see commit messages for details. I've previously signed the paperwork. --00000000000070ff0905d72879db Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Do-not-delete-the-MULTIPLE-property-after-reading-it.patch" Content-Disposition: attachment; filename="0001-Do-not-delete-the-MULTIPLE-property-after-reading-it.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kz7ti53n0 RnJvbSA0ZmE5Mjc3NDY3OTZjN2QwZjdkZDdiZmNmMDllY2YzYWY3YWQ0NjE0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBWbGFkaW1pciBQYW50ZWxlZXYgPGdpdEBjeS5tZD4KRGF0ZTog RnJpLCA0IEZlYiAyMDIyIDAxOjU0OjQ1ICswMDAwClN1YmplY3Q6IFtQQVRDSCAxLzJdIERvIG5v dCBkZWxldGUgdGhlIE1VTFRJUExFIHByb3BlcnR5IGFmdGVyIHJlYWRpbmcgaXQKClBlciB0aGUg SUNDQ00gc3BlYzoKCj4gVGhlIHJlcXVlc3RvciBzaG91bGQgZGVsZXRlIFsuLi5dIHRoZSBwcm9w ZXJ0eSBzcGVjaWZpZWQgaW4gdGhlCj4gTVVMVElQTEUgcmVxdWVzdCB3aGVuIGl0IGhhcyBjb3Bp ZWQgYWxsIHRoZSBkYXRhLgoKV2UgYXJlIG5vdCB0aGUgcmVxdWVzdG9yLCBzbyB3ZSBzaG91bGQg bm90IGJlIGRlbGV0aW5nIHRoaXMgcHJvcGVydHkKKHdoaWNoIGlzIHdoYXQgeF9nZXRfd2luZG93 X3Byb3BlcnR5X2FzX2xpc3BfZGF0YSBkb2VzKS4gIFRoZSBwcm9wZXJ0eQpuZWVkcyB0byByZW1h aW4gYXZhaWxhYmxlIGFzIHRoZSByZXF1ZXN0b3Igd2lsbCBnZW5lcmFsbHkgd2FudCB0byByZWFk Cml0IGJhY2sgdG8gc2VlIHdoaWNoIGNvbnZlcnNpb25zIHN1Y2NlZWRlZCBvciBub3QuCgoqIHNy Yy94c2VsZWN0LmMgKHhfZ2V0X3dpbmRvd19wcm9wZXJ0eV9hc19saXNwX2Rhd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dWFsX3R5cGUgPT0g ZHB5aW5mby0+WGF0b21fSU5DUikKICAgICB7CiAgICAgICAvKiBUaGF0IHdhc24ndCByZWFsbHkg dGhlIGRhdGEsIGp1c3QgdGhlIGJlZ2lubmluZy4gICovCiAKQEAgLTE1MTUsMTEgKzE1MTgsMTQg QEAgeF9nZXRfd2luZG93X3Byb3BlcnR5X2FzX2xpc3BfZGF0YSAoc3RydWN0IHhfZGlzcGxheV9p bmZvICpkcHlpbmZvLAogCQkJCSAgICAgJmFjdHVhbF9zaXplKTsKICAgICB9CiAKLSAgYmxvY2tf aW5wdXQgKCk7Ci0gIFRSQUNFMSAoIiAgRGVsZXRlIHByb3BlcnR5ICVzIiwgWEdldEF0b21OYW1l IChkaXNwbGF5LCBwcm9wZXJ0eSkpOwotICBYRGVsZXRlUHJvcGVydHkgKGRpc3BsYXksIHdpbmRv dywgcHJvcGVydHkpOwotICBYRmx1c2ggKGRpc3BsYXkpOwotICB1bmJsb2NrX2lucHV0ICgpOwor ICBpZiAoISBmb3JfbXVsdGlwbGUpCisgICAgeworICAgICAgYmxvY2tfaW5wdXQgKCk7CisgICAg ICBUUkFDRTEgKCIgIERlbGV0ZSBwcm9wZXJ0eSAlcyIsIFhHZXRBdG9tTmFtZSAoZGlzcGxheSwg cHJvcGVydHkpKTsKKyAgICAgIFhEZWxldGVQcm9wZXJ0eSAoZGlzcGxheSwgd2luZG93LCBwcm9w ZXJ0eSk7CisgICAgICBYRmx1c2ggKGRpc3BsYXkpOworICAgICAgdW5ibG9ja19pbnB1dCAoKTsK KyAgICB9CiAKICAgLyogSXQncyBiZWVuIHJlYWQuICBOb3cgY29udmVydCBpdCB0byBhIGxpc3Ag b2JqZWN0IGluIHNvbWUgc2VtaS1yYXRpb25hbAogICAgICBtYW5uZXIuICAqLwotLSAKMi4zNC4x Cgo= --00000000000070ff0905d72879db Content-Type: text/x-patch; charset="US-ASCII"; name="0002-Update-the-MULTIPLE-property-with-conversion-outcome.patch" Content-Disposition: attachment; filename="0002-Update-the-MULTIPLE-property-with-conversion-outcome.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kz7ti54k1 RnJvbSBiNTI0NjI4ODVhZTZiMTcxMGJjNjkxZjE3OWY1M2E2Y2M1MmY1NWVhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBWbGFkaW1pciBQYW50ZWxlZXYgPGdpdEBjeS5tZD4KRGF0ZTog RnJpLCA0IEZlYiAyMDIyIDAyOjQ2OjUwICswMDAwClN1YmplY3Q6IFtQQVRDSCAyLzJdIFVwZGF0 ZSB0aGUgTVVMVElQTEUgcHJvcGVydHkgd2l0aCBjb252ZXJzaW9uIG91dGNvbWVzCgpQZXIgdGhl IElDQ0NNIHNwZWM6Cgo+IElmIHRoZSBvd25lciBmYWlscyB0byBjb252ZXJ0IHRoZSB0YXJnZXQg bmFtZWQgYnkgYW4gYXRvbSBpbiB0aGUKPiBNVUxUSVBMRSBwcm9wZXJ0eSwgaXQgc2hvdWxkIHJl cGxhY2UgdGhhdCBhdG9tIGluIHRoZSBwcm9wZXJ0eSB3aXRoCj4gTm9uZS4KCiogc3JjL3hzZWxl Y3QuYyAoeF9oYW5kbGVfc2VsZWN0aW9uX3JlcXVlc3QpOiBEbyBpdC4KLS0tCiBzcmMveHNlbGVj dC5jIHwgMTMgKysrKysrKysrKystLQogMSBmaWxlIGNoYW5nZWQsIDExIGluc2VydGlvbnMoKyks IDIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvc3JjL3hzZWxlY3QuYyBiL3NyYy94c2VsZWN0 LmMKaW5kZXggOGY0N2FhODRjYy4uYzBmZDllMzIyYSAxMDA2NDQKLS0tIGEvc3JjL3hzZWxlY3Qu YworKysgYi9zcmMveHNlbGVjdC5jCkBAIC03OTUsNiArNzk1LDcgQEAgeF9oYW5kbGVfc2VsZWN0 aW9uX3JlcXVlc3QgKHN0cnVjdCBzZWxlY3Rpb25faW5wdXRfZXZlbnQgKmV2ZW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