- Stopped using a
realpath
gnu-ism. #167
- Org export errors are now being demoted instead of being ignored entirely. 13caf51
- Makefile and documentation improvements.
- The robustness of the code used to set
borg-drones-directory
,borg-user-emacs-directory
andborg-top-level-directory
has been increased. As a resultborg-drones-directory
no longer has to be a direct subdirectory ofborg-user-emacs-directory
. #144 - The Emacs configuration repository can now itself be a submodule. #154
- Updated tooling.
- Dropped support for Emacs 26. fd9d044
- The bootstrapping process has been improved. e27463e
- Added support for including other files in
~~/.config/emacs/.gitmodules~ and use that to separate essential
module configuration (still in
.gitmodules
), additional remotes (now in.gitremotes
) and build configuration (now in.borgconfig
). f9a9140 borg-read-package
used to suggest the Emacsmirror URL for packages from many forges, when it should have suggested the upstream URL instead. d8aecb0- When building an individual drone, it is now cleaned first, just like it was always done when building all drones at once. b8f7561
- While a build step is running, the new
borg-clone
variable is bound to the package currently being build. c0ad642 - Added new variable
borg.extra-build-step
which allows specifying additional build steps to be used when building any drone. 2f41ec4 - The value of a
submodule.DRONE.disabled
variable can now be a lisp expression. 15a8905 - Added new variable
borg-minimal-emacs-alist
, used to disable drones that require a more recent Emacs release than what is currently being used. 00132c1 - Added support for exporting Org files to Texinfo. #121
- When building only most drones using the
quick
make target, drones that aren’t going to be re-build are no longer cleaned. 5647cd7 - Stopped using
git submodule--helper
subcommands, which were removed in Git v2.38.0. 78a1c87 8d00bb8 etc. - Renamed many
make
targets. Madehelp
the default target. Removed theall
target (since there is no one-fits-all). Addedclean-force
target. 675d97a 41d8ba4 d843820 3dc7068 d873be8 etc. - Improved support for native compilation. c166368 40b0664 2520ae9 21acd89 etc.
- Use
loaddefs-generate
in Emacs 29 and later. 14c140d - The format of the raw output of
borg-drones
changed. 47122b6 - Disabled drones are now highlighted in Magit’s tabulated module lists. d3cdc17
make clean
andmake force-clean
now also remove autoload files. 1172842, 52234b0- Values added to
SILENCIO
inborg.mk
are no longer discarded. This variable can be used to suppress warnings when compiling drones. 72000eb - 7baf949 borg-makeinfo: Do not regenerate tracked but missing file
- 04df5ca borg-build: Remove trailing slash from clone name
- 1f87dfc borg–build-interactive: Use pop-to-buffer-same-window
- 9e59c64 Handle autoloads and load-path more robustly
- 7ef6a70 make: No longer hardcode drone directory in target names
- cb198c7 borg.sh: Improve safety outside initial “make bootstrap”
- 3cd6b4f make: Explicitly specify output directory for makeinfo –html
- c83238b borg-elpa: Don’t assume epkg is available
- a337603 Ensure activation happens only after building is done
- e29d983 borg-drones: Append slash to borg-drones-directory if necessary
- 8a5a718 Display build buffer after setting major-mode
- 1b4efad #157 borg-build: let-bind borg-compile-function
- 94b9be7 borg-update-autoloads: Add to load-path again
borg-user-emacs-directory
wasn’t used in all places where it should be used.- Added new function
borg-dronep
. - Added new macro
borg-do-drones
, which is mostly likedolist
but caches variables that are set in “.gitmodules”. - Added new make target
build-native
. - Like manual in the top directory, those in the
doc/
anddocs/
directories are now also automatically build and added toInfo-directory-list
. - Added an additional make variable
EMACS_ARGUMENTS
that is reserved for use by users.
- When setting
borg-top-level-directory
do not assume we are inside a Git repository, which makes it possible to use Borg to build a static configuration to be deployed outside the repository used to build it. #110 - Fixed path to
etc/borg/config.mk
, which is now also loaded when building not-interactively. - Added new variable
borg-compile-function
, which can be set tonative-compile
to enable upfront native compilation. This should be done in ~~/.emacs.d/etc/borg/config.el~ like so:(when (native-comp-available-p) (setq borg-compile-function #'native-compile))
Renamed
borg-byte-compile-recursively
toborg-compile-recursively
andborg-byte-compile
toborg-compile
accordingly. #116 borg-drones
learned to ignore non-drone submodules. #117- The
variable
argument ofborg-get
can now be a symbol. - If a variable has multiple values
borg-get
failed to return the last value when using the cache, as it already did when not using the cache.
- Taught
borg-load-path
to use theelisp/
directory automatically like it already uses thelisp/
directory or the top-level. Theelisp/
directory takes precedence over the other two directories. a8bce40 - Users can now specify the init files that should be compiled by
setting the
INIT_FILES
variable in the top-levelMakefile
. If that is not specified, then the same files as before are compiled (init.el
and<username>.el
). 35b63df - Each init file is now loaded before it is compiled. Previously
this was only done for
init.el
. f6a2e0c - The
default-directory
used during compilation and when presenting the results did not always match, leading to broken links. 41b4494 - When initializing and rebuilding packages, then missing and disabled packages are skipped now. bde5d4c, 93f40f9, 640169d
- It is now possible to place the drones in a directory that is named
something other than
lib
using theborg.drones-directory
variable. The default is stilllib
, except when using Borg alongside Package; then the new default isborg
. 83f96dd, fd31cff - The
borg-user-emacs-directory
no longer has to be the top-level directory of the containing repository. bbea37f - The variable
borg-drones-directory
was previously known asborg-drone-directory
. dd0c142 - When Borg is used as secondary package manager, then
borg.mk
is now usable as well. 5d87d34 - Added documentation on how to recover from missing commits and missing repositories. ecb2f9f
- Symlinks are resolved now when setting path variables. 444b9d7
- The new option
borg-rewrite-urls-alist
allows rewriting certain urls when a package repository is cloned. This is mostly intended to replace Github and Gitlab ssh URLs with https urls.
- Cosmetics and improvements to maintenance tools.
- The new user configuration file ~~/.emacs.d/etc/borg/init.el~ is
loaded by
borg-initialize
if Emacs is running without an interactive terminal.
- Borg can now be used as a secondary package manager alongside
package.el
. When used like this, then Borg itself should be installed from Melpa. This is still experimental. For instructions and help see #46. The manual does not yet cover this topic. - The commands
borg-assimilate
andborg-clone
now require the user to confirm before acting on a package that is known to be (potentially) unsafe. Note that this does not imply that other packages are safe, and also that theepkg
package has to be available for this to kick in for the most dangerous packages — those from the Emacswiki, into which anyone could trivially inject malicious code. - The new files
borg.mk
andborg.sh
were added, replacing files that were previously located directly in the super-repository.The super-repository still contains a
Makefile
, which users who do not use the Emacs.g collective have to update manually, but failure to do so should be less problematic now, because this file only defines a single target needed to makeborg.mk
andborg.sh
accessible during bootstrap, while using these files for everything it previously did itself.This makes it easier and safer to improve the respective functionality iteratively and to create configurations that are not based on the Emacs.d collective.
- The new user configuration files ~~/.emacs.d/etc/borg/config.el~ and
~~/.emacs.d/etc/borg/config.mk~ are loaded by
borg-build
andmake
if they exist. These files are primarily intended to set the variablesborg-emacs-argument
(which see) andEMACS_ARGUMENTS
. The latter can also be used to setEMACS
and/or to define new make targets. - The new command
borg-insert-update-message
inserts information about drones that are updated in the index. The inserted text is formatted according to the commit message conventions documented in the manual. Ingit-commit-mode-map
C-c C-b
is bound to this command. - A new make target
tangle-init
was added which recreatesinit.el
frominit.org
. - Added new variables
submodule.DRONE.recursive-byte-compile
andborg-byte-compile-recursively
. - The user is asked to save relevant buffers before compiling.
- The values of
submodule.DRONE.no-byte-compile
are now treated as relative to the top-level. The documentation already claimed that was the case before. - All build output is appended to the same buffer now. Previously each
build created a new, unspecialized buffer that never got cleaned up.
The buffer is automatically shown on every build but can easily be
buried using
C-q
. - The command
borg-insert-update-message
now also handles assimilations and removals.
- Added new command
borg-clone
to make it easier to review a package before assimilating it. Assimilating a package gives that package a change to run arbitrary code, so the review should happen first.Packages that have been cloned are now being referred to as clones. If they have additionally been assimilated, then they are referred to as drones, as before. Note that drones are also clones.
When a package has not even been cloned yet, then it is referred to as just a package.
- Added new command
borg-remove
to replaceborg-uninstall
. The new name is more appropriate because this command is also suitable for removing a package that has previously been cloned, without also being assimilated. This command moves the working tree to the trash, but does not remove the gitdir. It also refuses to do anything if the working tree isn’t clean. - Command
borg-assimilate
now assimilates an already cloned package without the user having to use a prefix argument, while separating the gitdir from the working tree, if that isn’t already the case. The latter is useful after the user initialized a new repository, or cloned a package using something other thanborg-clone
.When assimilating a package, that has been cloned or assimilated before but was then removed again, then the user is now given the choice between reusing the existing gitdir or starting over.
- Command
borg-build
now also activates the clone or drone using the new commandborg-activate
, which was extracted fromborg-assimilate
. - Command
borg-build
now always uses a non-interactive Emacs instance to avoid polluting the new byte-code with old versions of the same code that is already loaded. - The functions
borg-update-autoloads
,borg-byte-compile
, andborg-makeinfo
can now be used as explicit build steps without having to specify their argument(s). - Added new variable
borg-build-shell-command
to give users complete control over how shell command build steps are executed. - Added new utility function
borg-gitdir
and, in order to avoid confusion and match Git terminology, renamedborg-repository
toborg-worktree
. - Added new utility functions
borg-read-package
,borg-read-clone
, andborg-clones
. - Fixed a type error in
borg-initialized
when drones are being skipped.
- Repository moved to https://github.com/emacscollective/borg.
- The ~~/.emacs.d/bin/borg-bootstrap~ script can now add additional
remotes. That script is part of the repository of the
emacs.g
collective. It cannot be part of theborg
repository, because it is has to be available before theborg
repository and all the other drone/submodule repositories are cloned. But the documentation about this script can be found in theborg
manual. borg-initialize
now uses a cache to avoid callinggit config
excessively. On Windows this significantly improves performance.borg-drones
learned to optionally return drone variables instead of just the drone names.borg-byte-compile
andborg-update-autoloads
now don’t require the PATH argument.borg-uninstall
was broken.- The manual was updated heavily.
- Cosmetic and other minor improvements.
- Minor bug fixes and typo fixes.
- Repository moved to https://gitlab.com/emacscollective/borg.
- Updated manual and made source compatible with Org v9.0.
- Improved and extended
make
targets.
- Updated homepage link.
- Typo fixes.
- When invoked as a command
borg-build
failed.
- Added new function
borg-batch-rebuild-init
to allow compiling just the init files without also compiling all drones.
borg-batch-rebuild
now also compiles the secondary init file<user-real-login-name>.el
if present.borg-batch-rebuild
now compilesorg
before all other packages.
borg-build
did not respectsubmodule.<name>.build-step
.
- First release.