From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tobias Bading Newsgroups: gmane.emacs.devel Subject: =?UTF-8?Q?Copy_and_paste_from_Emacs_29_to_Thunderbird_doesn?= =?UTF-8?B?4oCZdCB3b3Jr?= Date: Sun, 30 Apr 2023 15:01:37 +0200 Message-ID: <9c56cb17-1bc2-9533-31e0-0180f541dd09@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36889"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 30 15:02:20 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 1pt6h2-0009QR-8K for ged-emacs-devel@m.gmane-mx.org; Sun, 30 Apr 2023 15:02:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pt6gU-0004f9-5d; Sun, 30 Apr 2023 09:01:46 -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 1pt6gR-0004ez-PF for emacs-devel@gnu.org; Sun, 30 Apr 2023 09:01:43 -0400 Original-Received: from mout.web.de ([212.227.15.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pt6gP-0003Nk-53 for emacs-devel@gnu.org; Sun, 30 Apr 2023 09:01:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1682859697; i=tbading@web.de; bh=wtMXMZXX74t7sdHk2FDHo2JLsGW1euQfBaNU8+wUjq4=; h=X-UI-Sender-Class:Date:To:From:Subject; b=CeAq6Nxe5vDmA5hmQIZqEiSxpHVlkxJCDvIZ0SxSuDcY+iLuaPIEmpWjvwUNXWxLW H2oJdR9z1yr194CCtLJ28kvNlQhjEEJSM+l5ooliHfCPtk9CqpQv1YX0O0yg1mEtu6 LI5r4yy19yKPm42SREOAzJtCT8Hx1rmeWHFIyIwkT+KYby+iEtKHCEkFESPZ3ui/H3 EC+MCDDT6mGZ1by2F0yrpSGI9dq+cYpXSL1USaLuwquTzst0ePsMAuMdkTX7oCkju8 nU1J+e8esgm8jfcTEfrjUKFcRAPvTr+QZL4SZS9+QyM6BNj+yuppOZ5LXJ3/UMORNl BR7psYaOozjiQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from [192.168.2.103] ([84.143.157.217]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MVaYi-1pj6Gr2XnI-00RZPl for ; Sun, 30 Apr 2023 15:01:37 +0200 Content-Language: en-US X-Provags-ID: V03:K1:gLEpiAdehSjxflvFYYEebYLMWCVDdJS+whn/cKPg3OZ0Ol4xVq8 tudqby7FdtM+8xaOtYUh+MzgViymlnu0rMCbiFnUPy5ePM01UHxWLing5SRnML05HUegyZH CtlzAtX5XC5TqyIGUHtJXeUb8G+lu998Mcgz9FHN04dIbvJzQRsaAE125Tz/YG21EdAfUBJ iTMUIFOlJm/wTxqFL/KJw== UI-OutboundReport: notjunk:1;M01:P0:Hnfhe+rD2lg=;Ya4f+b0qS65vMrpaLWi8ThCEVlP eGJEiQFIlXaJSrwsrop9VHKaa8NqV9+8BtV3K6rFr7lYCRJ8qZyjSYgAJyK/23dtD0SkjEgIY uL72ElfmDLMe5w6fvRf4nNLDJRenki7Dr0z8/ArLmbtu7x1VCJgWuVPRgcllBxr4xXFgzkBut SA+z10ktwBRFunrj5Z/We74fGCIb/WZkfY/mWlqkcYhp4QPkA+wZ1g2A2MBinbnycoTOvqxGe hsbhfnSBRNWsA44MISuwn+BWpXeC+GaQeg6MptkodRPH69EbdLb9wz6QS0UBcIVr+uBkMzInf ntGDakFRxMRdc0y8gndD2tiRdBMfbSV7stMuhE76zqMAtCEBwjU4kBlwEnydWsBmGrqM5XVJz EKCl+4FSAkRROxnvuo7CHZ/K0f/6NyALYkUMKA1ccJzGZbBendlECDXeqYSvAoxDkDvNjOmP4 gjyZHUdRQdQR3xjDlJyz4zWbmRa+IF+4syQQvElFkTbeZ9Neezk4LSyyCMytztHkO+gzZbi/N Ew9M70I2icRU7N6QWntaMb3pmi/ziRhJQWMIZ3w9a+rrtjkHqN68s4TyOTC08TF4MZCj3dRD4 yKXRA4z3bkk2pvBC+RRcEZfIoCfrYUZBKHQVCvrtyEvKoX7tGenjC8ZuCiCjTKc6WlMErxZQd J1FVtTvXt/FZ+5MpOCOpLKN6sln+xODiLcVY24e9Vw1gpMkf0fwjxX1y3IplURdMedfKW82HS srK+EdETnb6+fOAsJIK/wmDa7fztw0XDdpOeICpwITrl3V13PRSSAJXXUKEdwtHaRD3WZrhF Received-SPF: pass client-ip=212.227.15.14; envelope-from=tbading@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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:305733 Archived-At: Hi. I think I discovered a new kind of bug. It=E2=80=99s not like a heisenbug = that tries to prevent people from studying it properly =E2=80=94 this one tries= to prevent being *reported*! XD When I was done composing my last mail in Emacs 29 (https://lists.gnu.org/archive/html/emacs-devel/2023-04/msg00771.html), I tried to copy and paste the text into Thunderbird. Emphasis on trying. C-v didn=E2=80=99t work. Nothing happened. Double-clicked just a single wo= rd in Emacs, C-v in Thunderbird=E2=80=A6 nope, nothing. Clicked into Thunderbird= =E2=80=99s =E2=80=98Subject=E2=80=99 field and pressed C-v=E2=80=A6 now I see my copi= ed word! What the f=E2=80=A6? Tried the same in Emacs 26 =E2=80=94 no problems. After installing xclip and starting to wonder about the bazillion differen= t selection formats, I wasn=E2=80=99t really in the mood for reading entire = books about the X11 primary selection and clipboard. So I simply grep=E2=80=99d = the sources for =E2=80=9COWNER_OS=E2=80=9D because I have no idea why anyone w= ould want to associate the operating system=E2=80=99s type with a selection. That led t= o selection-converter-alist in select.el. Long story short, replacing Emacs 29=E2=80=99s selection-converter-alist w= ith the one from Emacs 26 seems to fix the problem, i.e.: diff --git a/lisp/select.el b/lisp/select.el index 7f089c62dd..7f885eafcf 100644 =2D-- a/lisp/select.el +++ b/lisp/select.el @@ -894,14 +894,6 @@ xselect-convert-to-dt-netfile =C2=A0=C2=A0=C2=A0 =C2=A0(COMPOUND_TEXT . xselect-convert-to-string) =C2=A0=C2=A0=C2=A0 =C2=A0(STRING . xselect-convert-to-string) =C2=A0=C2=A0=C2=A0 =C2=A0(UTF8_STRING . xselect-convert-to-string) -=C2=A0=C2=A0 =C2=A0(text/plain . xselect-convert-to-string) -=C2=A0=C2=A0 =C2=A0(text/plain\;charset=3Dutf-8 . xselect-convert-to-stri= ng) -=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 (text/x-xdnd-username . (xsele= ct-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 . xselect-convert-to-user= name)) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (FILE . (xselect-uri-list-avai= lable-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 . xselect-convert-to-xm-file)) =C2=A0=C2=A0=C2=A0 =C2=A0(TARGETS . xselect-convert-to-targets) =C2=A0=C2=A0=C2=A0 =C2=A0(LENGTH . xselect-convert-to-length) =C2=A0=C2=A0=C2=A0 =C2=A0(DELETE . xselect-convert-to-delete) @@ -917,13 +909,7 @@ xselect-convert-to-dt-netfile =C2=A0=C2=A0=C2=A0 =C2=A0(ATOM . xselect-convert-to-atom) =C2=A0=C2=A0=C2=A0 =C2=A0(INTEGER . xselect-convert-to-integer) =C2=A0=C2=A0=C2=A0 =C2=A0(SAVE_TARGETS . xselect-convert-to-save-targets) -=C2=A0=C2=A0 =C2=A0(_EMACS_INTERNAL . xselect-convert-to-identity) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (XmTRANSFER_SUCCESS . (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 . xselect-convert-xm-special)) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (XmTRANSFER_FAILURE . (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 . xselect-convert-xm-special)) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (_DT_NETFILE . (xselect-dt-net= file-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 . xsele= ct-convert-to-dt-netfile)))) +=C2=A0=C2=A0 =C2=A0(_EMACS_INTERNAL . xselect-convert-to-identity))) =C2=A0(provide 'select) Of course that=E2=80=99s just a quick and dirty hack which will probably l= ead to other problems. Could someone who knows this stuff please look into this? BTW, my Emacs runs with select-enable-clipboard and select-enable-primary both set to t. Tobias PS: please keep me CC=E2=80=99d, thanks