Skip to content

Commit 9482e00

Browse files
committed
borg-initialize: Prepend "info/" from builddir to Info-directory-list
When $INFOPATH is set, `info-initialize' ignores the list returned by `Info-default-dirs'. When running Emacs from the build directory, that means that the contained "info/" directory is not included in `Info-directory-list'. Fix that by prepending the first element returned by `Info-default-dirs'. (`info-initialize' actually does something similar, but only for "relocatable NS builds".)
1 parent 558d860 commit 9482e00

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# -*- mode: org -*-
2+
* v4.4.1 UNRELEASED
3+
4+
- When Emacs is run from its build directory, add the respective info
5+
directory to ~Info-directory-list~.
6+
27
* v4.4.0 2026-01-01
38

49
- Dropped support for Emacs 27. 64f67e5

borg.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,9 @@ exists."
523523
(when noninteractive
524524
(borg--load-config "etc/borg/init.el"))
525525
(info-initialize)
526+
(let ((dir (car (Info-default-dirs))))
527+
(when (file-directory-p dir)
528+
(cl-pushnew dir Info-directory-list :test #'file-equal-p)))
526529
(let ((start (current-time))
527530
(skipped 0)
528531
(initialized 0))

0 commit comments

Comments
 (0)