[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/hyperbole 0670cc54b0 09/15: * hyperbole.el: Preload `kotl
|
From: |
Stefan Monnier |
|
Subject: |
[elpa] scratch/hyperbole 0670cc54b0 09/15: * hyperbole.el: Preload `kotl-autoloads` |
|
Date: |
Sun, 21 May 2023 18:50:54 -0400 (EDT) |
branch: scratch/hyperbole
commit 0670cc54b03ab70ad96af85e2807d1ec078e633f
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 91a371631a 15/15: * hyrolo.el: A few cosmetic tweaks, (continued)
- [elpa] scratch/hyperbole 91a371631a 15/15: * hyrolo.el: A few cosmetic tweaks, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole c4c9abe70f 03/15: Try and avoid using `hyperb:stack-frame`, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 96b7ce0f45 04/15: (kotl-mode:pre-self-insert-command): Use buffer-locally at top-level, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 9a148b300e 02/15: * hversion.el (hyperb:path-being-loaded): Delete function, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 7927b78a42 06/15: Fix compilation of test file, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 30fbe524e5 07/15: (kview:char-visible-p): Delete function, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole d9a32c26f3 08/15: * hact.el: Fix broken lexical-binding cookie, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 8763db49e1 10/15: hyperbole-autoloads.el: Remove needless definitions, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 1ee361c05d 11/15: * hycontrol.el (hycontrol-windows-mode-map): Don't autoload, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 04f3fdc53d 14/15: Fix a few minor miscompilations and warnings, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 0670cc54b0 09/15: * hyperbole.el: Preload `kotl-autoloads`,
Stefan Monnier <=
- [elpa] scratch/hyperbole 967814d82e 13/15: (man-show): Fix miscompilation, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 3252a81433 12/15: * hui-select.el: Fix a few warnings and improve some docstrings, Stefan Monnier, 2023/05/21