Re: Async Python src block behavior with :dir header property

2024-02-05 Thread Jack Kamm
Ihor Radchenko writes: > What we can do is to introduce a new backend template function > org-babel-session-buffer: that will be passed a session name and > src block params and return the session buffer name. > > If such function is not defined, we fall back to assumption that session > buffer i

Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point)

2024-02-05 Thread Ihor Radchenko
Jim Porter writes: > On 2/5/2024 7:07 AM, Ihor Radchenko wrote: >> It would make sense to add a number of alists: >> - bounds-of-thing-at-point-provider-alist >> - same for 'forward-op, 'beginning-op, 'end-op. >> >> After Emacs have those, we can add Org mode support. > > That sounds reasonable

Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point)

2024-02-05 Thread Jim Porter
On 2/5/2024 7:07 AM, Ihor Radchenko wrote: It would make sense to add a number of alists: - bounds-of-thing-at-point-provider-alist - same for 'forward-op, 'beginning-op, 'end-op. After Emacs have those, we can add Org mode support. That sounds reasonable enough to me; does anyone else have op

Re: [DISCUSSION] Add "Recent News" to orgmode.org

2024-02-05 Thread Jean Louis
* Ihor Radchenko [2024-02-04 22:40]: > What do you think about an idea to modify Org mode front page > (https://orgmode.org/), adding the most recent blog posts and > discussions about Org mode? > > We might use Org-related records from Sacha's news and/or > https://planet.emacslife.com/ as a sou

Re: [BUG] Unsolicited download of remote resources

2024-02-05 Thread Ihor Radchenko
Leo Butler writes: > Q: if #+setupfile points to a real file available to download, does Org > evaluate that file? keywords and startup options are taken from there. No Elisp code present in #+SETUPFILE is evaluated. That said, if the file defines babel header arguments with elisp or "eval" mac

Re: [BUG] Unsolicited download of remote resources

2024-02-05 Thread Leo Butler
On Sun, Feb 04 2024, Max Nikulin wrote: > On 03/02/2024 02:04, Leo Butler wrote: >> When I opened your email in Gnus, I was greeted with the same >> (bewildering) message. Given that Org still tried to download the >> setupfile after being told not to, I think this is a majour security >> hole. >

Re: [BUG] URI handling is overly complicated and nonstandard [9.6.7 (N/A @ /gnu/store/mg7223g8mw90lccp6mm5g6f3mpjk70si-emacs-org-9.6.7/share/emacs/site-lisp/org-9.6.7/)]

2024-02-05 Thread Ihor Radchenko
Max Nikulin writes: > On 05/09/2023 16:42, Ihor Radchenko wrote: >> Max Nikulin writes: >>> >>> From my point of view it will be more sane behavior. However it may >>> require update of 3rd party ox backends. >> >> Yes. The main problem is that I fail to understand the motivation behind >> the

Re: Adding custom providers for thingatpt.el (was: [PATCH] Add support for 'thing-at-point' to get URL at point)

2024-02-05 Thread Ihor Radchenko
Jim Porter writes: >> Looking into the source code of `bounds-of-thing-at-point', I see that >> for standard "things" (like url), >> `thing-at-point-bounds-of-url-at-point' is used unconditionally. In the >> case of Org links, we may have something like [[https://orgmode.org]] >> that will not ma

Re: Exporting multiple #+AUTHOR keywords

2024-02-05 Thread Ihor Radchenko
Max Nikulin writes: >> Another option is to have a new set of keywords: >> #+LATEX_AUTHOR: >> #+HTML_AUTHOR: ... > ... > Another idea: > > #+metadata: > - author :: >- John Doe >- Luke Skywalker > - title :: Some text > > With overrides for specific backends This implies that #+AUTHO

Re: Another low-hanging fruit

2024-02-05 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Fixed! > ... > From 0767bccaabde21241576eaac1103e917c7649f40 Mon Feb 05 00:00:00 2024 > From: "Pedro A. Aranda GutiƩrrez" > Date: Sat, 5 Feb 2024 07:30:00 +0100 > Subject: [PATCH] Silent anonymous footnote creation Applied, onto main, with amendments. I c

Re: [BUG] Unexpected result when evaluating python src block asynchronously [9.7-pre (release_9.6.17-1131-gc9ed03.dirty @ /home/yantar92/.emacs.d/straight/build/org/)]

2024-02-05 Thread Ihor Radchenko
Jack Kamm writes: >> So, we have to insert some kind of indicator for async result. > > I meant that we could return something like "async:uuid-abcd-1234" or > "async:/path/to/tmpfile", so that `org-babel-comint-async-filter' could > still find the result. Of course, we could. But that would not

Re: Async Python src block behavior with :dir header property

2024-02-05 Thread Ihor Radchenko
Jack Kamm writes: > It's because ob-python starts the session in buffer "*pysession*" (it > adds earmuffs around the session name when missing). So the following > doesn't find the inferior Python: Good point. Some backends indeed do not have comint buffer named the same as :session name. What

Re: [BUG] Prompt appears in async shell results

2024-02-05 Thread Ihor Radchenko
Matt writes: > #+begin_src emacs-lisp > (org-babel-do-load-languages 'org-babel-load-languages '((shell . t))) > #+end_src > > #+begin_src sh :results output :session *test* :async t > cd /tmp > echo "hello world" > #+end_src > > #+RESULTS: > : org_babel_sh_prompt> hello world Confirmed. > ** T

Re: [BUG]: contradictory requirements between resolving links and noweb result block

2024-02-05 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > * mwe-noweb-ok > > ... > Resolving the last link fails, because it has an org-id > #+begin_src latex > Listing \ref{noop}, \ref{make-noweb}, and \ref{orgd105392}. > #+end_src > while the caption of the linked listing has a user label. Fixed, on main. https://