Re: [PATCH] Async sessions: Fix prompt removal regression in ob-R

2024-10-19 Thread Ihor Radchenko
Jack Kamm writes: > ... > Therefore, I've attached an updated patch that provides such a mechanism > for ob-R and ob-python, reverting them to the Org 9.6 behavior. This is > done through a variable `org-babel-comint-async-remove-prompts-p', which > is set by an optional argument in `org-babel-co

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

2024-10-19 Thread Visuwesh
[சனி அக்டோபர் 19, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >>> Also, do note that any text exceeding >>> `org-table-convert-region-max-lines' will lead to >>> `org-table-convert-region' throwing an error. >> >> Catching that and messaging the user should be sufficient? > > Maybe. Or we ma

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

2024-10-19 Thread Rens Oliemans
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

Re: [BUG] Texinfo: Commas in URL text are not escaped

2024-10-19 Thread Ihor Radchenko
8dcc <8dcc@gmail.com> writes: > When exported to Texinfo using `org-texinfo-export-to-texinfo', > generates the following file: > > ... > @uref{https://example.com, Foo} > > @uref{https://example.com, Foo, Bar} > ... > > The comma on the text of the second URL is being interpreted by T

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

2024-10-19 Thread Visuwesh
[சனி அக்டோபர் 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://appimage

Re: Exporting tables with cell borders to Latex/PDF

2024-10-19 Thread jman
Mark Barton writes: Here is an example of using the #+ATTR_LaTeX: line to pass parameters to the LaTeX process that creates the pdf. #+ATTR_LaTeX: :environment tabular :align |l|l|l| |-+-+---| | one | two | three | |-+-+---| | 1 | 2 | 3 | |-+-+---|

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

2024-10-19 Thread Ihor Radchenko
Visuwesh writes: >> 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-tsvc)) >> (gui-get-selection PRIMARY application/x-libreoffice-tsvc) >> (progn (debug) (gui-get-selection 'PRIMARY >>

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

2024-10-19 Thread Visuwesh
[சனி அக்டோபர் 19, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >>> 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-tsvc)) >>> (gui-get-selection PRIMARY application/x-libreoffice-tsvc

Request for comment: Adding feature to calculate Org table reference from selected text region

2024-10-19 Thread Charles Choi
Hello folks! I recently made a blog post describing a means of calculating an Org table reference from a selected text region or rectangle. I think this feature is compelling enough to put into Org itself and as such I am raising this idea with this group to gauge interest. This idea and its i

Re: [PATCH] ob-comint,R,python: Options for more robust non-async session output

2024-10-19 Thread Ihor Radchenko
Jack Kamm writes: > This is related to my recent thread, > > https://list.orgmode.org/87wmi9etku@gmail.com/T/#m93bd964243638ee358d4375c9ed4f40e066238d4 > > which addresses problems with prompt filtering of R and python async > evaluation in Org 9.7. > > Here, I address the non-async case. >

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

2024-10-19 Thread Ihor Radchenko
Visuwesh writes: >> Here is the recipe >> 1. make repro (I tried with the latest Emacs master and with Emacs 29) >> 2. Open test.odt (attached) >> 3. M-x org-mode >> 4. Copy the non-empty cell area >> 5. M-x yank-media app >> 6. Observe encoding problems > > Thanks for the reproducer. I think

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

2024-10-19 Thread Ihor Radchenko
Visuwesh writes: >> Also, do note that any text exceeding >> `org-table-convert-region-max-lines' will lead to >> `org-table-convert-region' throwing an error. > > Catching that and messaging the user should be sufficient? Maybe. Or we may catch and ask user to lift the restriction temporarily.

Re: [BUG] `org-format-outline-path` returns inproper `org-level-N` face for a heading if its level is not consequent from its parent heading.

2024-10-19 Thread Ihor Radchenko
[ Adding Org mailing list back to CC to keep the conversation public ] daisy...@tuta.io writes: > It works with org-mode's native functionalities, but doesn't integrate well > for some third-party packages such as `consult-org-heading`, > `consult-outline`, and other commands that do mini-buffe

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

2024-10-19 Thread Ihor Radchenko
Visuwesh writes: > My LibreOffice version is > > % libreoffice --version > LibreOffice 24.2.5.2 420(Build:2) LibreOffice 7.6.7.2 60(Build:2) >> 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 wh

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

2024-10-19 Thread Visuwesh
[சனி அக்டோபர் 19, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >>> Here is the recipe >>> 1. make repro (I tried with the latest Emacs master and with Emacs 29) >>> 2. Open test.odt (attached) >>> 3. M-x org-mode >>> 4. Copy the non-empty cell area >>> 5. M-x yank-media app >>> 6. Observe e

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

2024-10-19 Thread Visuwesh
[சனி அக்டோபர் 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 resul

Re: [BUG] Warning on executing keyboard macro that inserts time-stamp [9.6.27 ( @ /home/punit/.emacs.d/elpa/org-9.6.27/)]

2024-10-19 Thread Ihor Radchenko
Punit Arya writes: > ... I'll update the thread if I ever get around to work on this, > though it is unlikely given the other time-consuming tasks I've on hand > and file. We can consider this issue closed, if it suits the project. Ok. Closing. Canceled. -- Ihor Radchenko // yantar92, Org

Re: Avoid "Scheme implementation" prompt on export

2024-10-19 Thread Ihor Radchenko
Roi Martin writes: > I have an org document with the following structure: > > --- > Racket code block: > > #+begin_src scheme > #lang racket > (+ 1 2) > #+end_src > ... > It includes several code blocks with different scheme implementations > (e.g. Racket and Chez). > > When I export the docu

Re: Avoid "Scheme implementation" prompt on export

2024-10-19 Thread Ihor Radchenko
Roi Martin writes: > Maybe, we could have an alist that associates a language to some kind of > "setup" function. For instance, in the case of Scheme, it would read > the `:scheme' argument and set the geiser implementation. However, I'm > not sure if it is worth it. Also, I'm not familiar wit

Re: Avoid "Scheme implementation" prompt on export

2024-10-19 Thread Ihor Radchenko
Bruno Barbier writes: >>> #+begin_src scheme :scheme chez >>> (+ 3 4) >>> #+end_src >>> >>> and also with ':scheme racket'. >>> >>> Unfortunately, it does not seem to work when exporting the document. :scheme header argument does not affect export by default. It only affects code evaluation an

Re: Case insensitivity of simple [[links]]

2024-10-19 Thread Ihor Radchenko
Gregor Zattler writes: >> Note that there is generally no guarantee that [[name]] link will be >> exported as "name" by any particular backend. Your workaround with >> num:nil is just a workaround that may or may not work in future. > ... > actually this workaround does /not/ work > around if [li

Re: [BUG] A call of (org-end-of-meta-data t) goes too far in a heading with only whitespace

2024-10-19 Thread Benjamin McMillan
I confused the issue in my response, and want to clear it up. As you say, when the heading has no contents, "after metadata" is the next headline. However, my problem is if heading 1 contains several blank lines: * Heading 1 :PROPERTIES: :ID: 11 :END: * Heading 2 In this example, a call of