Re: Generating the filename from name and file-ext for blocks with side-effects

2025-03-25 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> May I know if you are still interested to work on the patch? > > I was hoping someone else (TM) would implement it once we figure out > what we want. :) That said, I can put it on my to-do list, but it will > be a while, as I am currently *s

[BUG?] `org-babel-tangle-comment-links' doesn't respect `org-babel-tangle-use-relative-file-links' [9.7.16 (9.7.16-ba9734 @ ~/.config/emacs/elpa/org-9.7.26/)]

2025-03-25 Thread João Pedro de Amorim Paula
Hi Org, I realized the function `org-babel-tangle-comment-links' won't return the relative file path regardless of the value of `org-babel-tangle-use-relative-file-links', is this the intended behaviour or a bug? Here's the source code for `org-babel-tangle-comment-links' for reference: (defun or

Re: [PATCH] Capitalize JavaScript correctly

2025-03-25 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Thanks, but I have some concerns. Of course you do. :) > This won't work. js-comint.el hard-coded buffer name to be > "*Javascript REPL*". We cannot change that. Fixed. I replaced the change with a comment to inform the reader that JS is miscapitalized on purpose, so

[BUG] C-c C-c doesn't update checkbox after making ready-only file read-write [9.7.11 (release_9.7.11 @ /usr/new/share/emacs/31.0.50/lisp/org/)]

2025-03-25 Thread Mike Kupfer
>From "emacs -Q": Save the attached file, make it ready-only, visit the file, move point to the start of the line with the first checkbox, type C-C C-c. I get a message "Cannot update this checkbox". That's fine, the file and buffer are read-only. -*-org-*- - [ ] box1 - [ ] box2 - [ ] box3 -

print bibliography without a title

2025-03-25 Thread Sébastien Gendre
Hello, I want to print a bibliography in my Org document and I use `#+print_bibliography:`. But when I do, it automatically create a section with a title. And I want it to not create a section. Only insert in the section where I call the print. How can I do ? signature.asc Description: PGP si

Re: [BUG] Org babel overwriting source block outputs when using async + session

2025-03-25 Thread Ihor Radchenko
Elle Najt writes: > Hi -- I've been running into a bug when running async + session bash > org babel cells. > > * Summary > In short, the issue is that when running two async session bash > blocks, the code for the second block ends up captured in the output > of the first one, and then finally

Re: [PATCH] ox-texinfo: Preserve source block language fields during export

2025-03-25 Thread Ihor Radchenko
Richard Sent writes: > * lisp/ox-texinfo.el (org-texinfo-src-block): Preserve the language > field during export. > * etc/ORG-NEWS (Version 9.8): Add news entry. > --- > Hello all, > > When exporting source blocks to Texinfo, the language is removed > (unless it is lisp). This hurts the ability t

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-25 Thread Ihor Radchenko
Daan Ro writes: >> `string-match-p' matching the strings directly. > A candidate may have multiple appearances, like > "Author A ;; Author B ;;; ..." > `string-match-p' would only find the first ";;" and miss > ";;;". I thought s.el's `s-match-strings-all' should be more robust but > we can't use

Re: [BUG] Unintuitive indentation behavior when editing org-src blocks

2025-03-25 Thread Ihor Radchenko
l...@phdk.org writes: > When adding a newline to an org-src block with > `org-src-tab-acts-natively' set to t, if there's a non-whitespace > character following the pointer at insertion, all other lines are > indented by an additional `org-edit-src-content-indentation' > regardless of their origin

Re: [PATCH] Add xdv support for latex preview

2025-03-25 Thread Ihor Radchenko
Billy Lei writes: > Subject: [PATCH] org-preview-latex-process-alist: Add xdv support for latex > preview > > * lisp/org.el (org-preview-latex-process-alist): Add new process "xelatex" to > allow using xelatex to generate latex preview. Thanks for the patch! > :image-size-adjust (1.7 .

Re: [BUG] "Added org-data parent to non-headline element" and other parsing errors [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-25 Thread Ihor Radchenko
Rob Ward writes: > I am getting this and other errors, including but not limited to > "org-back-to-heading: Before first headline at position 7503 in buffer > 01032025 [3 times]", "Added org-data parent to non-headline element" and > others which appear to relate to parsing failures, when I edit

Re: One big file or multiple small ones

2025-03-25 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Okay, it was not me, and I have reproduction steps to prove it: > > 1. Create ~/test.org with the following content: > ... > 2. Execute emacs -Q > 3. Type C-x C-f ~/test.org RET > 4. Type M-x flyspell-mode RET > 5. Place the cursor on the first heading star > 6. Record

Re: C-c C-x M-y for (funcall 'org-paste-subtree '(16))

2025-03-25 Thread Ihor Radchenko
Rudolf Adamkovič writes: > There is a typo in the docstring, BTW. > > See the attached patch. Applied, onto bugfix, after amending the commit message. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?h=bugfix&id=5df37854739baa67006dc1cda70fab6a42977880 -- Ihor Radchenko // yantar92

Re: C-c C-x M-y for (funcall 'org-paste-subtree '(16))

2025-03-25 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Also M-y would be counter-intuitive because it usually means very > different thing (M-y is `yank-pop' by default). Agreed. There is a typo in the docstring, BTW. See the attached patch. >From c4451d2f946d8699a131b0c8473eac51b636d0c3 Mon Sep 17 00:00:00 2001 From: =?U

Re: Generating the filename from name and file-ext for blocks with side-effects

2025-03-25 Thread Rudolf Adamkovič
Ihor Radchenko writes: > May I know if you are still interested to work on the patch? I was hoping someone else (TM) would implement it once we figure out what we want. :) That said, I can put it on my to-do list, but it will be a while, as I am currently *swamped* with "life". If all goes well

Re: [PATCH] Preview LaTeX recursively

2025-03-25 Thread Rudolf Adamkovič
Ihor Radchenko writes: > This will be a breaking change that will surprise users familiar with > current behavior of image previews and latex previews. But will it be a pleasant surprise? :) Is there any other part of Org where action like this is not recursive? For example, when running source

Re: [PATCH] Capitalize JavaScript correctly

2025-03-25 Thread Ihor Radchenko
Rudolf Adamkovič writes: >> This won't work. js-comint.el hard-coded buffer name to be >> "*Javascript REPL*". We cannot change that. > > Fixed. I replaced the change with a comment to inform the reader that > JS is miscapitalized on purpose, so that this will not happen again. Almost :) > ---

Re: [BUG] backtrace in capture buffer [9.8-pre (release_9.7.24-267-g5cfc85 @ /home/msoulier/.emacs.d/straight/build/org/)]

2025-03-25 Thread Ihor Radchenko
"Michael P. Soulier" writes: > Got this while entering a journal note. It happened when I hit C-c C-c > to save it. > > ⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org > buffer # (org-agenda-mode) > ⛔ Warning (org-element): org-element--cache: Org parser error in > jo

Re: One big file or multiple small ones

2025-03-25 Thread Ihor Radchenko
Rudolf Adamkovič writes: > BTW, Flyspell also makes Org with large files *terribly* slow. > > To reproduce: > > (add-hook 'text-mode-hook #'flyspell-mode) > (add-hook 'prog-mode-hook #'flyspell-prog-mode) > > [This is the recommended way of enabling Flyspell.] > > Then open a very large and compl

Re: [PATCH] ox-texinfo: Preserve source block language fields during export

2025-03-25 Thread Rudolf Adamkovič
Richard Sent writes: > * lisp/ox-texinfo.el (org-texinfo-src-block): Preserve the language > field during export. Ha! I have the exact same patch in works. I also asked on the Texinfo Help mailing list [1] whether this will break compatibility with older Texinfo versions (like @math did, where

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-25 Thread Daan Ro
> >> > + ;; Handle regexp separator? > >> > >> Is it a TODO? > > You missed this question. Previously I didn't think of handling regexp-based separator argument, but then since you said > regexp-opt will be safer if separator happens to be something like > ".". so I opted to always assume litera

Re: [BUG] Unintuitive indentation behavior when editing org-src blocks

2025-03-25 Thread Henrik Ahlgren
l...@phdk.org writes: > [1] I think this is what this thread was about: > https://list.orgmode.org/CALp=Ckko1Ck7-3K+bfKXLVSqDJvmHWYEZutkj5J2v3t=quv...@mail.gmail.com/T/#tO >   > Which was closed as not a bug, but since I feel I'm misunderstanding > either the original report or Ihor's answer I tho

[BUG] Unintuitive indentation behavior when editing org-src blocks

2025-03-25 Thread lra
When adding a newline to an org-src block with `org-src-tab-acts-natively' set to t, if there's a non-whitespace character following the pointer at insertion, all other lines are indented by an additional `org-edit-src-content-indentation' regardless of their original indentation. MRE with -Q on t

[PATCH] ox-texinfo: Preserve source block language fields during export

2025-03-25 Thread Richard Sent
* lisp/ox-texinfo.el (org-texinfo-src-block): Preserve the language field during export. * etc/ORG-NEWS (Version 9.8): Add news entry. --- Hello all, When exporting source blocks to Texinfo, the language is removed (unless it is lisp). This hurts the ability to use the Texinfo files to generate ad

Re: [PATCH] Capitalize JavaScript correctly

2025-03-25 Thread Max Nikulin
On 21/03/2025 20:54, Rudolf Adamkovič wrote: Re-capitalize "Javascript" to JavaScript. Are there potential legal issues with the registered trademark owned by Oracle? E.g. organizers of JSConf avoid "JavaScript" in the conference title https://www.trevorlasn.com/blog/oracle-javascript-tradema