[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
- [elpa] branch scratch/hyperbole created (now a823391b89), Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole 6865cd9499 03/12: Try and avoid using `hyperb:stack-frame`, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole 4917563d26 05/12: (kview:char-invisible-p): Stop using function, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole f00a0feb2e 07/12: hyperbole-autoloads.el: Remove needless definitions, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole 15c6dd1d49 02/12: * hversion.el (hyperb:path-being-loaded): Delete function, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole c40109f9b6 10/12: * hbut.el (defib): Remove redundant indent property, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole 580e459502 04/12: Get rid of `hyperb:stack-frame`, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole 557cf93559 06/12: * hyperbole.el: Preload `kotl-autoloads`,
Stefan Monnier <=
- [elpa] scratch/hyperbole 202a3f9404 08/12: * hui-select.el: Fix a few warnings and improve some docstrings, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole fa47424e75 09/12: hactypes.el (rfc-toc): Remove redundant `buffer-read-only` let-binding, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole 16e0be430c 11/12: * hyrolo.el: A few cosmetic tweaks, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole f8f407a69f 01/12: * hload-path.el (hyperb:dir): Use `macroexp-file-name`, Stefan Monnier, 2023/06/27
- [elpa] scratch/hyperbole a823391b89 12/12: * hversion.el (hyperb:automount-prefixes): Remove unused var., Stefan Monnier, 2023/06/27