branch: externals/hyperbole
commit e09292484ed3e0782923fdaa45e7f4ad9064755e
Author: Stefan Monnier <[email protected]>
Commit: Mats Lidell <[email protected]>
* hload-path.el (hyperb:dir): Use `macroexp-file-name`
---
hload-path.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hload-path.el b/hload-path.el
index 3e9f4f0935..b71239b7a9 100644
--- a/hload-path.el
+++ b/hload-path.el
@@ -42,7 +42,9 @@ Use `hyperb:wsl-os-p' to test if running under WSL.")
;;; ************************************************************************
(defvar hyperb:dir (or (file-name-directory
- (or (and (stringp load-file-name) load-file-name)
+ (or (if (fboundp 'macroexp-file-name) ;Emacsā„28
+ (macroexp-file-name)
+ (and (stringp load-file-name) load-file-name))
(locate-file "hmouse-tag.el" load-path)
(hyperb:path-being-loaded)
""))