Re: Querying cached parse trees without opening files

2025-05-28 Thread Martin Edström
Yeah, pretty much! Thanks for the example. As for control sum, perhaps file and directory mtimes would be sufficient. >From experience, something like (secure-hash 'sha1) takes whole seconds to do on all my files, which would reduce the frequency of times you can check for changes if you don't

Re: Querying cached parse trees without opening files

2025-05-27 Thread Martin Edström
Well-explained! Thank you, Kristoffer :) On Mon, 26 May 2025 16:02:30 -0500, Kristoffer Balintona wrote: > On Mon, May 26, 2025 at 12:02 PM chris wrote: > > > Org-node seems very interesting! I noticed that your [parser.el](https:// > > github.com/meedstrom/org-mem/blob/main/org-mem-parser.el

Re: Querying cached parse trees without opening files

2025-05-25 Thread Martin Edström
May 2025 18:48:08 +0200 (CEST), "Martin Edström" wrote: > Hi > > I've made the package org-mem (https://github.com/meedstrom/org-mem), which > has its own parser. > > I'm wondering if it would be possible to write something similar to use Org's >

Querying cached parse trees without opening files

2025-05-23 Thread Martin Edström
rking with a cached parse tree for a given file, without ever opening that file. - Packages can then query things like "is there an active timestamp anywhere in these 2,000 files" and get an instant answer. Before I write code -- is that realistic to do? Martin Edström

Re: [O] :CREATED: property when scheduling new headings

2025-03-03 Thread Martin Edström
My package [1] does create :CREATED: properties by default, but only inactive timestamps, and definitely not when scheduling. So that's probably not it, but if you do have it installed... let me know, as that could be worth a double-check. [1] https://github.com/meedstrom/org-node On Mon, 03

org-id-locations-load should probably abbreviate file names

2024-09-26 Thread Martin Edström
This is not a bug that breaks normal use of org-id, but it may affect downstream uses. An example is my package org-node, which checks file names known to org-id, and combines that with other sources of information, to build a big file list. This list is automatically de-duplicated because I ca

Re: org-indent-mode makes set-goal-column behave surprising

2024-08-02 Thread Martin Edström
Sorry, I have to add a reproduction step: turn on M-x visual-line-mode. Anyway, it's not an Org bug. Reported upstream: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72420 Martin Edstrom On Mon, 29 Jul 2024 12:52:55 +0200 (CEST), "Martin Edström" wrote: > Hello, pingi

Re: [BUG] Org-image-max-width doesn't account for org-indent-mode [9.7.8 (9.7.8-7f2ce8 @ /tmp/bug/elpa/org-9.7.8/)]

2024-08-01 Thread Martin Edström
To my untrained eye, this bug seems like it must have the same cause as this other bug: https://lists.gnu.org/archive/html/emacs-orgmode/2024-07/msg00365.html What I find surprising is how it hasn't been dealt with in 16 years. Perhaps it used to work correctly and only recently broke? I'm re

org-indent-mode makes set-goal-column behave surprising

2024-07-31 Thread Martin Edström
Hello, pinging back on two old emails that seem related: https://lists.gnu.org/archive/html/emacs-orgmode/2008-01/msg00030.html https://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00654.html A bug that can be reproduced on Emacs -Q: - Open an org file that has subtrees at various levels

Re: Properties drawer at buffer/file level

2024-07-31 Thread Martin Edström
The property drawer has to come first for technical reasons. Just try manually moving the property drawer beneath the title, then do M-: (org-entry-get nil "ID") and what do you get? Nil. Martin On Mon, 29 Jul 2024 18:02:35 +0200, Sébastien Gendre wrote: > Hello, > > > If I set a prop

Re: Properties drawer at buffer/file level

2024-07-29 Thread Martin Edström
aintenance burden. I got the impression it was only added due to org-roam, but it does not actually need them. It works fine with a traditional top-level heading instead of a #+title. Martin Edström On Mon, 29 Jul 2024 19:15:05 +0200, Sébastien Gendre wrote: > > I get nil. >

Re: Properties drawer at buffer/file level

2024-07-29 Thread Martin Edström
The property drawer has to come first for technical reasons. Just try manually moving the property drawer beneath the title, then do M-: (org-entry-get nil "ID") and what do you get? Nil. Martin On Mon, 29 Jul 2024 18:02:35 +0200, Sébastien Gendre wrote: > Hello, > > > If I set a property

org-indent-mode makes set-goal-column behave surprising

2024-07-29 Thread Martin Edström
Hello, pinging back on two old emails that seem related: https://lists.gnu.org/archive/html/emacs-orgmode/2008-01/msg00030.html https://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00654.html A bug that can be reproduced on Emacs -Q: - Open an org file that has subtrees at various levels

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-24 Thread Martin Edström
} )) On Wed, Feb 21, 2024 at 15:38 Max Nikulin wrote: > On 19/02/2024 02:36, Martin Edström wrote: > > +Since this is a shell-command, remember to use single-quotes > > +around \\='%i\\=', not double-quotes! Else a math fragment such > > +as \"$y = 200$\"

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-24 Thread Martin Edström
And ignore my suggestion about stripping input on the Elisp side. Didn't think that through. On Wed, 21 Feb 2024 at 16:04, Martin Edström wrote: > > Actually, I agree about your test case, that looks like it'd cause a problem. > > So we patch the function to use `shell-q

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-24 Thread Martin Edström
Actually, I agree about your test case, that looks like it'd cause a problem. So we patch the function to use `shell-quote-argument'? On Wed, 21 Feb 2024 at 15:38, Max Nikulin wrote: > > On 19/02/2024 02:36, Martin Edström wrote: > > +Since this is a shell-command, remembe

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-18 Thread Martin Edström
Here you go! Tests passed (14 SKIPPED), compiled fine. I've made no prior contributions and this changes 5 lines. I'm ok if you want to rephrase it in any way. Martin On Sun, 18 Feb 2024 at 19:56, Martin Edström wrote: > > I will try to do a patch, thanks for the link. Stay t

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-18 Thread Martin Edström
I will try to do a patch, thanks for the link. Stay tuned. On Sun, Feb 18, 2024 at 15:06 Ihor Radchenko wrote: > Martin Edström writes: > > > I've just been struggling with my custom setting for > > `org-latex-to-html-convert-command` outputting many math snippets > &

Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-02-16 Thread Martin Edström
I've just been struggling with my custom setting for `org-latex-to-html-convert-command` outputting many math snippets wrong. The fault was mine: I didn't correctly shell-quote the input. I propose to add a warning in the docstring, because many people will trip the same problem. The thing is that