Re: Bug: Priority Of A Task In Emacs 27.2 Cannot Be Removed With Space Key ("SPC to remove")

2021-05-26 Thread Tim Cross
Not sure how easy it would be to restore the previous behaviour. I guess if you restricted numerical priorities to 0 .. 9 it would be reasonably easy as you only need to check for a single key press. However, once you go above 9 and have the situation where the value could be more than a single

Re: Bug: Priority Of A Task In Emacs 27.2 Cannot Be Removed With Space Key ("SPC to remove")

2021-05-26 Thread Samuel Banya
Thanks for confirming this as I didn't know if it was my config or something. I'd like to add if possible, if there would the ability to restore the previously functionality of being able to just hit a number from 1 to 9 to set the priority of a task as well. Didn't want to conflate things too

Re: Bug: Priority Of A Task In Emacs 27.2 Cannot Be Removed With Space Key ("SPC to remove")

2021-05-26 Thread Tim Cross
Confirmed I can reproduce this in org 9.4.6, Emacs 27.2. Bug confirmed. "Samuel Banya" writes: > Hello there, > > I noticed a weird bug within Emacs Org Mode as I use it often for my TODO > lists for both personal use and for work. > > I noticed that if you hit "C-c ," you are prompted

Re: Empty headline titles unsupported: Bug?

2021-05-26 Thread Ihor Radchenko
David Masterson writes: > Could an extensible pre-hook that runs a list of functions take care of > the inconsistencies where each function recognizes one change to the > standard grammar and adjusts the input accordingly? Could you elaborate? For now, this sounds like unnecessary

Re: [BUG] org-compile-prefix-format regexp change breaks eval forms [9.4.6 (9.4.6-gf72a65)]

2021-05-26 Thread Ihor Radchenko
Radon Rosborough writes: > Hello, > > In commit 0260d2fcf603f30210e2b95d37727edd832c12e9 of 2021-04-26, the > regexp used in `org-agenda-prefix-format' was updated to use a > non-greedy regexp, in order to allow multiple %(expression) instances > in `org-agenda-prefix-format'. Unfortunately,

bug#48676: Arbitrary code execution in Org export macros

2021-05-26 Thread Greg Minshall
Glenn, thanks for the report. i guess my take is that macro-evaluation, and that of other forms, should be subject to the same restrictions as that of source block evaluation. i.e., prompting for permission to execute, subject to =org-confirm-babel-evaluate= (or, more specific variables).

Bug: Priority Of A Task In Emacs 27.2 Cannot Be Removed With Space Key ("SPC to remove")

2021-05-26 Thread Samuel Banya
Hello there, I noticed a weird bug within Emacs Org Mode as I use it often for my TODO lists for both personal use and for work. I noticed that if you hit "C-c ," you are prompted nowadays to enter a number from like 1 to whatever your highest priority was set to, and that you have to enter

Re: [wip-cite-new] Initial implementation of `csl' citation processor

2021-05-26 Thread Bruce D'Arcus
On Wed, May 26, 2021 at 8:47 PM Bruce D'Arcus wrote: > BTW, I did get it all setup, and do seem to have run into a bug. > > Input: > > [cite/noauthor:@latexcompanion p23] > > Output (not position of the locator label): > > (p 1993, 23) Hmm ... experimenting some more, these work correctly.

[PATCH] ox-latex.el/org-latex--make-option-string: Surround option string with braces if it includes brackets

2021-05-26 Thread Markus Huber
lisp/ox-latex.el (`org-latex--make-option-string'): If `value' of a `pair' from `options' contains a bracket the whole `value' is surrounded by braces. In case of LaTeX export using listings the dialect of a language (e.g. [LaTeX]TeX) is surrounded by brackets. For inline source blocks all

Re: [wip-cite-new] Initial implementation of `csl' citation processor

2021-05-26 Thread Bruce D'Arcus
On Wed, May 26, 2021 at 6:07 PM Nicolas Goaziou wrote: > > Hello, > > "Bruce D'Arcus" writes: > > > What if a developer has the idea to hook up one of the new, very fast, > > csl libraries: either the haskell version associated with pandoc, or > > the rust-based version associated with Zotero? >

Re: Empty headline titles unsupported: Bug?

2021-05-26 Thread David Masterson
Tim Cross writes: > David Masterson writes: >> But having undefined behaviors is limiting on the portability of Org >> because people are unwilling to pick it up and attempt to (say) create a >> (partial) Org for other platforms (iPhone, Android, etc.). > This is very much a secondary

[BUG] org-compile-prefix-format regexp change breaks eval forms [9.4.6 (9.4.6-gf72a65)]

2021-05-26 Thread Radon Rosborough
Hello, In commit 0260d2fcf603f30210e2b95d37727edd832c12e9 of 2021-04-26, the regexp used in `org-agenda-prefix-format' was updated to use a non-greedy regexp, in order to allow multiple %(expression) instances in `org-agenda-prefix-format'. Unfortunately, this change breaks the ability to use

Re: Empty headline titles unsupported: Bug?

2021-05-26 Thread David Masterson
Ihor Radchenko writes: > Nicolas Goaziou writes: > >> Currently, what Org does in this situation is unimportant, because the >> behaviour is simply undefined, which is, IMO, tolerable. If we decide to >> define it, it needs to be documented. > > I agree that currently there is no urgent need to

Re: bug#48676: Arbitrary code execution in Org export macros

2021-05-26 Thread Tim Cross
Glenn Morris writes: > Package: emacs,org-mode > Version: 28.0.50 > Severity: important > Tags: security > > emacs -Q hello.org, where hello.org contains: > > #+macro: hello (eval (shell-command-to-string "touch /tmp/HELLO")) > Hello. {{{hello}}} > > Then: > M-x org-export-dispatch > t A > >

Re: [PATCH] ox-latex.el: add LaTeX attributes to quote block

2021-05-26 Thread Juan Manuel Macías
Nicolas Goaziou writes: > I cannot apply it on top of master however. On what commit did you base > it? I'm sorry, it's my fault. It's already fixed. I think the patch attached here should apply well... > [...] > I don't know if this example is a good illustration because you can > currently

[BUG] New error: (void-function org-url-p) when exporting to LaTeX [9.4.6 (9.4.6-gc5573b @ /Users/stanton/.emacs.d/straight/build/org/)]

2021-05-26 Thread Richard Stanton
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [wip-cite-new] Initial implementation of `csl' citation processor

2021-05-26 Thread Nicolas Goaziou
Hello, "Bruce D'Arcus" writes: > What if a developer has the idea to hook up one of the new, very fast, > csl libraries: either the haskell version associated with pandoc, or > the rust-based version associated with Zotero? > > Possible reasons they might want to do that: performance and/or >

Re: [wip-cite-new] Initial implementation of `csl' citation processor

2021-05-26 Thread Bruce D'Arcus
Hi Nicolas, I'll take a close look at this and test it over the coming days, but in the meantime, on two more general points: On Wed, May 26, 2021 at 4:39 PM Nicolas Goaziou wrote: First, names: > I called it `csl' instead of `citeproc'. It is a bit ambiguous, but it > is shorter, and

Re: [PATCH] ox-latex.el: add LaTeX attributes to quote block

2021-05-26 Thread Nicolas Goaziou
Hello, Juan Manuel Macías writes: > Here is the updated patch, with the corresponding additions in the > manual and ORG-NEWS. Thanks. I cannot apply it on top of master however. On what commit did you base it? There are also some nits, but I can fix them when applying your patch. >

[wip-cite-new] Initial implementation of `csl' citation processor

2021-05-26 Thread Nicolas Goaziou
Hello, I just pushed a Citeproc-based citation processor. As such, Citeproc library must be available in the load path. For a better experience, your also need to download styles, and possibly locales definitions, as pointed in the commentary section pasted below. I called it `csl' instead of

Re: [wip-cite-new] Initial implementation of `biblatex' citation processor

2021-05-26 Thread Nicolas Goaziou
Hello, "Bruce D'Arcus" writes: > Denis Maier and I worked on this off-list. Thank you for this work! > Below is our suggested revised biblatex and natbib mapping table, with > the (long) explanation below it, the "extended" table for illustration > below that, and the org file with the tables

Re: BUG: eval macros not working anymore

2021-05-26 Thread Michael Dauer
Hi, I can confirm that macros work a little bit differently (incompatible with some custom code) in 9.4.6 than 9.4.5, but still fine and better. The #+marco keyword behaviour seems unchanged. For programmatically added macros the proposed lambda form works fine. Please excuse my false report.

bug#48676: Arbitrary code execution in Org export macros

2021-05-26 Thread Tom Gillespie
Hi Glenn, The definition for local variables doesn't cover things like org macros, though the spirit of the policy is something worth keeping in mind. Running M-x org-export-dispatch and hitting two keys means that the user has to do something to trigger code execution, much like they would

Re: bug#48676: Arbitrary code execution in Org export macros

2021-05-26 Thread Timothy
Thanks for reporting this. Glenn Morris writes: > This seems contrary to normal Emacs practice for risky local variables, Hmm, correct me if I'm wrong but the issue with risky local variables is that they affect Emacs before the user sees them in the file? If this is an important

bug#48676: Arbitrary code execution in Org export macros

2021-05-26 Thread Glenn Morris
Package: emacs,org-mode Version: 28.0.50 Severity: important Tags: security emacs -Q hello.org, where hello.org contains: #+macro: hello (eval (shell-command-to-string "touch /tmp/HELLO")) Hello. {{{hello}}} Then: M-x org-export-dispatch t A -> now /tmp/HELLO exist, with no prompting. This

Re: there are always ways to go - Re: Sad tweet

2021-05-26 Thread Matt Price
I am not an emacs contributor, but I think Jonas is saying, "I love emacs and I am the primary author of one of the two most important emacs packages. If contributing to emacs is frustrating even for me, think how many people will give up. We need to change our culture." I would be very careful

Re: Empty headline titles unsupported: Bug?

2021-05-26 Thread Ihor Radchenko
Nicolas Goaziou writes: > Currently, what Org does in this situation is unimportant, because the > behaviour is simply undefined, which is, IMO, tolerable. If we decide to > define it, it needs to be documented. I agree that currently there is no urgent need to decide on this, but there

Re: reevaluating org-x11idle-exists-p with new org-clock-x11idle-program-name

2021-05-26 Thread Julien Cubizolles
Julien Cubizolles writes: > Tim Cross writes: > >> Julien Cubizolles writes: >> >>> I'm using a custom python program to display x11 idle time. I've set >>> org-clock-x11idle-program-name accordingly but org-x11idle-exists-p is >>> still nil. I'm guessing it's defvar'ed in org-clock.el before

Re: What's up with ob-template.el? It seems heavily outdated

2021-05-26 Thread dalanicolai
Because of the image in that repo the link does not jump exactly to the right location... anyway the tips are just below that image/animation. Also, for some reason the link to my repo failed... so here it is again (well it just links to the same

Re: What's up with ob-template.el? It seems heavily outdated

2021-05-26 Thread dalanicolai
Ha! Well not too much response here... Anyway @Pedro: So I do not have too much time to work on an updated template. But I have added a somewhat updated template file to my emacs-lisp repo here along with some handy tips . Then of