Re: [BUG] cache file conflict? [9.7-pre (release_9.6.29-1441-gaa71fa @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-21 Thread Greg Minshall
hi, Ihor, > Then, I need a backtrace. May you please enable debug-on-error and share it? here is a backtrace. is this enough, or should i do something extra to give you more information from it? the situation was: "it" put up the message ...rg-persist/gc-lock.eld locked by

Re: [PATCH] function and symbol for headline and olp for org-capture-templates

2024-05-21 Thread Nafiz Islam
> the idea was to pass the FILE and extra OLP arguments to the custom function provided by the user I have misunderstood what you suggested. But, I wanted to maintain consistency with how the `file+headline' handles function as a target where the lambda takes no parameter and is expected to

Re: Archive done tasks and preserve tree structure

2024-05-21 Thread General discussions about Org-mode.
Naresh Gurbuxani writes: > How can I get the archiving done to preserve tree structure of tasks? I've been using the solution in this gist comment for a while without issue: https://gist.github.com/Fuco1/e86fb5e0a5bb71ceafccedb5ca22fcfb?permalink_comment_id=3006243#gistcomment-3006243

Re: Adding custom providers for thingatpt.el

2024-05-21 Thread Jim Porter
On 5/21/2024 3:32 AM, Max Nikulin wrote: On 20/05/2024 09:33, Jim Porter wrote: +++ b/lisp/org.el @@ -81,6 +81,7 @@  (require 'calendar)  (require 'find-func)  (require 'format-spec) +(require 'thingatpt) So it becomes hard dependency. However it seems thingatpt is anyway loaded through some

Re: Table formula format string doesn't recognize %

2024-05-21 Thread Daniel Clemente
Thanks. On Tue, 21 May 2024 at 09:10, Ihor Radchenko wrote: > Daniel Clemente writes: > > > Hi, this stopped working, possibly after a related change > > to org-table-eval-formula 2 days ago. > > > > | a | b | percent of a in b | > > |++---| > > | 10 | 20 | #ERROR

Re: [BUG] Reference chains (C refers to B refers to A) in tangle do not behave as expected [9.5.5 (release_9.5.5 @ /usr/local/share/emacs/28.2/lisp/org/)]

2024-05-21 Thread Ihor Radchenko
"C. M. Sperberg-McQueen" writes: >> ... When retrieving the code for Baker block, Org mode goes to that >> block and cleans up its text according to that block's >> expansion. However, for Baker block, when it does not have :noweb >> tangle, the <<...>> in the code are treated literally. > > The

Re: [BUG] Reference chains (C refers to B refers to A) in tangle do not behave as expected [9.5.5 (release_9.5.5 @ /usr/local/share/emacs/28.2/lisp/org/)]

2024-05-21 Thread C. M. Sperberg-McQueen
Thank you for the response. I am sorry to say I do not understand it. You say that non-expansion of references in the code block Baker is expected "when it does not have :noweb tangle". > ... When retrieving the code for Baker block, Org mode goes to that > block and cleans up its text

Re: [BUG] https://orgmode.org/elpa.html is obsolete [9.7-pre (release_9.6.29-1465-ge6c7b0.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-05-21 Thread Ihor Radchenko
Bastien Guerry writes: >> https://orgmode.org/elpa.html page is obsolete - it is describing >> now-discontinued Org ELPA and is not referenced from anywhere apart >> maybe from some links in the wild. > > We can remove this page. Fixed.

Re: [BUG] https://orgmode.org/elpa.html is obsolete [9.7-pre (release_9.6.29-1465-ge6c7b0.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-05-21 Thread Bastien Guerry
Hi Ihor, Ihor Radchenko writes: > https://orgmode.org/elpa.html page is obsolete - it is describing > now-discontinued Org ELPA and is not referenced from anywhere apart > maybe from some links in the wild. We can remove this page. > Should we remove it and redirect

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

2024-05-21 Thread Punit Arya
On 2024-05-17 17:20, Ihor Radchenko wrote: Punit Arya writes: This is an EMACS keyboard macro that I've been using since more than 4-5 years now. (global-set-key [24 11 48] 'my-insert-timestamp)  ;; It translates to the key sequence: C-x C-k 0 Its definition is: (fset 'my-insert-timestamp

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

2024-05-21 Thread Punit Arya
On 2024-05-17 17:20, Ihor Radchenko wrote: Punit Arya writes: This is an EMACS keyboard macro that I've been using since more than 4-5 years now. (global-set-key [24 11 48] 'my-insert-timestamp)  ;; It translates to the key sequence: C-x C-k 0 Its definition is: (fset 'my-insert-timestamp

[BUG] https://orgmode.org/elpa.html is obsolete [9.7-pre (release_9.6.29-1465-ge6c7b0.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-05-21 Thread Ihor Radchenko
Hi, https://orgmode.org/elpa.html page is obsolete - it is describing now-discontinued Org ELPA and is not referenced from anywhere apart maybe from some links in the wild. Should we remove it and redirect https://orgmode.org/elpa.html to https://orgmode.org/org.html#Installation ? -- Ihor

Re: [BUG] Reference chains (C refers to B refers to A) in tangle do not behave as expected [9.5.5 (release_9.5.5 @ /usr/local/share/emacs/28.2/lisp/org/)]

2024-05-21 Thread Ihor Radchenko
"C. M. Sperberg-McQueen" writes: > Consider the following literate program in org mode: > > make-abc.org: > #+title: Minimal example > #+date: 20 May 2024 > > The first letter is A. > #+name: Able > #+begin_src txt > A is for application. > #+end_src > > The second letter is B.

Re: [PATCH] Add org-after-note-stored-hook

2024-05-21 Thread Ihor Radchenko
Joris Caravati writes: > Ihor Radchenko writes: > >> I think I know how to make it possible for the note to be taken at the >> right place after subtree archival. May you try the attached patch? > > Indeed, after testing it quickly it does what I want and notes are not a > special case in

Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends

2024-05-21 Thread Ihor Radchenko
Max Nikulin writes: > Frankly speaking your plan is not clear for me. My special concern is > DWIM behavior > https://list.orgmode.org/874jbkcmyg.fsf@localhost > (Ihor Radchenko Mon, 29 Apr 2024 13:33:59 +) > and > > #+begin_src sh :script-args 1 ; touch /tmp/not-an-arg > > if you are

Re: Saving some kitten, plus some questions along the way

2024-05-21 Thread Max Nikulin
On 20/05/2024 04:24, Stefan Monnier wrote: Subject: [PATCH 3/4] testing/org-test.el (): Remove dead code (featurep 'org) is always non-nil here since we have a (require 'org) further up. I suspect other `require`s nearby could be removed or moved to toplevel. Just a guess. Perhaps earlier

Re: Using a custom environment for a src language

2024-05-21 Thread Max Nikulin
On 20/05/2024 08:57, Rustom Mody wrote: I have my own Python environment called PYT. #+BEGIN_PYT contents #+END_PYT See `org-latex-custom-lang-environments' for #+begin_src python.

Re: org-babel shell in windows not finishing command

2024-05-21 Thread Ihor Radchenko
Max Nikulin writes: > On 21/05/2024 01:37, Ihor Radchenko wrote: >> echo 'echo foo' | cmdproxy.exe yields >> >> : Microsoft Windows [Version 10.0.19045.2251] >> : (c) Microsoft Corporation. All rights reserved. >> : >> : c:\Users\johndoe\Org>echo foo >> : foo > > Out of curiosity, does the /q

Re: Adding custom providers for thingatpt.el

2024-05-21 Thread Max Nikulin
On 20/05/2024 09:33, Jim Porter wrote: +++ b/lisp/org.el @@ -81,6 +81,7 @@ (require 'calendar) (require 'find-func) (require 'format-spec) +(require 'thingatpt) So it becomes hard dependency. However it seems thingatpt is anyway loaded through some indirect dependency.

Re: org-babel shell in windows not finishing command

2024-05-21 Thread Max Nikulin
On 21/05/2024 01:37, Ihor Radchenko wrote: echo 'echo foo' | cmdproxy.exe yields : Microsoft Windows [Version 10.0.19045.2251] : (c) Microsoft Corporation. All rights reserved. : : c:\Users\johndoe\Org>echo foo : foo Out of curiosity, does the /q option help to suppress the banner?

Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends

2024-05-21 Thread Max Nikulin
On 21/05/2024 01:01, Matt wrote: I'm okay with these. I can start on a patch for :script-args and :program-args within ob-shell. Frankly speaking your plan is not clear for me. My special concern is DWIM behavior https://list.orgmode.org/874jbkcmyg.fsf@localhost (Ihor Radchenko Mon, 29 Apr

Re: Possible bug in sparse trees Todo keywords

2024-05-21 Thread Ihor Radchenko
Kepa writes: > Sparse tree doesn't seem to work if the Todo states finishes with a dot. For > example "PROJ." Right. Thanks for pointing it out! Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=102f0a24c -- Ihor Radchenko // yantar92, Org mode contributor,

Re: [BUG] org-table-eval-formula mishandles semicolons in formulas [9.7-pre (release_9.6.14-1019-g5092ec @ /home/nick/src/emacs/org/org-mode/lisp/)]

2024-05-21 Thread Ihor Radchenko
Ihor Radchenko writes: >>> #+TBLFM: $3='(concat "COMMENT ON public.layout_forms." $1 " IS " (rc-sq >>> $2) ";") > ... > Fixed, on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5af062511 Alas. We cannot restrict what to put after ";" in formulas, because it can be

Re: Table formula format string doesn't recognize %

2024-05-21 Thread Ihor Radchenko
Daniel Clemente writes: > Hi, this stopped working, possibly after a related change > to org-table-eval-formula 2 days ago. > > | a | b | percent of a in b | > |++---| > | 10 | 20 | #ERROR| > | 20 | 30 | #ERROR| > #+TBLFM: $3=($1/$2)*100;%.2f%%

Table formula format string doesn't recognize %

2024-05-21 Thread Daniel Clemente
Hi, this stopped working, possibly after a related change to org-table-eval-formula 2 days ago. | a | b | percent of a in b | |++---| | 10 | 20 | #ERROR| | 20 | 30 | #ERROR| #+TBLFM: $3=($1/$2)*100;%.2f%% A simpler format string like ;%.2f also

[BUG] Reference chains (C refers to B refers to A) in tangle do not behave as expected [9.5.5 (release_9.5.5 @ /usr/local/share/emacs/28.2/lisp/org/)]

2024-05-21 Thread C. M. Sperberg-McQueen
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.