[PATCH] insert-kaomoji: Use true name of `load-file-name'.
Export this patch
Hello,
When using straight.el to install the package, which stores the
elisp file as a symlink in the load path, this package fails to
build `insert-kaomoji-alist'. Using the true path of `load-file-name'
fixes this issue.
Out of curiosity, if you wrap the entire expression in a
eval-when-compile block, does that change anything?
Regards.
---
>From c6417138607a02ffed0e178e21d2ecb00b00c116 Mon Sep 17 00:00:00 2001
From: viz <visuwesh@tutanota.com>
Date: Thu, 17 Jun 2021 19:25:26 +0530
Subject: [PATCH] insert-kaomoji-alist: Use true name of `load-file-name'.
---
insert-kaomoji.el | 2 + -
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/insert-kaomoji.el b/insert-kaomoji.el
index 0bde8c0..bdfad6a 100644
--- a/insert-kaomoji.el
+++ b/insert-kaomoji.el
@@ -85,7 +85,7 @@ their unit components by unit separators (ASCII 37)."
(defconst insert-kaomoji-alist
(let* ((dir (if load-file-name
- (file-name-directory load-file-name)
+ (file-name-directory (file-truename load-file-name))
default-directory))
(file (expand-file-name "KAOMOJIS" dir)))
(insert-kaomoji-parse-file file))
--
2.31.1
Visuwesh Muthukumar <visuweshmuthukumar@gmail.com> writes: