Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Jeremie Juste
Hello Ihor, >> I guess we might add an option to tell Org which separator to use when >> parsing output when :results table header argument is provided (see 16.6 >> Results of Evaluation section of Org manual). However, you can achieve >> the same now, using :post header argument, replacing the

Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Jeremie Juste
Hello Ihor, > Org knows nothing about your output, by default. > You could as well do something like {print $1+-+$2+-+$3} > What should Org do in such case? > > Currently, Org tries to guess the type of arbitrary output. If the > output looks like a table, with fields separated by tabs,

Re: [PATCH] Async evaluation in ob-shell

2023-03-05 Thread Matt
On Sun, 05 Mar 2023 07:14:21 -0500 Ihor Radchenko wrote --- > > Matt m...@excalamus.com> writes: > > > > Sorry for missing that. The issue is that when I replaced > > `org-babel-sh-prompt' with `comint-prompt-regexp', the regexp no > > longer matches the output and grabs the next

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-05 Thread lux
On Sat, 2023-02-18 at 11:43 +, Ihor Radchenko wrote: > lux writes: > > > -  (shell-command (format "mv %s %s" img-out out- > > file) > > +  (rename-file img-out out-file > > I think should be (rename-file img-out out-file t) > Fixed, thank you. From

Re: [PATCH] org-src: Improve the name of source editing buffers

2023-03-05 Thread Rudolf Adamkovič
I had a little bit of spare time today to refine the patch. Changes: - The patch now comes with a test to avoid regressions. - The patch has a slightly better commit message. Please see the attached file. Thank you! Rudy >From a831b9014b3aaef16846dca049882a485ebf1dd6 Mon Sep 17 00:00:00 2001

Re: [PATCH] Fix LaTeX misspelled as Latex

2023-03-05 Thread Rudolf Adamkovič
Please, see the updated patch attached to this message. It has (1) a unified commit message with the similar BibTeX patch, and (2) a more correct change-log [*]. [*] For some reason Org breaks change log generation with "user-error: Cannot move further down". Rudy >From

[PATCH] Fix BibTeX spelled as Bibtex

2023-03-05 Thread Rudolf Adamkovič
* lisp/ol-bibtex.el: Spell BibTeX correctly * etc/ORG-NEWS (Org-BibTeX -- major improvements): Spell BibTeX correctly --- etc/ORG-NEWS | 2 +- lisp/ol-bibtex.el | 22 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index

[PATCH] Fix LaTeX misspelled as Latex

2023-03-05 Thread Rudolf Adamkovič
* etc/ORG-NEWS (Non-floating minted listings in LaTeX export): Spell LaTeX correctly. * lisp/ob-latex.el: (org-babel-execute:latex): Spell LaTeX correctly. * lisp/org-element.el (org-element-latex-fragment-parser): Spell LaTeX correctly. * lisp/ox-ascii.el (org-ascii-latex-fragment): Spell LaTeX

Re: [PATCH] org-clock: Add a trailing space to the mode line string

2023-03-05 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Thanks! > Applied, onto bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3d817c52c Why not the one with the correct Info link, as per Max's excellent nitpick? Rudy -- "Be especially critical of any statement following the word 'obviously.'" --

[BUG] org-element-at-point rx error on large file [9.6.1 (release_9.6.1-34-geea8da @ /home/dericbytes/installs/share/emacs/30.0.50/lisp/org/)]

2023-03-05 Thread Deric Bytes
Expected: Running `org-element-at-point' on large empty file returns nil. How to replicate: emacs -q (require 'org) (newline 20) (org-element-at-point) Actual response ⛔ Warning (org-element-cache): org-element--cache: Org parser error in *scratch*::24. Resetting. The error was:

Re: [ANN] orgtbl-fit

2023-03-05 Thread tbanelwebmin
On 3/3/23 16:13, Ihor Radchenko wrote: BTW, the dollar replacement is something org-table can benefit from---a number of people are confused because "$" is treated specially by Calc. I'm not sure what you mean. The dollar in spreadsheet formulas? Like: #+TBLFM: $6=$5+1 Which

Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]

2023-03-05 Thread Ihor Radchenko
Andrea Lazzarini writes: > If some languages require it and some not, as you correctly say, couldn't the > behaviour be customizable? Maybe. But we are not only talking about footnotes. Consider * Heading [0/1] text Or Text with newline\\ [footnote] more text. or Text (parens[footnote]

Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]

2023-03-05 Thread Andrea Lazzarini
If some languages require it and some not, as you correctly say, couldn't the behaviour be customizable? > Il giorno 5 mar 2023, alle ore 13:42, Ihor Radchenko ha > scritto: > > > Andrea Lazzarini writes: >> Consider the fact that I had to put an extra space before the footnote >> exactly

Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]

2023-03-05 Thread Ihor Radchenko
Andrea Lazzarini writes: > Consider the fact that I had to put an extra space before the footnote > exactly to have a space (not an extra one) in the result. > > As you say, couldn't it be replaced with: > >> maybe with number of spaces equal to :post-blank ? Sure, but footnotes are expected

Re: [FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Ihor Radchenko
Jeremie Juste writes: > * Request > > However If I have a csv file with say semi column delimited values (;) > I don't get the org table as output > > #+begin_src awk :in-file test1.csv :cmd-line -F ";" > {print $0} > #+end_src > > #+RESULTS: > : 123;0;123 > In my opinion, this could be fixed

Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]

2023-03-05 Thread Andrea Lazzarini
Consider the fact that I had to put an extra space before the footnote exactly to have a space (not an extra one) in the result. As you say, couldn't it be replaced with: > maybe with number of spaces equal to :post-blank ? > Il giorno 5 mar 2023, alle ore 13:06, Ihor Radchenko ha >

Re: [PATCH] org-clock: Add a trailing space to the mode line string

2023-03-05 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Please see the attached patch, revised as follows: > > - no leading space in the mode line element to make it completely correct > - a clear explanation (with a citation) to avoid pointless discussions > - two new automated tests to avoid future regressions > - a

Re: [PATCH] Async evaluation in ob-shell

2023-03-05 Thread Ihor Radchenko
Matt writes: > On Fri, 03 Mar 2023 09:52:09 -0500 Ihor Radchenko wrote --- > > I tried the patch, and I am getting failed tests: > > > > 1 unexpected results: > > Sorry for missing that. The issue is that when I replaced > `org-babel-sh-prompt' with `comint-prompt-regexp', the

Re: PATCH] orgcard.tex: Fix `org-force-cycle-archived' binding

2023-03-05 Thread Ihor Radchenko
Max Nikulin writes: > During discussion in the following thread I realized that the refcard > was not updated when `org-force-cycle-archived' binding was changed from > C-TAB to C-c C- to avoid conflict with switching of tabs. Thanks! Applied, onto bugfix.

Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]

2023-03-05 Thread Ihor Radchenko
Max Nikulin writes: > In my opinion, the filter removing footnotes should transfer afterspaces > to preceding objects. I am not sure. Consider text like "Pellentesque dapibus suscipit ligula. [fn:1] Donec posuere augue in quam." with space before the footnote. If we replace the footnote with

Re: [BUG] FAQ asnwer for "How can I use arbitrary colors for words/sentences in HTML export?" is outdated

2023-03-05 Thread Max Nikulin
On 18/02/2023 17:18, Ihor Radchenko wrote: In https://orgmode.org/worg/org-faq.html#org60202b9, the answer uses obsolete function `org-add-link-type'. We should change it to `org-link-set-parameters'. Confirmed. A newer recipe: Juan Manuel Macías to emacs-orgmode… Re: how to export red

[FR] ob-awk.el specifying a delimeter argument in for output

2023-03-05 Thread Jeremie Juste
Hello, ob-awk has proven very valuable to me lately so many thanks for maintaining it. First of all let me specify that I'm a beginner user of awk and I don't know if I'm using ob-awk as it is intended, so I'll be glad for any suggestions. Let me explain further: * Default behavior If I have