diff options
author | contrapunctus <contrapunctus@disroot.org> | 2022-04-29 20:51:18 +0530 |
---|---|---|
committer | contrapunctus <contrapunctus@disroot.org> | 2022-04-29 20:51:18 +0530 |
commit | b64916a3db791c38183912f9f5a131c68e6e8449 (patch) | |
tree | 14c145f5156da3a9debf3dff620881fa3458a881 /jabber.org | |
parent | cbd0708906539d9b7a5a45dcfa3ef4ca247dad27 (diff) |
Fix error when loading with literate-elisp-load-file
Diffstat (limited to 'jabber.org')
-rw-r--r-- | jabber.org | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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"))) |