Re: HowTo: Upgrade org-mode installation from the command-line

2024-05-02 Thread Samuel Wales
On Sunday, April 28, 2024, Ihor Radchenko wrote: > > Note: For the upgraded version to be loaded by emacs, you mush place > > `package-initialize` early in your init.el. Failure to do so will > > result in the old system version to be loaded, as can be seen: > > This is only true when running

[FR]: thing-at-point 'org-table-cell

2024-05-02 Thread Pedro Andres Aranda Gutierrez
Hi, It would be great to have a thing-at-point handler that returns a cell in and org table. The most simple use case is to have a table in an org-file with data that you need to transfer to an online Web page. Being able to (copy-as-kill ...) a cell's contents could speed up the whole process...

Re: [FR] Support headline as a function for file+headline target for org-capture-templates

2024-05-02 Thread Nafiz Islam
> > Would you be interested to submit a patch? > If I finish writing a patch for it. Sure. I again forgot to CC emacs-orgmode@gnu.org

RE: HowTo: Upgrade org-mode installation from the command-line

2024-05-02 Thread Cook, Malcolm
>"Cook, Malcolm" writes: > >> The section on org-mode >> [[https://orgmode.org/org.html#Installation][Installation]] entitled "Using >> Emacs packaging >> system" might be improved with the following advice: > >Thanks! > >> Note: For the upgraded version to be loaded by

Re: Possible to set block switches "globally"?

2024-05-02 Thread João Pedro
Em segunda, 29/04/2024 às 17:34 (GMT), Ihor Radchenko escreveu: > Yes. This is the plan. > > Citing earlier syntax discussion in > https://list.orgmode.org/orgmode/877d08bkze.fsf@localhost/ > > > Can we drop switch support? This seems like a fairly good idea. The > functionality can simply

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

2024-05-02 Thread Matt
On Wed, 01 May 2024 20:01:03 +0200 Ihor Radchenko wrote --- > Matt m...@excalamus.com> writes: > > > I disagree with one aspect: we shouldn't use Worg as a source of > > truth. The argument holds based on historical behavior of :cmdline. > > AFAIU, Worg is a wiki which is open,

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-05-02 Thread Sławomir Grochowski
Hi Philip, what's your opinion about this change? I understand it's a low-level hack, but maybe you can advise on how to do it better? Sławomir Grochowski writes: > That's great idea. I tried with this code: > > (message "Toggle display of quick-help buffer using %s." > (propertize

Re: Importing "quoted" strings in `org-babel-import-elisp-from-file'

2024-05-02 Thread Max Nikulin
On 01/05/2024 19:19, Ihor Radchenko wrote: And replacing the call to org-babel-string-read with org-babel-read does not break any tests... Since 005e68294 2009-06-11 17:04:42 -0700 Eric Schulte: making progress bringing org-babel-R.el into the new evaluation schema

Re: [BUG] #+CALL - permission error -bash

2024-05-02 Thread Leo Butler
On Thu, May 02 2024, vita...@gmx.com wrote: > in org-babel-sh-evaluate > file:~/.emacs.d/elpa/org-9.6.28/ob-shell.el::300 > > this do apply: (process-file "/tmp/babel-NfRG9P/sh-script-jmKNA4" > "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil nil) > > I don't allow executables in /tmp folder! How

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-05-02 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Max Nikulin writes: > >> On 30/04/2024 03:26, Rudolf Adamkovič wrote: >>> +local value = result[1] >>> +if string.find(value, '[%%(%%[{]') == 1 then >>> + return quotes .. value .. quotes >> >> Am I wrong that quotes in value may cause issues? I expect

Re: [PATCH] Auto-complete PRINT_BIBLIOGRAPHY with a trailing colon

2024-05-02 Thread Ihor Radchenko
Rudolf Adamkovič writes: > * lisp/org.el (org-options-keywords): Add a trailing colon to the > 'PRINT_BIBLIOGRAPHY' keyword to avoid unnecessary user confusion. Thanks! Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?h=bugfix=7cdf835c -- Ihor Radchenko //

Re: [PATCH] Fix regex for determining image width from attribute

2024-05-02 Thread Ihor Radchenko
Matt Huszagh writes: >> Thanks for continuing with this. Moving forward, I think it would be best to: >> ⁃ Make a patch just for prioritising `#+attr_org' >> ⁃ Make a patch just improving the regex (before or after the `#+attr_org' >> patch) > ... >> Lastly, a comment on your documentation

[PATCH] Auto-complete PRINT_BIBLIOGRAPHY with a trailing colon

2024-05-02 Thread Rudolf Adamkovič
* lisp/org.el (org-options-keywords): Add a trailing colon to the 'PRINT_BIBLIOGRAPHY' keyword to avoid unnecessary user confusion. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index a3d0c4547..ccf552aeb 100644 --- a/lisp/org.el +++

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-05-02 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > I am attaching a V2 of the patch that: Oops, I forgot to attach the patch. Here it is. :) Rudy >From b4d61bf511df74094fbcdf13c8c0c2b57b1e4a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Mon, 29 Apr 2024 21:42:04 +0200 Subject: [PATCH]

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-05-02 Thread Rudolf Adamkovič
Max Nikulin writes: > On 30/04/2024 03:26, Rudolf Adamkovič wrote: >> +local value = result[1] >> +if string.find(value, '[%%(%%[{]') == 1 then >> + return quotes .. value .. quotes > > Am I wrong that quotes in value may cause issues? I expect some way of > escaping " characters.

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-05-02 Thread Rudolf Adamkovič
Ihor Radchenko writes: > May you please elaborate why this breaking change is going to lead to > significant improvement? How is using "," worse than using "|"? Either > way, strings containing the separator will become problematic and need > to be escaped. Moreover, using "|" may lead to

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-05-02 Thread Rudolf Adamkovič
Ihor Radchenko writes: > May you please elaborate why this breaking change is going to lead to > significant improvement? How is using "," worse than using "|"? Either > way, strings containing the separator will become problematic and need > to be escaped. Moreover, using "|" may lead to

Re: [BUG] #+CALL - permission error -bash

2024-05-02 Thread Ihor Radchenko
vita...@gmx.com writes: > in org-babel-sh-evaluate > file:~/.emacs.d/elpa/org-9.6.28/ob-shell.el::300 > > this do apply: (process-file "/tmp/babel-NfRG9P/sh-script-jmKNA4" > "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil nil) > > I don't allow executables in /tmp folder! Why do you think that it is

[BUG] #+CALL - permission error -bash

2024-05-02 Thread vitalij
in org-babel-sh-evaluate file:~/.emacs.d/elpa/org-9.6.28/ob-shell.el::300 this do apply: (process-file "/tmp/babel-NfRG9P/sh-script-jmKNA4" "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil nil) I don't allow executables in /tmp folder! How to make it this way: (process-file "/use/bin/bash

Re: [PATCH] Allow external libraries (org-roam) to supply org-id locations

2024-05-02 Thread Ihor Radchenko
"Rick Lupton" writes: > I have been using the simpler version using advice (without my patch). > > On reflection this seems ok to me -- I don't think there's really any need > for my proposed patch, unless it turns out in future that there are multiple > packages like org-roam that need to

Re: [PATCH] Allow external libraries (org-roam) to supply org-id locations

2024-05-02 Thread Rick Lupton
I have been using the simpler version using advice (without my patch). On reflection this seems ok to me -- I don't think there's really any need for my proposed patch, unless it turns out in future that there are multiple packages like org-roam that need to supply org-id-finding abilities in a

Re: [BUG] oddity tangling src_blk with :var [9.7-pre (release_9.6.26-1368-g1ae978 @ /home/minshall/.emacs.d/straight/build/org/)]

2024-05-02 Thread Greg Minshall
Ihor, > Then, if the backend does not define variable expansion method, do > nothing. If the backend is not loaded, throw an error/warning (maybe > depending on a customization). great. thanks. if customizable, i'd vote to default with an error. then, for what it's worth, my experience led

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-05-02 Thread Ihor Radchenko
Alexander Adolf writes: >> Will the failure disappear if you try the attached patch? >> [...] > > Yes, your patch fixes that test failure on macOS. Thanks for checking! Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d8ac95883 -- Ihor Radchenko // yantar92,

Re: [PATCH] test-ob-shell.el: Skip based on feature detection

2024-05-02 Thread Ihor Radchenko
Max Nikulin writes: >> Feel free to submit a patch. > > See the attachment. Applied, onto main. Thanks! https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=ac7c5c5d8 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support

Re: [BUG] ob-calc and decimal number in :var [9.7-pre (release_9.6.17-1446-g252971 @ /home/viz/lib/emacs/straight/build/org/)]

2024-05-02 Thread Visuwesh
[வியாழன் மே 02, 2024] Ihor Radchenko wrote: > Ihor Radchenko writes: > >>> #+BEGIN_SRC calc :var thetarot=1.3 >>> 1/thetarot >>> #+END_SRC >>> >>> and witness the following error: >>> >>> Debugger entered--Lisp error: (wrong-type-argument listp 1.3) >>> nth(2 1.3) >> >> Confirmed. >

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-05-02 Thread Alexander Adolf
Ihor Radchenko writes: > Alexander Adolf writes: > >> 4 unexpected results: >>FAILED ob-calc/matrix-inversion ((should (equal "[[-1, 0.625, -0.125], >> [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" (org-babel-execute-src-block))) >> :form (equal "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25],

Re: [FR] Support headline as a function for file+headline target for org-capture-templates

2024-05-02 Thread Ihor Radchenko
Nafiz Islam writes: >> May you please describe what kind of feature you want to introduce and >> explain why it is useful for other Org mode users? > > The feature I want to introduce is to allow the headline parameter to be a > function for the `file+headline' target for the

Re: [BUG] ob-calc and decimal number in :var [9.7-pre (release_9.6.17-1446-g252971 @ /home/viz/lib/emacs/straight/build/org/)]

2024-05-02 Thread Ihor Radchenko
Ihor Radchenko writes: >> #+BEGIN_SRC calc :var thetarot=1.3 >> 1/thetarot >> #+END_SRC >> >> and witness the following error: >> >> Debugger entered--Lisp error: (wrong-type-argument listp 1.3) >> nth(2 1.3) > > Confirmed. Fixed, on main.

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-05-02 Thread Ihor Radchenko
Alexander Adolf writes: > 4 unexpected results: >FAILED ob-calc/matrix-inversion ((should (equal "[[-1, 0.625, -0.125], > [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" (org-babel-execute-src-block))) > :form (equal "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, > -0.125]]" "[[-1,

Re: [BUG] org, ispell [9.6.6 (release_9.6.6 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2024-05-02 Thread Ihor Radchenko
Ihor Radchenko writes: > Confirmed. > > At this point, I feel that supporting isearch + text properties is an > uphill battle. I was hoping to contribute isearch.el patch upstream, but > apparently numerous other libraries (ispell, regexp-search, evil, > swiper) are relying upon invisibility

Re: link can not be created in a line with another link.

2024-05-02 Thread Ihor Radchenko
Max Nikulin writes: > I have a more weird example. Consider you are going to get > > - [[#foo]] and [[#bar]] > > starting from > > - [[#bar]] > > There is no problem till > > - [[#foo[[#bar]] > > However in response to "]" point is moved after "[" > > - [[#foo][[#bar]] > > that is displayed as >

Re: [PATCH] Add support for shortdoc link type

2024-05-02 Thread Max Nikulin
On 02/05/2024 02:24, Bruno Cardoso wrote: +++ b/lisp/ol.el @@ -1597,6 +1597,37 @@ PATH is a symbol name, as a string." (org-link-set-parameters "help" :follow #'org-link--open-help :store #'org-link--store-help) + "shortdoc" link type

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-05-02 Thread Ihor Radchenko
Emmanuel Charpentier writes: >> (plist-put (alist-get 'dvipng org-preview-latex-process-alist) >>    :image-converter >>    '("dvipng -D %D -T tight -o %O %F")) > > Nope, same problem : the *Org Preview LaTeX Output* buffer says : > > ../../../../../tmp/orgtexSyy18r.dvi: No such

[PATCH] test-ob-shell.el: Skip based on feature detection

2024-05-02 Thread Max Nikulin
On 28/04/2024 20:11, Ihor Radchenko wrote: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e4ab416fc Max Nikulin writes: Feature detection should be more reliable. [...] Feel free to submit a patch. See the attachment. From 46db53cebef5644be4abd8dcb18ca777ec0c3be3 Mon