org-capture-fill-template %T drops end time

2025-04-11 Thread General discussions about Org-mode.
Hello, new to emacs and elisp. Full context can be seen here: https://www.reddit.com/r/emacs/comments/1ju3pk8/comment/mm0o5la/ I'm trying to use org-capture templates (file+datetree+prompt) to enter the time I spend on things at work. I want to have the date and begin and end times in the not

Re: Q: Export if *not* using a particular backend?

2025-04-11 Thread Ihor Radchenko
David Masterson writes: > Is there a way to export a section of an Org file only if the export > backend is *NOT* a particular backend? For instance, some things don't > work in Texinfo, but are fine in HTML and LATEX. > > Is there a generalized IF for processing an Org file? Nothing out of the

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

2025-04-11 Thread Ihor Radchenko
l...@phdk.org writes: >> Applied, onto main. > Great! > >> May you elaborate on the edge cases you encountered? >> It may be a good idea to add such cases to the tests as well. > > I think they all reduced to the case where adding the spaces increased > the minimum indent of the block, in which ca

Re: `org-indent-line' indents the end tag of some blocks but doesn't do so with src blocks (was: [BUG] Unintuitive indentation behavior when editing org-src blocks)

2025-04-11 Thread Ihor Radchenko
l...@phdk.org writes: >> Not just src-blocks, I think. >> Also other kinds of verbatim blocks: example blocks, latex environments, >> and comment blocks. > > All block elements which are not greater elements, so verse and export as > well. > Here's a cleaned up version of the patch. Thanks! Appl

Re: [BUG] Org-babel inline overwriting src block outputs when using async + session

2025-04-11 Thread Ihor Radchenko
Jack Kamm writes: > I'm attaching an updated patch to fix the inline async session issue > that incorporates this feedback along with some other changes. > > Rather than creating a general function in ob-core to find the previous > src or inline src block, I decided to create a private function i

Re: Problem with finding css file with orgmode blogging setup

2025-04-11 Thread Ashish Panigrahi
Hi, Sorry about the late response. Life got in the way. > Org-publish, by default, only processes org files. If you want to include CSS > > files, images, and other non-org content, you need to process them as > > attachments. Sure, but I don't see a reason why my original snippet wouldn't wor

Re: Q: Export if *not* using a particular backend?

2025-04-11 Thread Ihor Radchenko
David Masterson writes: > Interesting. My elisp is not strong, so a few questions: > > 1. Are you saying attr_all does not exist in Org and this code is >creating it? Anything in the form of #+attr_ is treated by Org mode as affiliated keyword. This keyword is stored alongside the following

Re: Q: Export if *not* using a particular backend?

2025-04-11 Thread David Masterson
Ihor Radchenko writes: > David Masterson writes: > >> Is there a way to export a section of an Org file only if the export >> backend is *NOT* a particular backend? For instance, some things don't >> work in Texinfo, but are fine in HTML and LATEX. >> >> Is there a generalized IF for processing

Re: [PATCH] org-element.el; significant optimizations for org-element--interpret-affiliated-keywords

2025-04-11 Thread Ihor Radchenko
Ihor Radchenko writes: >> Adding back standard properties to the loop reduces performance by 5-20% >> depending on the element (see attached), but that's taking off of an already >> 5-10x speedup (see attached pdf). > > Then, I'd rather not make assumptions about keywords being or not being > i

Re: org-persist-write:index takes minutes to run

2025-04-11 Thread Ihor Radchenko
Karthik Chikmagalur writes: > It's definitely better than the version of org-persist on main right > now. Emacs blocks intermittently over the ~3 seconds it takes to > preview 600 fragments in my test file, but it's not completely blocked > for 30 seconds like before. Emacs does not block when