-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Org layer overrides user configuration set in org-customize #5170
Comments
This actually happens in other layers besides Org, it just hasn't affected me. This is why the fix proposed in #5168 includes a portion of code in |
Can you provide repro steps ? Also can you try to put your customized settings inside a |
Sorry for the super late response. 😐 Reproducing the issue:
Emacs moves customize'd settings to a known place in the .emacs file each time, so moving it doesn't seem to help. |
@syl20bnr My primary concern over blindly stepping on customized variables is that it effectively breaks documentation for the packages themselves. For example, the chapter on using and setting up Org Capture mode starts out encouraging users to use Should this be a broader issue to establish a variable setting method used in layers other than |
Moving auto-generated custom variables into |
Correct. This fixes the problem, but breaks any usage of customize. On Tue, May 24, 2016 at 12:09 PM Xing Robin notifications@github.com
|
New function `dotspacmacs/emacs-custom-settings` wrapping Emacs custom settings sexps. `dotspacemacs/emacs-custom-settings` is called just after the user configuration (`dotspacemacs/user-config`) Customize cannot write its auto-generated sexps inside a function, to accomplish this we trick Emacs by setting the custom file to a file in `.cache` directory, the path to this file is defined by the variable `spacemacs--custom-file`. At the startup of Emacs we read this file to insert its content inside the function `dotspacemacs/emacs-custom-settings` in the dotfile, this is done in the function `spacemacs/write-custom-settings-to-dotfile`. I don't think we need to write the custom settings to the dotfile when exiting Emacs as well, since we do it at startup at the very beginning (i.e. before actually loading the dotfile) we should be OK. Fixes #5170
Should be fixed in develop with commit e699f18 |
This change broke some '--batch' '--eval' Emacs calls relying on customized values (e.g. 'paradox-github-token' for emacs upgrades via the command line). Is the function not called when in script mode? Also the application of unsafe dir locals and their writing seems to cause issue, but I need to further pin that down. |
Any customization I try with the gui at the moment will result in a "selected deleted buffer". |
New function `dotspacmacs/emacs-custom-settings` wrapping Emacs custom settings sexps. `dotspacemacs/emacs-custom-settings` is called just after the user configuration (`dotspacemacs/user-config`) Customize cannot write its auto-generated sexps inside a function, to accomplish this we trick Emacs by setting the custom file to a file in `.cache` directory, the path to this file is defined by the variable `spacemacs--custom-file`. At the startup of Emacs we read this file to insert its content inside the function `dotspacemacs/emacs-custom-settings` in the dotfile, this is done in the function `spacemacs/write-custom-settings-to-dotfile`. I don't think we need to write the custom settings to the dotfile when exiting Emacs as well, since we do it at startup at the very beginning (i.e. before actually loading the dotfile) we should be OK. Fixes syl20bnr#5170
I think I got the same issue: #7963 |
New function `dotspacmacs/emacs-custom-settings` wrapping Emacs custom settings sexps. `dotspacemacs/emacs-custom-settings` is called just after the user configuration (`dotspacemacs/user-config`) Customize cannot write its auto-generated sexps inside a function, to accomplish this we trick Emacs by setting the custom file to a file in `.cache` directory, the path to this file is defined by the variable `spacemacs--custom-file`. At the startup of Emacs we read this file to insert its content inside the function `dotspacemacs/emacs-custom-settings` in the dotfile, this is done in the function `spacemacs/write-custom-settings-to-dotfile`. I don't think we need to write the custom settings to the dotfile when exiting Emacs as well, since we do it at startup at the very beginning (i.e. before actually loading the dotfile) we should be OK. Fixes syl20bnr#5170
Fixed in #5168
The text was updated successfully, but these errors were encountered: