From b64916a3db791c38183912f9f5a131c68e6e8449 Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Fri, 29 Apr 2022 20:51:18 +0530 Subject: Fix error when loading with literate-elisp-load-file --- jabber.org | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'jabber.org') 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"))) -- cgit v1.2.3