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

2024-06-27 Thread Ihor Radchenko
Ihor Radchenko writes: >> #+header-arg: :results verbatim >> #+begin_src sh :cmdline 1 ; touch /tmp/not-an-arg >>printf '%s\n' "$@" >> #+end_src >> >> #+RESULTS: >> : 1 >> >> "touch ..." *are not arguments of the script*. So users should be >> careful to get documented behavior. > > I do

Re: [SUMMARY] #8 [[bbb:OrgMeetup]] on Wed, June 12, 19:00 UTC+3

2024-06-27 Thread Ihor Radchenko
Pedro writes: > I am experiencing it since end of July 2023 when I upgraded to the > version 9.6.15, but my situation now is stable with that workaround and > I have no time now for reporting the problem right now. FYI, we did have a couple of fixes related to cache in Org 9.7. -- Ihor

Re: [SUMMARY] #8 [[bbb:OrgMeetup]] on Wed, June 12, 19:00 UTC+3

2024-06-27 Thread Pedro
Thanks Ihor I am experiencing it since end of July 2023 when I upgraded to the version 9.6.15, but my situation now is stable with that workaround and I have no time now for reporting the problem right now. I expect to have some time at the end of July 2024, and I hope to upgrade again

Re: [SUMMARY] #8 [[bbb:OrgMeetup]] on Wed, June 12, 19:00 UTC+3

2024-06-27 Thread Ihor Radchenko
Pedro writes: > On 6/22/24 10:32, Ihor Radchenko wrote: >> - Tim continued his struggle with an elusive bug he experiences when >>setting tags (C-c C-q) in large Org buffers - setting tags takes >>forever for him. (There is infinite loop likely lurking somewhere) > > I have the same bug,

Re: Org Agenda 9.7.5 not recognizing completion of items with a done state configured by SETUPFILE

2024-06-27 Thread Ihor Radchenko
kazark writes: > Good news! This fix > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=14e8a68a6 has > resolved this problem as well. Thanks so much! Thanks for the update! Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: [BUG] ob-shell may use /bin/sh instead of the specified shell when :cmdline is provided (was: [PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline)

2024-06-27 Thread Ihor Radchenko
Ihor Radchenko writes: > Reproducer: > ... Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b64dbd838 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

[BUG] ob-shell may use /bin/sh instead of the specified shell when :cmdline is provided (was: [PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline)

2024-06-27 Thread Ihor Radchenko
Ihor Radchenko writes: > As for the problem with > when does not contain shebang, we can trivially at that > shebang like > > (with-temp-file script-file > (if shebang (insert shebang "\n") > (insert "#!" shell-file-name "\n")) > (when padline

Re: Org 9.7.5: problems with tab-width and certain syntax combinations in SETUPFILE

2024-06-27 Thread kazark
Thank you, thank you! This change makes sense, and it has fixed the issue for me. On Thu, 27 Jun 2024 05:53:28 -0400 Ihor Radchenko wrote --- kazark writes: > I am getting this error after updating to Org-Mode 9.7.5: > ... > The error was: (error

Re: Org Agenda 9.7.5 not recognizing completion of items with a done state configured by SETUPFILE

2024-06-27 Thread kazark
Good news! This fix https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=14e8a68a6 has resolved this problem as well. Thanks so much! On Thu, 27 Jun 2024 05:42:00 -0400 Ihor Radchenko wrote --- kazark writes: > I use the #+SETUPFILE

Re: [PATCH] Re: [BUG] ob-shell: :shebang changes interpretation of :cmdline

2024-06-27 Thread Ihor Radchenko
Ihor Radchenko writes: > I am looking at this again, and notice that the problem with > `shell-command-switch' is tangent to the original bug report we are > discussing. > ... > I conclude that your concern, while being valid, is a _different_ bug. > Thus, I do not see it as a blocker for my

Re: [SUMMARY] #8 [[bbb:OrgMeetup]] on Wed, June 12, 19:00 UTC+3

2024-06-27 Thread Pedro
On 6/22/24 10:32, Ihor Radchenko wrote: - Tim continued his struggle with an elusive bug he experiences when setting tags (C-c C-q) in large Org buffers - setting tags takes forever for him. (There is infinite loop likely lurking somewhere) I have the same bug, but I said nothing because

Re: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)

2024-06-27 Thread Ihor Radchenko
Daniel Clemente writes: >> One simple idea is to disable backups if encryption fails. >> Or use `write-contents-functions' instead of `before-save-hook' - that >> way, Emacs will not ignore errors thrown by org-crypt and will not >> actually save anything if encryption fails. >> > > Disabling

Re: Please document the caching and its user options

2024-06-27 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org > Date: Thu, 27 Jun 2024 10:11:46 + > > Eli Zaretskii writes: > > > . set your locale's codeset to something other than UTF-8 > > . type into *scratch*: > > > > (insert "* heading\n(") > > (org-mode) > > (hs-minor-mode) > >

org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-06-27 Thread Ihor Radchenko
Daniel Clemente writes: > For instance, I don't use it because it adds around 5 seconds to each > saving of a large file. If it were instantaneous I would enable it. > With it disabled, this explains why I often find unencrypted sections > at the end of the day… I have to rely on myself to

Re: Please document the caching and its user options

2024-06-27 Thread Ihor Radchenko
Eli Zaretskii writes: > . set your locale's codeset to something other than UTF-8 > . type into *scratch*: > > (insert "* heading\n(") > (org-mode) > (hs-minor-mode) > (hs-hide-all) > > . mark the region around these 4 sexps and type "M-x eval-region" > . observe the popup *Warning*

Re: Org 9.7.5: problems with tab-width and certain syntax combinations in SETUPFILE

2024-06-27 Thread Ihor Radchenko
kazark writes: > I am getting this error after updating to Org-Mode 9.7.5: > ... > The error was: (error "Tab width in Org files must be 8, not 2.  Please > adjust your ‘tab-width’ settings for Org mode.") > ... > #+SETUPFILE: properties.org > > The contents of properties.org can be as simple

Re: Org Agenda 9.7.5 not recognizing completion of items with a done state configured by SETUPFILE

2024-06-27 Thread Ihor Radchenko
kazark writes: > I use the #+SETUPFILE construct to manage families of Org files together. One > thing I commonly do is to have a #+TODO declaration in the setup file. As of > 9.7.5, the #+TODO declaration works if it is in the file that is in > org-agenda-files but not if it is in that

[POLL] ob-R, ob-julia: Should we force-disable ess-ask-for-ess-directory? (was: [BUG] Relative filenames for graphics output in ob-R.el [9.8-pre (release_9.7.4-80-g7fa169)])

2024-06-27 Thread Ihor Radchenko
[ Adding Org mailing list back to CC to keep the conversation public ] Sam Crawford writes: >> May you please create a reproducer? > > Sure: evaluating the following code cell > > #+begin_src R :session R :async yes :results file graphics :file test.png > plot(iris$Sepal.Length,

Re: Please document the caching and its user options

2024-06-27 Thread Eli Zaretskii
Here's one example where org-persistent (I think) triggers an annoying select-safe-coding-system popup because it is trying to cache something behind user's back: . set your locale's codeset to something other than UTF-8 . type into *scratch*: (insert "* heading\n(") (org-mode)

Re: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)

2024-06-27 Thread Daniel Clemente
> > As for not typing the same password twice and not using > org-crypt-use-before-save-magic, we should somehow fix this. > (I am starting a new thread branch.) > „Not using org-crypt-use-before-save-magic“ is currently a user decision, not a bug. For instance, I don't use it because it adds

Org 9.7.5: problems with tab-width and certain syntax combinations in SETUPFILE

2024-06-27 Thread kazark
Hi, I am getting this error after updating to Org-Mode 9.7.5: The error was: (error "Tab width in Org files must be 8, not 2.  Please adjust your ‘tab-width’ settings for Org mode.") However, it does not happen when I load every Org-Mode file. The MWE I have come up with requires two