Re: [SOLVED] Re: [FEATURE request] hope `org-agenda-custom-commands` can support propertiezed-text.

2023-03-07 Thread General discussions about Org-mode.
stardiviner writes: > [...] >> Does `("c" ,(format ...) ...) work? > > This macro-style expanded string works. I'm curious why have to be expanded? The reason is that org does not expect to run arbitrary sexp (in your case, the (format ...) expression); instead with the backtick and unquote,

[SOLVED] Re: [FEATURE request] hope `org-agenda-custom-commands` can support propertiezed-text.

2023-03-07 Thread stardiviner
[stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Mar 7, 2023 at 9:59 PM Ihor Radchenko wrote: > stardiviner

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

2023-03-07 Thread lux
On Tue, 2023-03-07 at 22:31 +0700, Max Nikulin wrote: > There are a couple more mv shell commands in ob-latex.el. It would be > nice to fix them as well. Sorry, I have not checked it earlier. Are > you > still interested in this topic? I hope, you already have examples > that > can be used to

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
On 3/7/23 20:52, Bruno Barbier wrote: Zelphir Kaltstahl writes: If org merely wraps in a `let`, it should not notice any of the multiple values business, because that is something done internally in `let-values`. The "let", to define the org variables, ends up putting the "import" inside

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
On 3/7/23 20:52, Bruno Barbier wrote: Zelphir Kaltstahl writes: If org merely wraps in a `let`, it should not notice any of the multiple values business, because that is something done internally in `let-values`. The "let", to define the org variables, ends up putting the "import" inside

Re: how to add special glyphs

2023-03-07 Thread Rob Sargent
On 3/7/23 08:54, Max Nikulin wrote: On 06/03/2023 22:42, Rob Sargent wrote: I have added a "boxed x" and "CHECK MARK" to my document, but they do not get exported to pdf output. LuaLaTeX may be instructed to use fallback fonts, see e.g.

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Rudolf Adamkovič
Zelphir Kaltstahl writes: > There seems to be an issue with returning multiple values, By the way, (Common) Lisp also has problems with multiple values in Org, as I have recently learned in a discussion with the author of SLY (the modern alternative to SLIME), João Távora. He says: > But this

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

2023-03-07 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Because I missed it. Gotcha! (Just wanted to make sure I understand.) > Now, added the info link. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c0a9c9ede Thank you! Rudy -- "Genius is 1% inspiration and 99% perspiration." -- Thomas Alva Edison,

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

2023-03-07 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Could you elaborate about "more standard"? Sure. For example, when I look at my Mode Line now, I see that the major more is "Message[Notmuch]". When I look at the names of the currently open buffers, I see "FOO" and "{FOO}" and "[FOO] BAR" and "FOO(BAR)". All this is

Re: [PATCH] Fix LaTeX misspelled as Latex

2023-03-07 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Applied, onto bugfix. I amended the commit message removing the > duplicate comments. Thank you! Rudy -- "The introduction of suitable abstractions is our only mental aid to organize and master complexity." -- Edsger Wybe Dijkstra, 1930-2002 Rudolf Adamkovič

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Bruno Barbier
Zelphir Kaltstahl writes: > If org merely wraps in a `let`, it should not notice any of the multiple > values > business, because that is something done internally in `let-values`. > The "let", to define the org variables, ends up putting the "import" inside the scheme expression, like this:

Re: how to add special glyphs

2023-03-07 Thread Max Nikulin
On 06/03/2023 22:42, Rob Sargent wrote: I have added a "boxed x" and "CHECK MARK" to my document, but they do not get exported to pdf output. LuaLaTeX may be instructed to use fallback fonts, see e.g. https://list.orgmode.org/87bktus666.fsf...@posteo.net/ Juan Manuel Macías. Fallback fonts in

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Max Nikulin
On 07/03/2023 18:27, Zelphir Kaltstahl wrote: because somehow there is no ob-racket and I think I would need that. See the following thread for a couple of links. Disclaimer: I have never used racket, so I do not know real state of affairs.

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

2023-03-07 Thread Max Nikulin
On 06/03/2023 10:17, lux wrote: On Sat, 2023-02-18 at 11:43 +, Ihor Radchenko wrote: I think should be (rename-file img-out out-file t) Fixed, thank you. There are a couple more mv shell commands in ob-latex.el. It would be nice to fix them as well. Sorry, I have not checked it

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
On 3/7/23 15:36, Ihor Radchenko wrote: Zelphir Kaltstahl writes: * Multiple values involving =:var= variables #+begin_src scheme :eval query-export :results output replace drawer :var x=1 :var y=2 (import (except (rnrs base) error vector-map) (only (guile) lambda*

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

2023-03-07 Thread Ihor Radchenko
Bastien Guerry writes: > Hi, > > Ihor Radchenko writes: > >> Bastien, may you check the FSF records for Xi Lu? > > I confirm Xi Lu FSF assignment is in order. Updated on Worg. https://git.sr.ht/~bzg/worg/commit/e94905a7 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about

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

2023-03-07 Thread Bastien Guerry
Hi, Ihor Radchenko writes: > Bastien, may you check the FSF records for Xi Lu? I confirm Xi Lu FSF assignment is in order. Thanks for contributing! -- Bastien Guerry

Re: org-babel guile source block bug in handling multiple values

2023-03-07 Thread Ihor Radchenko
Zelphir Kaltstahl writes: > * Multiple values involving =:var= variables > > #+begin_src scheme :eval query-export :results output replace drawer :var x=1 > :var y=2 > (import (except (rnrs base) error vector-map) > (only (guile) >lambda* >λ) >

Re: [BUG] `org-entry-put' creates a new property drawer if case folding is turned off [9.5.2 (9.5.2 @ /usr/share/emacs/site-lisp/elpa/org-9.5.2/)]

2023-03-07 Thread Ihor Radchenko
"Farblos" writes: > To reproduce, start on a Bourne shell command line with > ... I am unable to reproduce using the latest Org release. Please, update Org. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org

Re: how to add special glyphs

2023-03-07 Thread Ihor Radchenko
Rob Sargent writes: >>> You need a package like wasysym that defines these symbols. Check the >>> web for David Carlisle, Scott Pakin, and Alexander Holt's "The Great, >>> Big List of LaTeX Symbols" for more information. >>> ... > I settled for \ding{54}, but of course that doesn't work in the

Re: [FEATURE request] hope `org-agenda-custom-commands` can support propertiezed-text.

2023-03-07 Thread Ihor Radchenko
stardiviner writes: > But I can't do similar in `org-agenda-custom-commands` description part > like this: > ```elisp > (add-to-list >'org-agenda-custom-commands >'("c" (format "%s Today [c]locked tasks." (all-the-icons-faicon > "hourglass-start")) > ((agenda "" >

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-07 Thread Ihor Radchenko
Max Nikulin writes: > On 05/03/2023 20:01, Ihor Radchenko wrote: >> Consider >> >> * Heading [0/1] text > ... >> Text with newline\\ >> [footnote] more text. > ... >> Text (parens[footnote] ). > > I am not convinced that space should be dropped here. I agree about the last example, but what

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

2023-03-07 Thread Ihor Radchenko
lux writes: >> (you don't seem to have FSF copyright >> assignment). >> > > Thank you :-) > > I have already signed a copyright assignment with Emacs, do I need to > sign again with Org Mode? No, you don't. Emacs assignment is sufficient. Bastien, may you check the FSF records for Xi Lu? --

Re: how can I fill a column (of any size) with zeros?

2023-03-07 Thread Uwe Brauer
>>> "FE" == Fraga, Eric writes: > Maybe just column formula $2=0.0? Yep sometimes the easiest solution is the correct one > -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to Ukraine's

Re: how can I fill a column (of any size) with zeros?

2023-03-07 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> #+TBLFM: $1=@#-1 >> >> How could I generate just a column of zeros but not consecutive numbers? > #+TBLFM: $1=0 Ah, thanks -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression

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

2023-03-07 Thread lux
On Tue, 2023-03-07 at 12:35 +, Ihor Radchenko wrote: > lux writes: > > (you don't seem to have FSF copyright > assignment). > Thank you :-) I have already signed a copyright assignment with Emacs, do I need to sign again with Org Mode?

[BUG] `org-entry-put' creates a new property drawer if case folding is turned off [9.5.2 (9.5.2 @ /usr/share/emacs/site-lisp/elpa/org-9.5.2/)]

2023-03-07 Thread Farblos
To reproduce, start on a Bourne shell command line with cat << EOF > foo.org * heading heading heading :properties: :foo: bar :end: EOF Then start emacs -Q foo.org In Emacs continue: M-x set-variable RET case-fold-search RET nil RET C-c C-x p foo RET bar RET For me Org then creates a new

Re: how can I fill a column (of any size) with zeros?

2023-03-07 Thread Fraga, Eric
Maybe just column formula $2=0.0? -- : Eric S Fraga, with org release_9.6.1-278-ge52c53 in Emacs 30.0.50

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

2023-03-07 Thread Ihor Radchenko
Rudolf Adamkovič writes: > * lisp/org-src.el (org-src--construct-edit-buffer-name): Fix the name > given to a source editing buffer. The original format was documented > as "ORG-BUFFER-NAME [ LANG ]" but in reality it was "ORG-BUFFER-NAME[ > LANG ]", with different spacing. We make the format

Re: [PATCH] Fix LaTeX misspelled as Latex

2023-03-07 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Please, see the updated patch attached to this message. Thanks! Applied, onto bugfix. I amended the commit message removing the duplicate comments. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=eb6379a41 -- Ihor Radchenko // yantar92, Org mode

Re: [PATCH] Fix BibTeX spelled as Bibtex

2023-03-07 Thread Ihor Radchenko
Rudolf Adamkovič writes: > * lisp/ol-bibtex.el: Spell BibTeX correctly > * etc/ORG-NEWS (Org-BibTeX -- major improvements): Spell BibTeX correctly Thanks! Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?h=bugfix=4f6bf89547f77936abedf5b1a95ae2ce53dcdbbb --

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

2023-03-07 Thread Ihor Radchenko
Rudolf Adamkovič writes: > 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? Because I missed it. Now, added the info link.

[ENHANCEMENT] Make `org-babel-do-in-edit-buffer' environment detectable

2023-03-07 Thread Farblos
Concrete use case: I got fed up by sh-mode notifying me about "Indentation setup for shell type bla" when editing shell source blocks in an Org buffer. (To reproduce, start "emacs -Q", open an empty org file, create a shell source block with contents " echo foo", and press TAB on that line.)

Re: [PATCH] Async evaluation in ob-shell

2023-03-07 Thread Ihor Radchenko
Matt writes: > > The actual prompt is "org_babel_sh_prompt> ". > > Agreed. > > > And we want to skip leading spaces in addition. > > What do you mean by this? I was following the pattern described in the docstring of `comint-prompt-regexp', where it is suggested that prompts should follow

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

2023-03-07 Thread Ihor Radchenko
lux writes: >> I think should be (rename-file img-out out-file t) >> > > Fixed, thank you. Applied, onto bugfix. I amended the commit message adding a link to this thread and a TINYCHANGE cookie (you don't seem to have FSF copyright assignment).

Re: how can I fill a column (of any size) with zeros?

2023-03-07 Thread Ihor Radchenko
Uwe Brauer writes: > #+TBLFM: $1=@#-1 > > How could I generate just a column of zeros but not consecutive numbers? #+TBLFM: $1=0 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: [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-07 Thread Ihor Radchenko
Deric Bytes writes: > 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) You are trying to run an Org AST query command in a non-Org buffer. Org commands are not

org-babel guile source block bug in handling multiple values

2023-03-07 Thread Zelphir Kaltstahl
Hello Org users! I think I found a bug in how org-babel works with at least GNU Guile source blocks. I could not reproduce this for example with a racket source block, because somehow there is no ob-racket and I think I would need that. I could try other Schemes like maybe Chicken, if there

how can I fill a column (of any size) with zeros?

2023-03-07 Thread Uwe Brauer
Hi If I have | this | that | |--+--| | | | | | | | | | | | | #+TBLFM: $1=@#-1 Then C-c C-c will fill the first colum with consecutive numbers. | this | that | |--+--| |1 | | |2 | | |3 | | |4 | |

Re: how to add special glyphs

2023-03-07 Thread Fraga, Eric
Hi Rob, On Monday, 6 Mar 2023 at 16:24, Rob Sargent wrote: > I think I have to decide on one format and stick with it. I get bitten > by ODT/DOC transformations, not sure I like the default look of > LaTeX/pdf, HTML is pretty reliable but not best for handing out. Maybe > I'll go back to "text"