aboutsummaryrefslogtreecommitdiff
path: root/module/calp/util/config.scm (unfollow)
Commit message (Collapse)Author
2022-04-11Replace config system with paramater based system.Hugo Hörnquist
This new setup stores all configurations are parameters. This forces everything into modules, and ensures that we can't have a module use an unloaded config. It (unfortunatelly) also causes users to have to specify namespaces when defining values, but ini-files (and the like) already does that. Also, there is nothing stopping a new `set-config!' from being defined which allows un-namespaced operation. The commit also removes the introspection procedures. They where a bit weird to begin with, since they only showed loaded fields. And since the program had no way of properly serializing or deserializing them we remove them for the time being. They would however be good to reintroduce together with a proper menu for editing simple configuration (see Emacs' `custom-set-variables').
2022-03-28Normalize errors.Hugo Hörnquist
2022-03-28Unsmarted define-config%Hugo Hörnquist
2022-02-22Prepare code for translation.Hugo Hörnquist
2022-02-22Add some TODO comments.Hugo Hörnquist
2022-01-31Move stuff from calp/util to hnh/util.Hugo Hörnquist
This is the first (major) step in splitting the generally useful items into its own library.
2020-10-26HTML Prettyify code for following tags.Hugo Hörnquist
2020-08-24Move util modules into calp module..Hugo Hörnquist
2020-08-12cleanup.Hugo Hörnquist
2020-08-12fixups in (util config).Hugo Hörnquist
2020-08-12Massivly simplify config internals.Hugo Hörnquist
2020-08-03Resolve (datetime instance) TODO with ./configure?Hugo Hörnquist
Tried adding a ./configure script, which mostly is responsible for downloading a default zoneinfo file, and setting up the environment for the program. I have for quite a while thought about having a configure system for things like these, but also for setting up default paths. Let's see if it works out.
2020-06-14Repaired ability to set config value to #f.Hugo Hörnquist
2020-06-10(util config) compiles again.Hugo Hörnquist
2020-06-05Change top error handler.Hugo Hörnquist
2020-06-01Fix configuration help, print with --help.Hugo Hörnquist
2020-06-01Modify config to store return of #:pre.Hugo Hörnquist
2020-05-23Slight changes to define-config.Hugo Hörnquist
2020-04-25define-config now expands correctly.Hugo Hörnquist
2020-04-07Minor notes and fixes.Hugo Hörnquist
2020-04-03Update define-config to hopefully check pre-existing values.Hugo Hörnquist
2020-04-02Remove ensure? for configs, built in instead.Hugo Hörnquist
2020-04-01Add set-config! and get-config, along with print for debug.Hugo Hörnquist
2020-04-01Start rewrite mentioned in last commit.Hugo Hörnquist
2020-03-31Attempt at decentralized configuration system.Hugo Hörnquist
Placing all possible configuration items in a central (parameters) module scales really badly. This idea that any module can register configuration parameters is better. The current implementation however has the drawback that it requires that the module exposing the parameter is loaded before the value can be sat, but that scales even worse. A probable solution would be to abandon binding everything to guile's module system, and instead let (util config) provide a `conf-ref' and a `conf-set!' procedures. A `define-configuration' similar to emacs `defcustom' could be of use, mainly for retroactively type checking parameters.