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.bugs Subject: bug#71909: 30.0.60; Date: Sun, 06 Oct 2024 14:50:49 +0300 Message-ID: <86bjzxv49y.fsf@gnu.org> References: <865xtnhyn6.fsf@foxmail.com> <868qv2wwyk.fsf@gnu.org> <865xq6wwkc.fsf@gnu.org> <86wmimuz18.fsf@gnu.org> <0056b65b-5cdc-4271-b717-0acc75661c17@imayhem.com> <86o73xvkj8.fsf@gnu.org> <87ldz1h5s4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpardo@imayhem.com, 71909@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 06 13:54:22 2024 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 1sxPq9-0002aA-OX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Oct 2024 13:54:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxPpn-0001lx-1S; Sun, 06 Oct 2024 07:53:59 -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 1sxPpk-0001li-EP for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 07:53:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxPpk-0003Xw-61 for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 07:53:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=z03bjKOy9ssuo9TRHVGJ+F/xGzurIbksfG+BK6ttW4E=; b=aaZ0aFHWgm0HTbLKiItYKNDsdnp+svs9vnHbBYYph5HdVXsd09R80dp5VXFgx+nun4YvgZKMiI9w81pcR3ivnFcQDYgXLvSBgU5hCy8y9SKbeazgOjBIIxwW9Gb+Jhowlccj32YfoqfVCWnW2BRy1TrHVRZuluDbWYSra7tfEDU23uxJgzsF3Ns2cmjCJTOIscdhcFMTl8V7vhirSUTcNQHKDpg12tW+rHkBXnTQ8s3O3wtw8E7QLW+sC3hck4nludrrHrnFyCpkorp70fIvOaqWGi/8Ad0VADXu83m5G4yzStedapVU4lXACPQQ60ZhH3YUFHT3ODMihYDt/kGyIQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxPpp-0003ue-LC for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 07:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Oct 2024 11:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71909 X-GNU-PR-Package: emacs Original-Received: via spool by 71909-submit@debbugs.gnu.org id=B71909.172821559814970 (code B ref 71909); Sun, 06 Oct 2024 11:54:01 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 6 Oct 2024 11:53:18 +0000 Original-Received: from localhost ([127.0.0.1]:40372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxPp7-0003tO-Qe for submit@debbugs.gnu.org; Sun, 06 Oct 2024 07:53:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxPp5-0003tA-Uz for 71909@debbugs.gnu.org; Sun, 06 Oct 2024 07:53:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxPmn-0003Mt-Aj; Sun, 06 Oct 2024 07:50:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=z03bjKOy9ssuo9TRHVGJ+F/xGzurIbksfG+BK6ttW4E=; b=ijy07nHJSMothYPTKV4i 2gcNIaw4sXEKU9oSPdMoaMPn+Hx/+LeQHA5LYqolgUPtnLVQN1zW/EiY2CEUvKw2lo54iYUNftlMC 5TplvvRCmgne/44XznIkLrhDZRg7hY4UXUPk2FHlWT7y5095c3qgFljH3Vg9eMJcouN3D8gaAQsjx yQwc8UjS4DSxoVlEPR3C16gPpoHp4UZW5T6PdjLlyxWBnWz3czuvS09xOWNoHjNjY1zeDC2MFJBSE CnWkZRZsOkO8ExHSX/B4rLLb44YVC+RQoLMiBjUO8ez14BtfkcBLJ5uJE0o+dLZHQRkHIvQKFRLGY /1zWX8eZLFf6EQ==; In-Reply-To: <87ldz1h5s4.fsf@gmail.com> (message from Visuwesh on Sun, 06 Oct 2024 16:12:03 +0530) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293077 Archived-At: > From: Visuwesh > Cc: Cecilio Pardo , 71909@debbugs.gnu.org > Date: Sun, 06 Oct 2024 16:12:03 +0530 > > What happens when you copy text from, say, MS Office with formatting > applied to it (bold, italic, whatever)? The same with MS Office Excel. > I was thinking of eventuallyâ„¢ writing handlers for LibreOffice when > copying over table cells for org-mode. That requires Emacs to know about Rich Text, and to be able to convert that to Emacs faces. > When copying rich text from LibreOffice's MS Word equivalent, > yank-media-types reports: > > Possible completions are: > primary:text/html > clipboard:application/x-openoffice-link;windows_formatname="Link" > clipboard:application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)" > clipboard:TIMESTAMP > primary:STRING > primary:TEXT > primary:TIMESTAMP > primary:UTF8_STRING > primary:application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)" > primary:application/x-openoffice-objectdescriptor-xml;windows_formatname="Star Object Descriptor (XML)";classname="8BC6B165-B1B2-4EDD-aa47-dae2ee689dd6";typename="LibreOffice 24.2 Text Document";displayname="file:///home/viz/tmp/User_Manual.docx";viewaspect="1";width="17000";height="3000";posx="0";posy="0" > primary:text/plain > primary:text/plain;charset=utf-16 > primary:text/plain;charset=utf-8 > primary:text/richtext > primary:text/rtf It is similar with Word on Windows, but the names of the formats are different. Also, if "primary:" means this is available in the PRIMARY selection, then we are only talking about CLIPBOARD. Try M-: (gui-get-selection 'CLIPBOARD 'TARGETS) RET instead. > where text/html is the most useful. no, the most useful is Rich Text, but Emacs cannot yet yank that. > When I copy a few table cells from LibreOffice's MS Excel equivalent, it > reports: > > Possible completions are: > clipboard:application/x-openoffice-link;windows_formatname="Link" > clipboard:application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)" > clipboard:STRING > clipboard:TEXT > clipboard:TIMESTAMP > clipboard:UTF8_STRING > clipboard:application/x-libreoffice-tsvc > clipboard:application/x-openoffice-bitmap;windows_formatname="Bitmap" > clipboard:application/x-openoffice-dif;windows_formatname="DIF" > clipboard:application/x-openoffice-emf;windows_formatname="Image EMF" > clipboard:application/x-openoffice-gdimetafile;windows_formatname="GDIMetaFile" > clipboard:application/x-openoffice-objectdescriptor-xml;windows_formatname="Star Object Descriptor (XML)";classname="47BBB4CB-CE4C-4E80-a591-42d9ae74950f";typename="LibreOffice 24.2 Spreadsheet";displayname="file:///home/viz/doc/uni/pincer/convergence_for_Mn-1.ods";viewaspect="1";width="15846";height="4065";posx="0";posy="0" > clipboard:application/x-openoffice-sylk;windows_formatname="Sylk" > clipboard:application/x-openoffice-wmf;windows_formatname="Image WMF" > clipboard:image/bmp > clipboard:image/png > clipboard:text/html > clipboard:text/plain > clipboard:text/plain;charset=utf-16 > clipboard:text/plain;charset=utf-8 > clipboard:text/richtext > clipboard:text/rtf > primary:CLASS > primary:COMPOUND_TEXT > primary:HOST_NAME > primary:LENGTH > primary:NAME > primary:OWNER_OS > primary:STRING > primary:TEXT > primary:TIMESTAMP > primary:USER > primary:UTF8_STRING > primary:text/plain > primary:text/plain;charset=utf-8 > > image/png is, well, an image of the copied cells, and text/html has a > (an?) HTML table. On Windows, I see CSV, which I think is more useful (maybe tsvc above is something similar). You definitely do NOT want an image in this case.