Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/b

2024-02-19 Thread Ihor Radchenko
Matt writes: > > Note that we already have a WIP an asynchronous API in the works. > > Check out `org-async-call' in > > https://code.tecosaur.net/tec/org-mode/src/branch/dev/lisp/org-macs.el#L377 > > If possible, we should reuse it. > > :O > > - What's the status? Finalizing. > -

Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/b

2024-02-19 Thread Matt
On Mon, 19 Feb 2024 01:31:42 +0100 Jack Kamm wrote --- > I don't remember the details, but my past self [1] thought it would be > good to find a way to replace `process-file' with `make-process' in > `org-babel--shell-command-on-region' or `org-babel-eval', and it seems > you are

Re: [DISCUSSION] What should we do with undocumented x^(superscript inside /round/ braces) syntax?

2024-02-19 Thread Ihor Radchenko
"Fraga, Eric" writes: > On Saturday, 17 Feb 2024 at 14:06, Ihor Radchenko wrote: >> Inconsistent with LaTeX syntax, Org mode not only allows >> x^{superscript}, but also x^(superscript) with round braces used for >> grouping. > > Inconsistent with LaTeX is not a sufficient reason for removing

Re: [DISCUSSION] What should we do with undocumented x^(superscript inside /round/ braces) syntax?

2024-02-19 Thread Fraga, Eric
On Saturday, 17 Feb 2024 at 14:06, Ihor Radchenko wrote: > Inconsistent with LaTeX syntax, Org mode not only allows > x^{superscript}, but also x^(superscript) with round braces used for > grouping. Inconsistent with LaTeX is not a sufficient reason for removing this, in my opinion. Org has

Re: Disable time messages from org-persist

2024-02-19 Thread Colin Baxter
> Ihor Radchenko writes: > Colin Baxter writes: >> Ho do I disable messages from org-persist telling me how long it >> took to write to gc-lock.eld? For example, >> >> --8<---cut here---start->8--- >> org-persist: Writing to

Re: set italian language in LaTeX export

2024-02-19 Thread Juan Manuel Macías
Luca Ferrari writes: >> #+language:it >> #+LaTeX_Header: \usepackage[AUTO]{babel} >> > > Thanks, this solved the problem. Out of curiosity, why is not org-mode > adding it automatically whenever a #+language setting is present? > I'm just curious because it seems that, as an example, open-office

Re: footnotes & #+STARTUP:

2024-02-19 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Ihor Radchenko writes: > Sharon Kimble writes: > >> For various reasons I've recently changed my theme from a home-made one to >> 'naquadah' which seems to have some problem in that it forces all footnotes >> into the bottom of the file. How

Re: set italian language in LaTeX export

2024-02-19 Thread Luca Ferrari
O> You must load the babel package with the AUTO option: > > #+language:it > #+LaTeX_Header: \usepackage[AUTO]{babel} > Thanks, this solved the problem. Out of curiosity, why is not org-mode adding it automatically whenever a #+language setting is present? I'm just curious because it seems that,

Re: Disable time messages from org-persist

2024-02-19 Thread Ihor Radchenko
Colin Baxter writes: > Ho do I disable messages from org-persist telling me how long it took to > write to gc-lock.eld? For example, > > --8<---cut here---start->8--- > org-persist: Writing to "~/path/to/org-persist/gc-lock.eld" took 3.08 sec >

Disable time messages from org-persist

2024-02-19 Thread Colin Baxter
Ho do I disable messages from org-persist telling me how long it took to write to gc-lock.eld? For example, --8<---cut here---start->8--- org-persist: Writing to "~/path/to/org-persist/gc-lock.eld" took 3.08 sec --8<---cut

Re: [patch] Add two new header args to LaTeX block

2024-02-19 Thread Juan Manuel Macías
Ihor Radchenko writes: > Juan Manuel Macías writes: > >>> I'd prefer to refactor `org-babel-execute:latex' first, before adding >>> new header arguments. >> >> org-create-formula-image inserts LaTeX code: > > `org-create-formula-image' will be obsoleted after Timothy merges his > latex preview

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-02-19 Thread gerard . vermeulen
On 19.02.2024 10:46, Ihor Radchenko wrote: Ihor Radchenko writes: gerard.vermeu...@posteo.net writes: I think that I have improved my region marking code by using "" in the temp-text as a start. Then, I only have to find where to set mark, and eventually exchange point and mark. Still

Re: [BUG] org :extend property bugfix does not work [9.7 (9.7-??-388ba5b @ /home/st/.config/emacs/.local/straight/build-30.0.50/org/)]

2024-02-19 Thread Ihor Radchenko
StrawberryTea writes: > In the following Org file which I have copypasted verbatim, the current > workaround for bug#65896 made in > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=793cdbea68ae9f6eb4270315df6ff3419c3d8c20 > does not work... > > Copy-pasted Org mode file: >... It

Re: footnotes & #+STARTUP:

2024-02-19 Thread Ihor Radchenko
Sharon Kimble writes: > For various reasons I've recently changed my theme from a home-made one to > 'naquadah' which seems to have some problem in that it forces all footnotes > into the bottom of the file. How can I revert it back to my wanted inline, of > this > format `[fn:3]` and then

Re: [FR] org-num-mode inverse defaults

2024-02-19 Thread Ihor Radchenko
Maske writes: > My config, not working yet, everything is numbered with org-num-mode: > > (setq org-num-skip-unnumbered 't) > > (setq org-use-property-inheritance '("UNNUMBERED")) > > (setq org-global-properties '(("DIR" . "data/") ("UNNUMBERED" . "t"))) Note that you need development version

Re: [BUG] Org parser error Invalid search bound (wrong side of point) [9.7 (9.7-??-7a6bb0904 @ /Users/dougheadley/.config/emacs/.local/straight/build-29.2/org/)]

2024-02-19 Thread Ihor Radchenko
Doug Headley via "General discussions about Org-mode." writes: > using org-ai seemed to cause this bug.  I wouldn't have recieved this > error otherwise. > > Never filed a bug report before.  Please ignore if this seems incomplete. Thanks for reporting! We have seen similar bugs reported for

Re: [patch] Add two new header args to LaTeX block

2024-02-19 Thread Ihor Radchenko
Juan Manuel Macías writes: >> I'd prefer to refactor `org-babel-execute:latex' first, before adding >> new header arguments. > > org-create-formula-image inserts LaTeX code: `org-create-formula-image' will be obsoleted after Timothy merges his latex preview branch. If the new implementation

Re: set italian language in LaTeX export

2024-02-19 Thread Juan Manuel Macías
Luca Ferrari writes: > #+language: it > > and I correctly got in the LaTeX buffer something like: > > pdflang={Italian}} > > but not something like: > > \usepackage[italian]{babel} You must load the babel package with the AUTO option: #+language:it #+LaTeX_Header: \usepackage[AUTO]{babel} (see

Re: [BUG] Prompt appears in async shell results

2024-02-19 Thread Ihor Radchenko
Matt writes: > - Split prompt filtering and input echoing into two filters > + this seems to imply a =-hook= or =-functions= type implementation Not necessarily. You may just split the filter into (1) prompt remover; (2) body remover. The filter does not need to interact with comint buffer

Re: dynamic blocks orgmode manpage

2024-02-19 Thread Ihor Radchenko
chris writes: > Now, after running =C-c C-c= on the line below, trying =M-x org-dynamic-block- > insert-dblock= will result in the error: =funcall-interactively: Wrong type > argument: commandp, org-dblock-write:block-update-time=. > > #+begin_src emacs-lisp > (org-dynamic-block-define "block

set italian language in LaTeX export

2024-02-19 Thread Luca Ferrari
Hi all, this has to be trivial, but it is not working on my system (Emacs 28.2, Org 9.5.5): I set in my document #+language: it and I correctly got in the LaTeX buffer something like: pdflang={Italian}} but not something like: \usepackage[italian]{babel} and therefore the generation of the

Re: detangling with babel :var header entries

2024-02-19 Thread Fraga, Eric
On Saturday, 17 Feb 2024 at 16:18, Ihor Radchenko wrote: > I also have no idea. I'm afraid that detangling can only be used in > simple cases as it is implemented now. I had the feeling this would be the case. No worries. Thank you. -- : Eric S Fraga, with org release_9.6.18-1158-g8e2ed4 in

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-02-19 Thread Ihor Radchenko
Ihor Radchenko writes: > gerard.vermeu...@posteo.net writes: > >>> I think that I have improved my region marking code by using "" >>> in the temp-text as a start. Then, I only have to find where to set >>> mark, >>> and eventually exchange point and mark. > > Still failing on my side (when

Re: [BUG] beamer export

2024-02-19 Thread Ihor Radchenko
Leo Butler writes: >> What about not adding BEAMER_FRAME, but instead adding org-lint checker >> that will detect when frame text contains the problematic \end{orgframe}? > > Ok, thanks for your feedback. I have modified the patch along the lines > you suggested. It is attached. Thanks! It

Re: Radio links work only in small numbers

2024-02-19 Thread Ihor Radchenko
Rudolf Adamkovič writes: > All [[link]]s in my notes perfectly match LEVEL-1 headings, so I figured > that I may as well ask Org to make links for me. So, I replaced all the > ~4000 headings in my notes with radio <<>>. However, Org now > errors out with "Regular expression too big". > > Does

Re: Asynchronous blocks for everything (was Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/b

2024-02-19 Thread Ihor Radchenko
Bruno Barbier writes: > Hi Matt, Jack, Ihor, > > Sorry for the late reply. Cleaning the code took me longer than > expected. Thanks for the code! It is a lot more that I expected. I have many questions ;) > The new API itself is more about how to wait for and display one block > result. So,

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-19 Thread Ihor Radchenko
Martin Edström writes: > Tests passed (14 SKIPPED), compiled fine. I've made no prior > contributions and this changes 5 lines. I'm ok if you want to rephrase > it in any way. Applied onto main, with amendments. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a8443f2c7 Thanks