Giter Site home page Giter Site logo

Comments (1)

jeffbowman avatar jeffbowman commented on August 19, 2024 1

I tested several ways to make sure that didn't happen ... bummer ! (facepalm!!)

custom-save-delete only deletes the values out of the buffer. It depends on them already being set beforehand. If they aren't, then they disappear, which is not intended (aka "bad"). Ultimately, we don't really need to call customize-save-customized at all, that was an attempt to get the currently customized values set during initialization stored in the custom-set-variables form. Your refactor works because it doesn't save the customized values (which is fine, they are in the "SET but not saved" state), and then we load the values set through the Customize UI, via Org Mode Agenda file manipulation, and/or from .dir-locals.el settings (ie, pressing the ! to accept and remember the settings (see discussion in #111). In the end, all we need to do is remove the call to customize-save-customized and add your better wording in the README.org.

We don't technically need to load the file in the after-init-hook, but that seemed like a reasonable place to put it so a user could choose to remove that from the hook if they don't want the custom-file loaded at all. The only (minor/nit picky) issue I have with your refactor is the use of lambda in the after-init-hook which makes it difficult to undo later.

Would you mind updating your PR to only remove the call to customized-save-customized? (I've added some review notes)

Thanks very much, great catch!

from crafted-emacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.