~pkal/public-inbox

insert-kaomoji: Use true name of `load-file-name'. v1 APPLIED

Visuwesh Muthukumar: 1
 insert-kaomoji: Use true name of `load-file-name'.

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~pkal/public-inbox/patches/23369/mbox | git am -3
Learn more about email & git

[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.
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: