summaryrefslogtreecommitdiff
path: root/app-emacs/jinx/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-18 05:54:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-18 05:54:20 +0100
commit5a1fb66df455454109e1de61d38b48f509dc68b8 (patch)
tree0213f12db1b0138bffda43d11208c5d701967638 /app-emacs/jinx/files
parent3a8423ee2874c2fd96358b28af08d38d83e9bdc0 (diff)
gentoo auto-resync : 18:04:2023 - 05:54:20
Diffstat (limited to 'app-emacs/jinx/files')
-rw-r--r--app-emacs/jinx/files/50jinx-gentoo.el4
-rw-r--r--app-emacs/jinx/files/jinx-0.6-try-load-path.patch32
2 files changed, 36 insertions, 0 deletions
diff --git a/app-emacs/jinx/files/50jinx-gentoo.el b/app-emacs/jinx/files/50jinx-gentoo.el
new file mode 100644
index 000000000000..35fde43c0137
--- /dev/null
+++ b/app-emacs/jinx/files/50jinx-gentoo.el
@@ -0,0 +1,4 @@
+;;; app-emacs/jinx site configuration -*- lexical-binding: t; -*-
+(add-to-list 'load-path "@SITELISP@")
+(add-to-list 'load-path "@EMACSMODULES@")
+(load "@SITELISP@/jinx-autoload.el" nil t)
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
+