emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] scratch/hyperbole 557cf93559 06/12: * hyperbole.el: Preload `kotl


From: Stefan Monnier
Subject: [elpa] scratch/hyperbole 557cf93559 06/12: * hyperbole.el: Preload `kotl-autoloads`
Date: Tue, 27 Jun 2023 17:38:40 -0400 (EDT)

branch: scratch/hyperbole
commit 557cf93559e2d376cb792f7a63af8683726b044b
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * hyperbole.el: Preload `kotl-autoloads`
    
    (hyperbole-mode): Remove redundant keywords.
---
 hyperbole.el | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/hyperbole.el b/hyperbole.el
index 220ff8de93..5f717c0f77 100644
--- a/hyperbole.el
+++ b/hyperbole.el
@@ -78,6 +78,9 @@
 ;;; Start Initializations
 ;;; ************************************************************************
 
+;; FIXME: Just loading `hyperbole-autoloads.el' eagerly loads `hhist.el',
+;; `set.el', and `hact.el'.
+
 (defconst hyperbole-loading t
   "Temporary constant available for testing while Hyperbole is loading.")
 
@@ -560,6 +563,19 @@ frame, those functions by default still return the prior 
frame."
 
 (makunbound 'hyperbole-loading)
 
+;; Autoload this form so that when `package.el' activates Hyperbole's autoloads
+;; it also sets up Kotl's autoloads.
+;;;###autoload
+(let ((us (if (fboundp 'macroexp-file-name)
+              (macroexp-file-name) load-file-name)))
+  (when us
+    ;; FIXME: Contrary to the usual ELPA autoloads files, `kotl-autoloads'
+    ;; does not add its directory to `load-path', so let's do it here by
+    ;; hand.
+    (add-to-list 'load-path
+                 (expand-file-name "kotl" (file-name-directory us)))
+    (require 'kotl-autoloads nil t)))
+
 (provide 'hyperbole)
 
 ;;; hyperbole.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]