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: Copy and paste from Emacs 29 to Thunderbird =?utf-8?Q?doesn?= =?utf-8?Q?=E2=80=99t?= work Date: Wed, 03 May 2023 13:20:35 +0800 Message-ID: <87y1m6at3w.fsf@yahoo.com> References: <496CE33D-C23F-4AB9-B545-608DB9B33C97@gmail.com> <87v8hbcfx1.fsf@yahoo.com> <69c64ad0-3ceb-1ead-1b4f-50725fa0e621@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33850"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, Pedro Andres Aranda Gutierrez , Gregor Zattler To: Tobias Bading Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 03 07:21:56 2023 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 1pu4w8-0008aC-22 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 May 2023 07:21:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pu4v7-000533-Da; Wed, 03 May 2023 01:20:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pu4v5-00052u-Hn for emacs-devel@gnu.org; Wed, 03 May 2023 01:20:51 -0400 Original-Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pu4v3-0002dj-ED for emacs-devel@gnu.org; Wed, 03 May 2023 01:20:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683091246; bh=8CC2tW1A4D/fBM74nY5j8Wbj/eKm1O6usZ/mOwzDo2c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=HUiiYhIGRxVMz2YeTB7vbqPNfMlmUr0DiQhBm30KVzfhUhijkR6U/3H3yy7Wn8wvblgsHs4JLGuaBVAO5Wg4Y6pEnUhA1RvWVWriVKk8rDs0HHlqdEAR6gSGV8EApr64R1l1Sj/Lf+CXTCFI/tlbqNtVVCGChzP8cLHIto8CUmQiUU73/jJiDfW0rBaQLug+XqRqBZTwnSV3mEZmtuNWZHazD8ipqrbC4ZJPF6dzxm2NC3UvEmv98kpI61WKni2kROJU5jD0+A87LzfG9sFpe3/i+MDfAIBlTJ2bZOQHAKcvpvwY3taQeXAp5i5X28ZaDqj6gJY2U438rGUJY4OHLg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683091246; bh=G0bzEsalcgI9OXwuIUW8wcvcU8JRM3dO/3aBAeI1OUb=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=irolh3lQBaBDuN4u/BqFojFgSUoxkd8ub3aBoake1Cbcd036vHNyTjyfzrovJOiBmtA1VYxK/Ud2ijSk5cozVAEeT4bo2fiOeAcIq5ZS/adxH2ItYZDWWjNHo5mBia4o4N6G9cjb7Gb40BexTduaQL9XofrDOpc/kw0tZPUHRWOJrvP5QM1KO9EQns7vDgXl/WVYJWjfItvMQR259pjwhnog2eq+A5TGt9oDe4kL6NEvH+aMQHVZJbMisF2/nvE70a6Kozyjl3gLzqpfrOltclqU1LCrYS4rNDP0q0DW437YFqfiwjcEEeBPtRJl7mEZ2Pzx7CkRL77BE/UxJxcOwA== X-YMail-OSG: aST72QgVM1kyBIZaKeTJ6pDRqOLM5pDquRCei4IsQtMIj4CAqFH4rTwU8FIHXWp VGVJsT9bTckxm1g2VwLhzhPxjPMMLx0b.jw5.WKGQsCnwZ1O_YpLWiy2kgOr2VWIWmUtcnGcDHSE fwPiooBDlqD3RQFtReIE6fOTTAvjY91DL8_aGdtyeJ5S9K1q07XGPYNpzJRbSeclJ6ucLe42juKc bzI3zh.ZgMpcxPWcdDxnNqDHjULg.pxlDmf7yiD23fHaw6tVtkcOvLtT59EUnhcGMUB3wGQTIMMP Dbzp0YkUoC.muS_C7hShiuTFX4KOjtLElDvVbXWcz6V17KQRWl4yN4X8muAME06I5mqdLvT4IW3H NNTnsST_SiL.iayrKaOsAjH9Hh2lL0Fmxe7XD9Oae2NuELdEAp8WAXFXwXjMA7oB1f.tSzENdGSv JqZ1E7jNZYmvPRerVEnx4gVqRGwyKsOeeL9DPvat8iAvAuLnacp0PqJGLr4Y8Tqy7roWIVxk2iSL DLCzU9TLTQIFzBaRyxB3ZWjU42JGEMomcshhjUtcbz6a4kZehK8LFeLrD1REb3sj1xFn_ey74X_8 0vrncc_Dj2pj7HMmmozpYUqkOQjBGZOFp3KPOmpRX3LvJbYk7UcoKiIHqnt81knVCY3glQ8RyTJU bwWRilaVvvJ0PoMOQgsmrs7LoZ8MbWFN1hzqC8lDKSQJfqvk5KVic9MVl7A69BCEop5PZZBmMDcE 0ccEepk2qxUtnJmLczy8C5g1viGAG3ohWiICDg5EUsk5F8pdZ1WLzqnd_W3umHkMJMJH0nRUaokz wqTLpNN8v9HOkTWWRwJqEkMDSwQPRWrICfOhIAu34U X-Sonic-MF: X-Sonic-ID: e2356898-e629-4560-8621-4300f2bcf19f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Wed, 3 May 2023 05:20:46 +0000 Original-Received: by hermes--production-sg3-6d6fb994f6-qwzcd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 82a1d6aa7af1a2291f8985abf30ba0f0; Wed, 03 May 2023 05:20:40 +0000 (UTC) In-Reply-To: <69c64ad0-3ceb-1ead-1b4f-50725fa0e621@web.de> (Tobias Bading's message of "Wed, 3 May 2023 07:11:13 +0200") X-Mailer: WebService/1.1.21447 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.33; envelope-from=luangruo@yahoo.com; helo=sonic308-10.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305760 Archived-At: Tobias Bading writes: > On 02.05.23 10:10, Po Lu wrote: >> So my guess is that Thunderbird thinks one of the text/plain selection >> targets is... not text/plain?=C2=A0 Or maybe it wants the property type >> returned to be an X string type and not the MIME type it asked for? > > For me on Ubuntu (MATE) 20.04.6 LTS with Thunderbird > 102.9.0+build1-0ubuntu0.20.04.1, this is the smallest patch I=E2=80=99ve = found so > far to fix copy and paste from Emacs to a Thunderbird mail composition > window: > > diff --git a/lisp/select.el b/lisp/select.el > index 7f089c62dd..f806e89720 100644 > --- a/lisp/select.el > +++ b/lisp/select.el > @@ -896,8 +896,6 @@ xselect-convert-to-dt-netfile > =C2=A0=C2=A0=C2=A0=C2=A0 (UTF8_STRING . xselect-convert-to-string) > =C2=A0=C2=A0=C2=A0=C2=A0 (text/plain . xselect-convert-to-string) > =C2=A0=C2=A0=C2=A0=C2=A0 (text/plain\;charset=3Dutf-8 . xselect-convert-t= o-string) > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (text/uri-list . (xselect-uri= -list-available-p > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 . xselect-convert-to-text-uri-list)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (text/x-xdnd-username . = (xselect-dnd-target-available-p > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . xselect-convert-to-us= ername)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (FILE . (xselect-uri-lis= t-available-p > > Without this change I can paste a word into a Thunderbird input field like > To or Subject, but no into the mail composition area. > > Pedro=E2=80=99s suggestion to use Ctrl+Shift+V (=E2=80=98Paste Without Fo= rmatting=E2=80=99) instead > of Ctrl+V in Thunderbird works as well, without this patch. > > I can=E2=80=99t reproduce the problem with deepl.com that Gregor describe= d, neither > with Firefox 88.0.1 nor 111.0.1. OK, would you please run: M-x trace-function RET x-dnd-convert-to-text-uri-list RET copy something to Firefox, and show what trace output is printed?