summaryrefslogtreecommitdiff
path: root/jabber.org
diff options
context:
space:
mode:
authorcontrapunctus <contrapunctus@disroot.org>2022-04-29 20:51:18 +0530
committercontrapunctus <contrapunctus@disroot.org>2022-04-29 20:51:18 +0530
commitb64916a3db791c38183912f9f5a131c68e6e8449 (patch)
tree14c145f5156da3a9debf3dff620881fa3458a881 /jabber.org
parentcbd0708906539d9b7a5a45dcfa3ef4ca247dad27 (diff)
Fix error when loading with literate-elisp-load-file
Diffstat (limited to 'jabber.org')
-rw-r--r--jabber.org10
1 files changed, 6 insertions, 4 deletions
diff --git a/jabber.org b/jabber.org
index 0bb5e71..579f747 100644
--- a/jabber.org
+++ b/jabber.org
@@ -9701,10 +9701,12 @@ JC is the Jabber connection."
(or (ignore-errors (require 'hexrgb))
;; jabber-fallback-lib/ from jabber/lisp/jabber-fallback-lib
(ignore-errors
- (let ((load-path (cons (expand-file-name
- "jabber-fallback-lib"
- (file-name-directory (locate-library "jabber")))
- load-path)))
+ (let* ((source (or (locate-library "jabber")
+ load-file-name))
+ (load-path (cons (expand-file-name
+ "jabber-fallback-lib"
+ (file-name-directory source))
+ load-path)))
(require 'hexrgb)))
(error
"The hexrgb library was not found in `load-path' or jabber-fallback-lib/ directory")))