From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4AkaFc5xE2e7jQAA62LTzQ:P1 (envelope-from ) for ; Sat, 19 Oct 2024 08:46:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4AkaFc5xE2e7jQAA62LTzQ (envelope-from ) for ; Sat, 19 Oct 2024 10:46:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=E6HQSgiT; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729327566; 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=ckaeo/TATh3kv+qGng9dR77qnpDtBMWAybvs62FWYLc=; b=C+QTiZV49WCkJqCmbK64u6lHDq3U6u0JdhSEH+mKn0V3fER8PW4QXK3EKUAhkj8aTWuo3C PP2RqI4IlyIcwcASr5LUx9qIHct+k3VqoKrByXVCcKqMYK0eUtWWrREW2PkX0ElbJ+M92n oA56K2mc8GP/hcpqoUd+CZjb0a2wZNk2xQKs38u9wCi7N/4K/p+lKwEoDcMRP4IEQ4hgYr mlhqG9lELMvTkZwJBVfxcS26IhFeYyNVnTSPbVXoYPB8/CNElx50hf69MXY9nmGiz+hPA6 KUrSepwW+GzcpsiFEjRqpE6lW8DEMe45oJAYFJ6WJLArKqe4BJKPMLhCE4SgKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=E6HQSgiT; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729327566; a=rsa-sha256; cv=none; b=kDyKYZUB+Wq50rYE3yHwRuKBcAn6Qb8tiueaB3DlSmEhj+PpzJKwvZS0qKl/zgDM4f0c3S r5RibRp2t+khE4TnDswrLChLVT5ltl7Z75PeeQbGGrxTHWx0qdIvx6Eu9v0aieh1MjrT8+ 4mL1t8Q+8QC9welwzCe5KzqpMW22qU3jlumbE9SQPXa0/rBoHPyVdh4C/vuv76M0v+fU97 MRqTKJhOQatJ1GHmjH6rE4BdaNBdROu0Hb7goBZqSZZb9UUCHhpo+Hf/qC88WUJ2WuzLLa Wdc3dgca6XqeVFjhLCY+BFCUR4W3HSi/O+HjyL56PWSBEZ9GIkjtOiQg7ZCR8Q== 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 E74EC8F951 for ; Sat, 19 Oct 2024 10:46:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t255Y-0001pf-Sz; Sat, 19 Oct 2024 04:45:32 -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 1t255X-0001pB-EH for emacs-orgmode@gnu.org; Sat, 19 Oct 2024 04:45:31 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t255V-0006fR-Px for emacs-orgmode@gnu.org; Sat, 19 Oct 2024 04:45:31 -0400 Received: by mail-pf1-x441.google.com with SMTP id d2e1a72fcca58-71e585ef0b3so2339646b3a.1 for ; Sat, 19 Oct 2024 01:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729327528; x=1729932328; 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=ckaeo/TATh3kv+qGng9dR77qnpDtBMWAybvs62FWYLc=; b=E6HQSgiT3tB1AO1Se/q5QZul7yiMgkn48Wb/M+8i5uDNjcCb8ysnfpa0GtrJsFsUlO nUa3jordSR83xaSXWxrl3XNQXlrXipRgbr++m+rNOJ/c9vPLdAaCZDpa3KgOP9nPv+bP kUpSqoj0+nbNy9No0QC9oJO1iRGyxQgBCs1bpux0u/sIio6jCtThl+uDChIFzXrU6zFi BIH7XagLw0Ux5lW+noXEDvwEOHk6skgt3nWMQS52JvdUnrSzgw8o6Hg+ux7IbzgiAV7g II7pAEQqVI8ZkyGO9Ue5u4ZBFnmYoRBb86i1+4CKrBe4cO6UhUMSKExX8gHeswwZ9Iw6 kUZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729327528; x=1729932328; 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=ckaeo/TATh3kv+qGng9dR77qnpDtBMWAybvs62FWYLc=; b=bC7RgkRh8CZZUjDE9ZO2bDp60tfTEeAEj6gCsRjdoVv7oEnr1WGnKn9k8YpSebUMgi LVF79kEEKy25Fgiz3IgARXjxw/R+HmVu18DsWEmRFXFoeBsyyJ8kFkIv9jDkPFaBRJUa 5RJV4wvMVOcgGRioe8yhteVcZt8kYC8w4T4WRBj5i2EHLAsnBXm2snVYOOSFCKDYM/P2 5jKQoc2OP/quAk+JNc784XGtDmFMOzIZr83hrr6ZGnTZoL5q7uRStuGxLS/TzAzwlsrX 5c1cpxxr70iO2LN9xKnKK3PfemYtmBvCM3rR44B1+kZ5wqKSaIX1eKisQcPKyPQGAwzG WeAQ== X-Gm-Message-State: AOJu0YySWQ904QP6RDZDZvcYmvwspvqbqRqSPirzBZ/X2E5xDOhmg2/U RHmxTK6UaWKvtHhXew8yB/A8q3Ki4miZE6KajoYr8ZVESRwad7XV X-Google-Smtp-Source: AGHT+IGXGv+6kjdyQ36gLdVEQNXe94fc0nszIwNFlM+wYmYNtj06dA58ZDQZf7DNBn6oS/qevKSoGQ== X-Received: by 2002:a05:6a20:e617:b0:1d9:1bde:bf8 with SMTP id adf61e73a8af0-1d92c4df71emr6812843637.14.1729327528082; Sat, 19 Oct 2024 01:45:28 -0700 (PDT) Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea333be36sm2679738b3a.62.2024.10.19.01.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 01:45:27 -0700 (PDT) From: Visuwesh To: Ihor Radchenko Cc: org-mode-email Subject: Re: [PATCH] Add yank-media handler for LibreOffice Calc tables In-Reply-To: <87ldykwnbi.fsf@localhost> (Ihor Radchenko's message of "Sat, 19 Oct 2024 07:42:41 +0000") 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> Date: Sat, 19 Oct 2024 14:15:24 +0530 Message-ID: <8734kswkez.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::441; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x441.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.56 X-Spam-Score: -1.56 X-Migadu-Queue-Id: E74EC8F951 X-TUID: RSyj2te73VNr [=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] Ihor Radchenko wrote: > Visuwesh writes: > >> My LibreOffice version is >> >> % libreoffice --version >> LibreOffice 24.2.5.2 420(Build:2) > > LibreOffice 7.6.7.2 60(Build:2) It might not be the version after all... I downloaded the AppImage from https://appimages.libreitalia.org/ (listed in https://www.libreoffice.org/download/appimage/) and it does not have NULL bytes at all: Debugger entered: (#("1\0112\0113\n4\0115\0116\n" 0 12 (foreign-selecti= on application/x-libreoffice-tsvc))) (progn (debug nil (gui-get-selection 'PRIMARY 'application/x-libreoff= ice-tsvc))) \011 is the TAB character. % ./LibreOffice-7.4.6.2.basic-x86_64.AppImage --version LibreOffice 7.4.6.2 5b1f5509c2decdade7fda905e3e1429a67acd63d >>> As you can see, the data contains \0 characters. >> >> 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? If it contains NULL bytes too, then I would be completely >> clueless. > > Debugger entered--returning value: #("1\0\11\0002\0\11\0003\0\n\0004\0\11= \0005\0\11\0006\0\n\0" 0 24 (foreign-selection application/x-libreoffice-ts= vc)) > (gui-get-selection PRIMARY application/x-libreoffice-tsvc) > (progn (debug) (gui-get-selection 'PRIMARY 'application/x-libreoffice-t= svc)) Thanks so it is confirmed that yank-media does not do any conversion. What if you instead do (x-get-selection-internal 'PRIMARY 'application/x-libreoffice-tsvc) ? I am not sure if it will reveal anything. Also, what is the value of x-select-request-type?