-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you consider modularising the extensions? #238
Comments
Hi @akashpal-21 Thank you for your note. I will come back to this thread. I want to mention two big issues: performance and infinite loop. If you could help us resolve either/both, it would be fantastic. (Can't remember the issue numbers, let me look later). Re your point:
How about something like this below?
Refer to |
Here are what I think are two biggest issues.
For the performance issue, I was playing with a caching mechanism with a hash table. I could not get it to work to improve the performance, so I put it on hold. For the infinite loop, I was able to reliably reproduce the issue back then. When I go back to it now, I can only do so more intermittently. I may think of a band-aid patch for it. In any case, I need to spend more time on it. With regard to your original suggestion about "modularizing", in my view, the features in this package ( As a user, you are instructed to enable ( (use-package vertico-directory
:after vertico
:ensure nil
[my omission for the rest of configuration]
) I find it clean and easy enough for users like me, who know something about Emacs and Emacs Lisp. What I've added to I think that it is a side-effect of this user convenience that a developer (like yourself) is required to do something a little more. This little more should be simply adding a source files' directory to (use-package org-transclusion
:load-path ("~/src/org-transclusion")) Perhaps I should consider a "CONTRIBUTE" notice as a guide for contribution to this package (this can be a PR, too :)).
I think I am still learning how to make it clear on a public repo like this where the author (me) needs help. |
Understandable -- it is not much of a problem -- I think you have obviously made the correct decision to include some features as active by default -- although I dont use I will look into those issues, and if I can make anything better I will report back to you. Closing this issue page. |
I checked the cpu-profiler -- the stuck up for large files is the insert operation,
It is unclear to me how can we optimise the process -- the holdup seems to be because of inherent emacs protocols and doesn't seem to me I can do much about it -- without rewriting the entire insert function 😆 |
also regarding the infinite loop - I only triggered it once, I dont know myself how to retrigger it, |
Thank you! |
The linked issue has a detailed step-by-step repro. It would be good if you can also see if it is reproducible :) |
Currently org-transclusion.el cannot be simply evaluated and tested --
org-transclusion/org-transclusion-font-lock.el
org-transclusion/org-transclusion-src-lines.el
org-transclusion/text-clone.el
The above must be evaluated before org-transclusion can finally be evaluated. Ripping apart the requirements is more cumbersome than just evaluating all the extensions together. Are all of them necessary for the core?
org-transclusion/org-transclusion.el
Great package though, do you have some optimisations in the back of your mind I can try, or you can hint for me to explore --
The text was updated successfully, but these errors were encountered: