From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uLHRHgGME2d7PgEA62LTzQ:P1 (envelope-from ) for ; Sat, 19 Oct 2024 10:37:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uLHRHgGME2d7PgEA62LTzQ (envelope-from ) for ; Sat, 19 Oct 2024 12:37:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XrGiyoUn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729334273; a=rsa-sha256; cv=none; b=PHOGwF5/s7VZhPOYv5AJQ9H2GrzCE337hXJGx1pjpr3RC0R6qlotmg1d6emXJ9d7Ck0G2f Y6NRjvxq2cFTROkiVu8O1xE8xo7xrZToppXikszW7fTJzY8joA43vYEIDn5sPT5ZqFfQzP IdH9Q7B6+SHm8qpekNlHMHCnmRjFnf52FCJpB+hCHunXI4j7m5C7mk19ZMDq7P4uiTjgAe b57GtExP6WPdZDiTrKfvKURXXzsoyLIicqZItxlHxlkiHheFqP3uJCBj8XaDBHUU9GZW9z QgSintSH3aEvbHGwDWOyATzdcriEDUEUsg6sbHiBRMNzAiEKmU4P5UCeFCpabw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XrGiyoUn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729334273; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NGJjsHKRmOJddmOqg1h2cSmPHLM8+EJ3E4+TyFlKvLk=; b=cO/Rw4TZ5itdSegd1roXyDdxwQeJMPh59Ov39PPx6cgS9DhCrr1yAuBUJQHIIxvgCbu4VD 9bdv9d7SsHdCCeGx0rtZVEBYpURGfgVCFmgtzU3QXW51I7b6hFOv+13T1HEHQanH3bdatw gJ3uiNFcq1NvmjT5ulnb/XlOCBNzeaC0o8UhuMOgA705sSdEqgw4Nop+sJw6yhKW9SEsSA opmC446zu4wDn6xBawPBz80PAxU+uvyFW9C3FXA/tv5rwsVfpnHWoNs/ytNR5bQ5/fjpAm rdjY/EJ0a6h/gD6AHkrIaHE9FBeAQF3O4MYxh8xatkeHXdOgUoug/gI2gA2zFQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1FF2C5D5D for ; Sat, 19 Oct 2024 12:37:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t26pU-0007iH-CN; Sat, 19 Oct 2024 06:37:04 -0400 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 1t26pS-0007fj-CL for emacs-orgmode@gnu.org; Sat, 19 Oct 2024 06:37:02 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t26pQ-0003ZB-U2 for emacs-orgmode@gnu.org; Sat, 19 Oct 2024 06:37:02 -0400 Received: by mail-pf1-x442.google.com with SMTP id d2e1a72fcca58-71e49ad46b1so2083615b3a.1 for ; Sat, 19 Oct 2024 03:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729334219; x=1729939019; darn=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=NGJjsHKRmOJddmOqg1h2cSmPHLM8+EJ3E4+TyFlKvLk=; b=XrGiyoUnP0OhoJIDh9GXXcuPVxk9WshhY6U2u0mFSWTuxgW78tn955HlMp6BVtnSZ3 yJVPIllIUJHuElfTmfgDoqT4HSIFjfzpbRxDXhd4rRIN3tSr3DONh2o4X6BLTEn/gxlb Ns+zWvaQOA1c68gmP4PJl1Q33LV9/HsM6aTNfC0IOjwvD+1iW6LlMezZ+ZGlqpgwC1oY a9uPh98Zel6DbMP6oOBY2eeZTuiop7ABNTOVxqbGYTjMStDBUxmsDOQ3qzU/dvLtiESJ CDHohZjdGOjQTtsHWbYac+bDw2zdyC/haI5PRlc6tVkRnsRQ/lrdD1LfYelw4MK+Ezax cglw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729334219; x=1729939019; 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=NGJjsHKRmOJddmOqg1h2cSmPHLM8+EJ3E4+TyFlKvLk=; b=mLLhB32M8fw6hDBCa6IyMW9NWv6Ld5iVri2+bsUe4mMKHCOk5JIiseTnPxGIusWDX9 0CqR7Wnsp/9GJOUvLjMaOI47P/Bf8bXEg6fyXLm80RPScL202arW5lZWyMm/uP6WtlRJ UQyIhddDS3XO6zVFn3KRiULy87U4+hiHLufuURABOmdTQDZdMAQNv8PGG3dsRQ5EJFxF 2IRj90SYM5Le55HjAnq6K7H31Pq2xLwNNZ3Jt6yIz+SaJHHv3dZoS69Rxwpfb5+p5J5A vf2lmDU3POZmOs1eMNBDQsPu4OGzjqgce7xveo7ioALxvtYo3zNDnSnOsVdyd/LKIJ7u TO/A== X-Forwarded-Encrypted: i=1; AJvYcCWqg5tv2BF7xV3vp2X2oB8ssPoEsWJxvAzpDQlfGOcs1Gq0gqQInjSrw9JINtWNHZzVD9ZlXV/uWh7+Z9GJ@gnu.org X-Gm-Message-State: AOJu0YyTz77eQ32HO+fzSAV3ykRdbPAFVZ6oO5CDS3fnFgY9oe4LpuUE sL2amxNo+9pP9RCcQRdyb0WyilvfsH1JkNlUAK1Fqrx1A7tMXcBtRAFfMNOz X-Google-Smtp-Source: AGHT+IFIeS61IgzbfZsUjr67RjGxxzbJ8f/cfE/FE5mk9giyDTmBJbmQbaSTefOlliQh8bepBxaDgw== X-Received: by 2002:a05:6a21:2d88:b0:1d8:af46:2152 with SMTP id adf61e73a8af0-1d92c4dfa25mr8805358637.11.1729334219357; Sat, 19 Oct 2024 03:36:59 -0700 (PDT) Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea3311efesm2832227b3a.7.2024.10.19.03.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 03:36:58 -0700 (PDT) From: Visuwesh To: Rens Oliemans Cc: Ihor Radchenko , org-mode-email Subject: Re: [PATCH] Add yank-media handler for LibreOffice Calc tables In-Reply-To: <875xpo1k1v.fsf@rensoliemans.nl> (Rens Oliemans's message of "Sat, 19 Oct 2024 12:09:00 +0200") References: <87r08i3alo.fsf@gmail.com> <871q0ise9x.fsf@localhost> <87msj53o2o.fsf@gmail.com> <87msj5dx8l.fsf@localhost> <87ttdawssj.fsf@gmail.com> <871q0cy3h2.fsf@localhost> <87ed4cwnmr.fsf@gmail.com> <87ldykwnbi.fsf@localhost> <8734kswkez.fsf@gmail.com> <87bjzgwk4k.fsf@localhost> <87y12kv4vh.fsf@gmail.com> <875xpo1k1v.fsf@rensoliemans.nl> Date: Sat, 19 Oct 2024 16:06:55 +0530 Message-ID: <87ttd8v0oo.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x442.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.56 X-Spam-Score: -1.56 X-Migadu-Queue-Id: 1FF2C5D5D X-Migadu-Scanner: mx12.migadu.com X-TUID: mcb8cNPQADdw [=E0=AE=9A=E0=AE=A9=E0=AE=BF =E0=AE=85=E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B= =E0=AE=AA=E0=AE=B0=E0=AF=8D 19, 2024] Rens Oliemans wrote: > Visuwesh writes: > >> I hope someone else can reproduce this issue on their end. I do not have >> another Linux system in which I could freely install Emacs and test this >> out. > > I'm not familiar with yank-media in any way, but here are the results of = the > commands you sent in this thread. They're all tested on the test.ods sent= by > Ihor. > > $ libreoffice --version > LibreOffice 24.2.6.2 420(Build:2) > > (version) > "GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, = cairo version 1.18.2)" > >>>> Just to be sure that yank-media is not in the middle of encoding >>>> problem, can you say what >>>> >>>> (gui-get-selection 'PRIMARY 'application/x-libreoffice-tsvc) >>>> >>>> returns? > > (gui-get-selection 'PRIMARY 'application/x-libreoffice-tsvc) > > nil. However, > > (gui-get-selection 'CLIPBOARD 'application/x-libreoffice-tsvc) > > #("foo bar=09 > 1 2 3 > " 0 15 (foreign-selection application/x-libreoffice-tsvc)) > >> What if you instead do >> >> (x-get-selection-internal 'PRIMARY 'application/x-libreoffice-tsvc)=20= =20 >> >> ? > > (x-get-selection-internal 'PRIMARY 'application/x-libreoffice-tsvc) > > nil. However, > > (x-get-selection-internal 'CLIPBOARD 'application/x-libreoffice-tsvc) > > #("foo bar=09 > 1 2 3 > " 0 15 (foreign-selection STRING)) > > Also: > > Debugger entered--entering a function: > * org--libreoffice-table-handler(application/x-libreoffice-tsvc #("fo= o\11bar\11\n1\0112\0113\n" 0 15 (foreign-selection STRING))) > yank-media() > >> Also, what is the value of x-select-request-type? > > nil. > > `current-locale-environment' is "en_US.UTF-8" > > I hope that this is helpful. Thank you, this helps a lot! The fact that you had to change PRIMARY to CLIPBOARD should not be a problem in practise: (1) LO should be putting the data in the CLIPBOARD anyway, and (2) yank-media abstracts this away for us. If possible, could you please try LibreOffice 7.6.4? The version Ihor has installed in his system. There is an AppImage available for you to try.