Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-19 Thread dark . key8799
I've been running 9.7 for a few weeks and I've noticed a slowdown in `org-agenda-redo'. I finally ran some benchmarks. I can reproduce it with a minimal org config (bare init.el with only straight.el and a short org config) with my full `org-agenda-files' (~450 files). In my regular conf, both

[PATCH] Patches for problems discovered with interactive testing

2024-01-19 Thread gerard . vermeulen
This patch addresses a number of glitches discovered during interactive testing and contains possible fixes (sub-patch test-ob-maxima fixes batch testing on my system, but not interactive testing). The test-ob-maxima patch may be due to a different Maxima version, but I do not think so. In

Re: [Patch] Align baseline of latex fragments and surrounding text

2024-01-19 Thread Timothy
Hi Matt, > However, I noticed that there appears to be another (large) patch in the > works that also does this (email subject line “Overhaul of the LaTeX > preview system”). That’s a long thread and I haven’t followed it. Is > there still scope for my change? Is it worth getting this in? So, in

Re: Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-19 Thread Ihor Radchenko
dark.key8...@151e.ai writes: > I've been running 9.7 for a few weeks and I've noticed a slowdown in > `org-agenda-redo'. I finally ran some benchmarks. Thanks! > I can reproduce it with a minimal org config (bare init.el with only > straight.el and a short org config) with my full

Re: Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-19 Thread dark . key8799
On Fri, Jan 19, 2024, at 20:57, Ihor Radchenko wrote: > May you please redo the benchmarks using > 1. M-x profiler-start cpu > 2. Run agenda > 3. M-x profiler-report > 4. M-x profiler-report-write-profile profile.el > 5. Share two saved profiles, repeating the above steps with newer and >

Re: Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-19 Thread Ihor Radchenko
dark.key8...@151e.ai writes: > On Fri, Jan 19, 2024, at 22:00, Ihor Radchenko wrote: >> May you open org-agenda.el and org-element.el and M-x eval-buffer in >> these two files before generating the report? It should make the results >> more readable. > > There you go, there's still some lambdas

Re: Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-19 Thread Ihor Radchenko
dark.key8...@151e.ai writes: > Please find attached. Thanks! > I found the profiler-reports harder to read because of the (native-compiled?) > lambda that show up and harder to compare since the metric is relative with > no absolute reference but well noted and will remember. Yeah. For some

Re: [PATCH] Silently remove lockfiles from org-agenda-files

2024-01-19 Thread Ihor Radchenko
Joseph Turner writes: > My Emacs setup broke today due to the presence of a lockfile inside > "~/.local/share/org/todo". I use EXWM, and I show org-agenda on startup: > > (add-hook 'after-init-hook > (lambda () (org-agenda nil "t"))) > (setq initial-buffer-choice (lambda ()

Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-19 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > org-babel-detangle is an interactive command but > M-x org-babel-detangle always replies "Detangled 0 code blocks" > This patch makes org-babel-detangle prompt for a source code file. > > Obviously, I got bitten by this. I suspect that you may have some

[PATCH] Make command org-babel-detangle work interactively

2024-01-19 Thread gerard . vermeulen
Hi, org-babel-detangle is an interactive command but M-x org-babel-detangle always replies "Detangled 0 code blocks" This patch makes org-babel-detangle prompt for a source code file. Obviously, I got bitten by this. The patch contains (user-error "Source code file does %S not exist"

Re: [PATCH] Patches for problems discovered with interactive testing

2024-01-19 Thread gerard . vermeulen
On 19.01.2024 13:50, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: This patch addresses a number of glitches discovered during interactive testing and contains possible fixes (sub-patch test-ob-maxima fixes batch testing on my system, but not interactive testing). Thanks for

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-19 Thread Juan Manuel Macías
Ihor Radchenko writes: > This turned out to be a lot easier than I thought. > See the attached patch. > >>> \command >>> [unrelated text] >>> >>> If there are, we may actually want to consider pandoc's approach >>> seriously. >> >> In principle, any environment that takes an optional argument in

Re: [PATCH] Patches for problems discovered with interactive testing

2024-01-19 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > This patch addresses a number of glitches discovered during interactive > testing and contains possible fixes (sub-patch test-ob-maxima fixes > batch testing on my system, but not interactive testing). Thanks for your interest in improving Org mode tests! >

Re: [BUG] Invalid search bound (wrong side of point) [9.6.6 (release_9.6.6 @ c:/Program Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/org/)]

2024-01-19 Thread Ihor Radchenko
christof.j...@gmx.de writes: > Hello, > I got this when starting up emacs : > > ■ Warning (org-element-cache): org-element--cache: Org parser error in > CalnArch17.txt::# in CalnArch17.txt>. Resetting. > Please report this to Org mode mailing list (M-x org-submit-bug-report). Thanks for

Re: [PATCH] Make command org-babel-detangle work interactively

2024-01-19 Thread gerard . vermeulen
On 19.01.2024 16:20, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: org-babel-detangle is an interactive command but M-x org-babel-detangle always replies "Detangled 0 code blocks" This patch makes org-babel-detangle prompt for a source code file. Obviously, I got bitten by

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-01-19 Thread Matt Huszagh
Matt Huszagh writes: > Another minor issue I've encountered. Using different delimiters results > in images of slightly different sizes. > > For example, in a file containing: > > ``` > Using first delimiters: \(F=ma\). > > Using other delimiters: $F=ma$. > ``` > > The snippet with dollar sign

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-01-19 Thread Matt Huszagh
Hi Timothy, Thanks for your work on this. I've run into an issue related to the change you made in 209e5f5f4047a34db27c3b5dff4077bb1da9ceed that makes org-latex-compile asynchronous. This breaks the org-babel-latex-pdf-svg-process functionality I introduced in commit

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-01-19 Thread Matt Huszagh
Timothy, Another minor issue I've encountered. Using different delimiters results in images of slightly different sizes. For example, in a file containing: ``` Using first delimiters: \(F=ma\). Using other delimiters: $F=ma$. ``` The snippet with dollar sign delimiters is slightly larger than

[BUG] Invalid search bound (wrong side of point) [9.6.6 (release_9.6.6 @ c:/Program Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/org/)]

2024-01-19 Thread Christof . Jung
Hello,  I got this when starting up emacs :      ■  Warning (org-element-cache): org-element--cache: Org parser error in CalnArch17.txt::#. Resetting.  The error was: (error "Invalid search bound (wrong side of point)")  Backtrace: nil  Please report this to Org mode mailing list (M-x

Re: Developing Moodle resources/sites with Org Mode

2024-01-19 Thread Doolittle, Edward
"Fraga, Eric" e.fr...@ucl.ac.uk writes: > This sounds very good! I am particularly impressed with being able to > use maxima to create questions that have a random element. I wish I'd > had what you have done back at the start of the pandemic when I had to >

Re: Patch to allow adjusting latex fragment display scale factor

2024-01-19 Thread Ihor Radchenko
Matt Huszagh writes: > Bringing this back up. Ihor, I've added you to the thread directly > (hope that's ok). > > Any thoughts? I have not yet updated it for the most recent changes to > main, but I can do that. As you found in another thread, we have a WIP overhaul of the whole LaTeX preview

Re: Developing Moodle resources/sites with Org Mode

2024-01-19 Thread Devin Prater
I don't like Moodle's interface at all. Just a web page edit field to type into. So, I have everything in Markdown on Github, and I link to that with Moodle URL type lessons. I'd love more support for Moodle in other software, since a folder of files is tons easier than tons of web pages. I'm

Re: Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-19 Thread dark . key8799
On Fri, Jan 19, 2024, at 22:00, Ihor Radchenko wrote: > May you open org-agenda.el and org-element.el and M-x eval-buffer in > these two files before generating the report? It should make the results > more readable. There you go, there's still some lambdas but more of the calls are explicit. --