Skip to content
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

make: Don't use Q, allow the use of site-lisp #146

Closed
wants to merge 1 commit into from

Conversation

Thaodan
Copy link
Contributor

@Thaodan Thaodan commented Oct 1, 2023

The rationale is that some Emacs packages might be found in site-lisp,
especially as for other packages such as those that would require
native modules.

@tarsius
Copy link
Member

tarsius commented Oct 1, 2023

The rationale is that some Emacs packages might be found in site-lisp,

I think you are saying that some of the packages that you have installed using Borg have dependencies that were installed using a different method and that when you compile the packages that were installed using Borg, these packages are missing from the load-path.

Despite that, I think it is very appropriate to not load the configuration files intended for interactive use, in non-interactive use. They might do any kind of thing that is completely inappropriate in non-interactive use.

Note that the arguments are set with ?=, so you can override this easily, thanks to the -include etc/borg/config.mk further up. But you shouldn't, at least not for this use-case.

Borg provides an init file specifically for non-interactive use. If it exists, etc/borg/init.el is loaded by borg-initialize. The main use-case for this file is just this: add externally installed dependencies to the load-path.

I just noticed that etc/borg/{init.el,config.el,config.mk} are not sufficiently documented. I'll do that when I get the time.

@Thaodan
Copy link
Contributor Author

Thaodan commented Oct 1, 2023 via email

@tarsius
Copy link
Member

tarsius commented Oct 1, 2023

It seems that in the decade since I last read the respective documentation, I forgot about some nuances. (I though -Q was necessary to ignore default.el, for starters.) After reading it again, some things are still a bit unclear to me, and I want to read some code, to catch up on some finer points, before making a decision.

I will likely merge something like this when I am done. (But drop -q, because --batch implies that. I also want to check whether --no-splash and --no-x-resources actually make a difference in batch mode; it seems to me that at least --no-splash should be implied.)

@Thaodan
Copy link
Contributor Author

Thaodan commented Oct 1, 2023 via email

The rationale is that some Emacs packages might be found in site-lisp,
especially as for other packages such as those that would require
native modules.

Signed-off-by: Björn Bidar <[email protected]>
@tarsius
Copy link
Member

tarsius commented Dec 4, 2023

I've decided to not merge this for the time being. Init file handling has to be reworked from the ground up. This includes changes to borg's own init files, which will be more work. I think it would be a bad idea to change the default behavior now, and then again in a few months, when I have the time to go all the way.

Thanks for bringing this to my attention though!

@tarsius tarsius closed this Dec 4, 2023
@Thaodan
Copy link
Contributor Author

Thaodan commented Dec 5, 2023 via email

@tarsius
Copy link
Member

tarsius commented Dec 5, 2023

It's a change in behavior, which can also be achieved through trivial customization. Since you are the first to have brought this up, everybody else must either not be bothered by the current behavior or they have just added the necessary customization. As I said, I think there is room for better defaults here (going beyond what you are suggesting). Some might prefer the current default behavior, some the future default behavior, so someone will have to add customization. I don't want to force users to adapt their customization twice, so I am leaving things as-is for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants