From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#71909: 30.0.60; Date: Sun, 06 Oct 2024 17:45:51 +0530 Message-ID: <877calh1fs.fsf@gmail.com> 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> <86bjzxv49y.fsf@gnu.org> 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="13127"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: cpardo@imayhem.com, 71909@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 06 14:18:07 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 1sxQD8-0003GP-Kp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Oct 2024 14:18:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxQCz-0004xs-Dp; Sun, 06 Oct 2024 08:17:57 -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 1sxQCy-0004xj-Jw for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 08:17: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 1sxQCy-00069N-AZ for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 08:17: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:Date:References:In-Reply-To:From:To:Subject; bh=nyt3JvKyMvZngCxapouCk3fPp30g51ybjsfwEjLWOJM=; b=gFZ0QGcUVYo8uBKdLKOBc/V28I9bfy5+cmIs1A66YRXaPC5f/6ewyuqUG907RU0vZh1ekSqwXSJvjPZzPsplNRiO1nBroYv+uaDQeOKv04ktxjEhSEh8GYwAOPOX4NVmb+Hf12+OCWaSsPSPYfX44RzdUoYimhdpB8Ft/Uig+xTI1JahtPDSWISauqc2of30e+oREPleLmtk/IDcL66h44G4UtCSy1qAvBi5yw6DZHAGuiBh4LzvQqkW9uWcn2aARwT5AuXUl/cz5Lv5KAqgRlTyQn9DNM7eK7JIGlFLBQ3ciHgVgXVjerVLf161WAKztS/JZtrHTHXPRIChfUjieg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxQD4-0005GQ-4U for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2024 08:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Oct 2024 12:18:02 +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.172821703120161 (code B ref 71909); Sun, 06 Oct 2024 12:18:02 +0000 Original-Received: (at 71909) by debbugs.gnu.org; 6 Oct 2024 12:17:11 +0000 Original-Received: from localhost ([127.0.0.1]:40382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxQCE-0005F6-LL for submit@debbugs.gnu.org; Sun, 06 Oct 2024 08:17:11 -0400 Original-Received: from mail-pf1-f195.google.com ([209.85.210.195]:42042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxQCC-0005Er-Ku for 71909@debbugs.gnu.org; Sun, 06 Oct 2024 08:17:09 -0400 Original-Received: by mail-pf1-f195.google.com with SMTP id d2e1a72fcca58-71df2de4ed4so616504b3a.0 for <71909@debbugs.gnu.org>; Sun, 06 Oct 2024 05:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728216957; x=1728821757; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nyt3JvKyMvZngCxapouCk3fPp30g51ybjsfwEjLWOJM=; b=EXhmGy9JfkgyGYUL9JeFi6qjhuRR0HYnzNi/1nBVhewcOKzoXtYObhySE64yP811cJ BYc25sH24SM0YHK1xjX5qEKlEMUwRy+go3FauYuyilCGjnuPPVctLzW8p99/a90R10hc EfwmSRobfBc8X+rk1IyrhvUJjvUXM8n+vcH6F+57DAVAJAf0BQjZGaLI/5yCMgXD6SjU ZuzDrb8sGkMnx8zOh1SLtg+fvPmPWdFWF5V3YNwUzOishtV9o1GEu5shd9l4BmrjT0Zb vqbQESKanrXC/27zO7XJoIVF2je7IzEnYkibPfOBWS29nyiLKEn9aD5nuS9iKVkB7zvx OF6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728216957; x=1728821757; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=nyt3JvKyMvZngCxapouCk3fPp30g51ybjsfwEjLWOJM=; b=hUO8Y7q/xdSzO4gbfH6SQixRxuJuQwlMd9r1f7cn4esAtsgrjdZQMVFmgdjijZ3Viv Af9q3MDxjwSx7JyjVqsQjqfjX+8ajGNf1hoks07gR+KuIEeeLVja1zOOr2800olerDz6 eIwzx+w9wByrvTY+tNkwX8iF/ijUZ5vGQhwviBUpHml29MBBDorIHl+MY8l4t3kBFhZl VwnEcf6rh4+TDTO7/uqPQ55asnjE5T9eOt/U+93USnH8RBqsh2SzL8GChnI7gPRivAbM mrwFQykuFmi/u4v68w2V2S7vHAXTMvFb9QSBZj4/cYJm7XuXbAszCmpgvZ+35ItoIqgk XQuw== X-Forwarded-Encrypted: i=1; AJvYcCV3ppTaa7kKPz+Zk+8tbMQV1HimX6aqb7KPw1HhSQZt/BClFedN17NuPXyEVlmu4kq2S1wlOg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw+vQNKaF+xkPbjqVpYdX568wXuDnP1K70G1WN0QmzKe2KracVJ 2Yaz1TAbEdMPXXzwzVFiDaa5Xk0FfVugs5PWFdwIxisydkVc/nLu X-Google-Smtp-Source: AGHT+IFrgPmhvQj3DMCNqX1MbuBVBNY95SXK7S5I0PoVhi2RCPGMZPfxwH0cDEp00wbwHjFScY0d5g== X-Received: by 2002:a05:6a00:22d0:b0:71e:d7:378a with SMTP id d2e1a72fcca58-71e00d73998mr1811982b3a.11.1728216956740; Sun, 06 Oct 2024 05:15:56 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71df0d7ce98sm2707876b3a.190.2024.10.06.05.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Oct 2024 05:15:56 -0700 (PDT) In-Reply-To: <86bjzxv49y.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Oct 2024 14:50:49 +0300") 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:293079 Archived-At: [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=85=E0=AE=95= =E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 06, 2024] Eli Zarets= kii wrote: >> From: Visuwesh >> Cc: Cecilio Pardo , 71909@debbugs.gnu.org >> Date: Sun, 06 Oct 2024 16:12:03 +0530 >>=20 >> 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=E2=84=A2 writing handlers for LibreOffice w= hen >> 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. Which I hope someone will eventually do something about. When yank-media was first mentioned among org-mode users, one of the first question was "Can it paste text copied from the browser in org-mode format?" (i.e., convert bold text to *bold text*) >> When copying rich text from LibreOffice's MS Word equivalent, >> yank-media-types reports: >>=20 >> Possible completions are: >> primary:text/html >> clipboard:application/x-openoffice-link;windows_formatname=3D"Link" >> clipboard:application/x-openoffice-embed-source-xml;windows_formatna= me=3D"Star Embed Source (XML)" >> clipboard:TIMESTAMP >>[...] > 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.=20=20 Yes, it means the PRIMARY selection. For some reason, yank-media also seems to consider the PRIMARY selection? When I did M-x yank-media RET in a html-mode buffer, it pasted the above text/html data. > 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. Possibly. But we could at least "hijack" shr to convert text/html to string with text properties on it, or make it insert markup elements. I've done the later as a personal hack and it works fairly well. >> When I copy a few table cells from LibreOffice's MS Excel equivalent, it >> reports: >>=20 >> Possible completions are: >> [...] >> 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).=20=20 You are right. It pasted a TSV formatted text. I missed it in the long list of items. > You definitely do NOT want an image in this case. Definitely not. I simply found it amusing that LibreOffice offered it as a potential candidate.