From 7023bc46c91f2223a1cba4b15cc41b3c2274e17b Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 3 Apr 2021 01:13:28 +0800 Subject: Fix Info directory having wrong value at startup * bongo.el: I used to set Info-directory-list to the directory of bongo at startup. This causes Info to not initialize that variable, and as a consequence, the Info will not be started correctly, before I fix the value of that variable. Now this problem is fixed. --- bongo.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bongo.el b/bongo.el index 061d7a0..f5677e4 100644 --- a/bongo.el +++ b/bongo.el @@ -33,7 +33,11 @@ ;;;###autoload (eval-after-load 'info - '(add-to-list 'Info-directory-list (expand-file-name "bongo/" package-dir))) + '(cond + ((null Info-directory-list) + (setq Info-directory-list (append Info-default-directory-list + (expand-file-name "bongo/" package-dir)))) + ((add-to-list 'Info-directory-list (expand-file-name "bongo/" package-dir))))) ;;;###autoload (defvar durand-bongo-music-dir nil -- cgit v1.2.3-18-g5258