emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add yank-media handler for LibreOffice Calc tables


From: Visuwesh
Subject: Re: [PATCH] Add yank-media handler for LibreOffice Calc tables
Date: Sat, 19 Oct 2024 16:06:55 +0530
User-agent: Gnus/5.13 (Gnus v5.13)

[சனி அக்டோபர் 19, 2024] Rens Oliemans wrote:

> Visuwesh <visuweshm@gmail.com> 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     
> 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)  
>>
>> ?
>
>     (x-get-selection-internal 'PRIMARY 'application/x-libreoffice-tsvc)
>
> nil. However,
>
>     (x-get-selection-internal 'CLIPBOARD 'application/x-libreoffice-tsvc)
>
> #("foo        bar     
> 1     2       3
> " 0 15 (foreign-selection STRING))
>
> Also:
>
>     Debugger entered--entering a function:
>     * org--libreoffice-table-handler(application/x-libreoffice-tsvc 
> #("foo\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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]