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

2024-01-24 Thread dark . key8799
On Wed, Jan 24, 2024, at 23:02, Ihor Radchenko wrote: > What is the value of `default-directory' if you run the following from > Org git folder? > > emacs -Q --eval '(add-to-list '"'"'load-path (concat > default-directory "lisp"))' --eval '(add-to-list '"'"'load-path (concat > default-direct

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

2024-01-22 Thread dark . key8799
On Mon, Jan 22, 2024, at 20:05, Ihor Radchenko wrote: > This is very strange. We try hard to use only GNU make machinery + Emacs > there. May it help to remove local.mk from org git folder? Ok, I didn't do that but recloned the repo manually (I was working from a clone made by straight.el) and

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

2024-01-21 Thread dark . key8799
On Fri, Jan 19, 2024, at 23:15, Ihor Radchenko wrote: > I think that the missing lambdas should come from org.el. > So, may you M-x eval-buffer org-agenda.el, org-element.el, and org.el. > > And do the same in Org 9.6. (there are also cryptic lambdas there in the > profile) > > (In theory, you shou

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. --

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 >ol

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

Re: [PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization

2024-01-02 Thread dark . key8799
On Tue, Jan 2, 2024, at 19:15, Ihor Radchenko wrote: > By convention, abnormal hooks (hooks that require arguments) are named > as *-functions, not *-hook. > > Also, when adding new customizations, we generally announce them in > etc/ORG-NEWS. Understood. Please find amended patch. -- Alexandre

[PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization

2024-01-02 Thread dark . key8799
On Sun, Dec 31, 2023, at 22:42, Ihor Radchenko wrote: > I do not see why we shouldn't add such a hook. Patches welcome! Would this work? -- Alexandre Avanian 0001-lisp-org-indent.el-Add-hook-to-run-after-it-initiali.patch Description: Binary data

Suggestion to add hook to be run when org-indent completes a buffer's initialization

2023-12-29 Thread dark . key8799
The org-modern-indent package relies on org-indent having finished preparing a buffer to add its own customizations. Currently it relies on a timer mechanism to watch org-indent-agentized-buffers and execute once a buffer has been prepped by org-indent. That leads to some downstream issues in p