[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/hyperbole d290f19c21 09/15: * hyperbole.el: Preload `kotl
|
From: |
Stefan Monnier |
|
Subject: |
[elpa] scratch/hyperbole d290f19c21 09/15: * hyperbole.el: Preload `kotl-autoloads` |
|
Date: |
Mon, 29 May 2023 23:02:02 -0400 (EDT) |
branch: scratch/hyperbole
commit d290f19c218f006aeeeb61bc9e158b5daa8b8889
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 | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/hyperbole.el b/hyperbole.el
index a9fc5f0cf3..088ddbfbb6 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.")
@@ -154,9 +157,7 @@ Info documentation at \"(hyperbole)Top\".
\\{hyperbole-mode-map}"
:global t
- :keymap 'hyperbole-mode-map
:lighter hyperbole-mode-lighter
- :require 'hyperbole
(if hyperbole-mode
(hyperbole--enable-mode)
(hyperbole--disable-mode)))
@@ -562,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] scratch/hyperbole b1db025326 01/15: * hload-path.el (hyperb:dir): Use `macroexp-file-name`, (continued)
- [elpa] scratch/hyperbole b1db025326 01/15: * hload-path.el (hyperb:dir): Use `macroexp-file-name`, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole f519cae205 03/15: Try and avoid using `hyperb:stack-frame`, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 8894d83051 04/15: (kotl-mode:pre-self-insert-command): Use buffer-locally at top-level, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 963c6313d5 05/15: Get rid of `hyperb:stack-frame`, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 762fb43807 07/15: (kview:char-visible-p): Delete function, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 21746cca6a 08/15: * hact.el: Fix broken lexical-binding cookie, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 63a7e27454 11/15: * hycontrol.el (hycontrol-windows-mode-map): Don't autoload, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole e2d8b5e555 14/15: Fix a few minor miscompilations and warnings, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 7f44544723 10/15: hyperbole-autoloads.el: Remove needless definitions, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole 4bdcd214e3 15/15: * hyrolo.el: A few cosmetic tweaks, Stefan Monnier, 2023/05/29
- [elpa] scratch/hyperbole d290f19c21 09/15: * hyperbole.el: Preload `kotl-autoloads`,
Stefan Monnier <=