diff options
Diffstat (limited to 'app-emacs/jinx/files/jinx-0.6-try-load-path.patch')
-rw-r--r-- | app-emacs/jinx/files/jinx-0.6-try-load-path.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-emacs/jinx/files/jinx-0.6-try-load-path.patch b/app-emacs/jinx/files/jinx-0.6-try-load-path.patch new file mode 100644 index 000000000000..5cb498015791 --- /dev/null +++ b/app-emacs/jinx/files/jinx-0.6-try-load-path.patch @@ -0,0 +1,32 @@ +From 3c0aa84130e07cf69219adce8a3494e76977fc26 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@gentoo.org> +Date: Tue, 18 Apr 2023 01:29:55 +0200 +Subject: [PATCH] Try searching the whole load-path for jinx-mod + +* jinx.el (jinx--load-module): Try to (locate-library module) +before trying to look for a sibling file of jinx.el. +--- +https://github.com/minad/jinx/pull/42 + + jinx.el | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/jinx.el b/jinx.el +index d0cf56d..e829d50 100644 +--- a/jinx.el ++++ b/jinx.el +@@ -472,6 +472,11 @@ If VISIBLE is non-nil, only include visible overlays." + (let ((default-directory + (file-name-directory (locate-library "jinx.el" t))) + (module (file-name-with-extension "jinx-mod" module-file-suffix))) ++ ++ (let ((located-module (locate-library module))) ++ (when located-module ++ (setq module located-module))) ++ + (unless (file-exists-p module) + (let ((command + `("cc" "-I." "-O2" "-Wall" "-Wextra" "-fPIC" "-shared" +-- +2.40.0 + |