[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/hyperbole fbcfcc04a3 08/16: * hyperbole.el: Preload `kotl
From: |
Stefan Monnier |
Subject: |
[elpa] scratch/hyperbole fbcfcc04a3 08/16: * hyperbole.el: Preload `kotl-autoloads` |
Date: |
Mon, 19 Jun 2023 22:36:45 -0400 (EDT) |
branch: scratch/hyperbole
commit fbcfcc04a3f9d3c2c9ec8e99d8c5d3562c78cea7
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] branch scratch/hyperbole created (now a269d1536e), Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 5206d3b3d4 01/16: * hload-path.el (hyperb:dir): Use `macroexp-file-name`, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 0bf8fd8eee 03/16: Try and avoid using `hyperb:stack-frame`, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole b5780234d9 02/16: * hversion.el (hyperb:path-being-loaded): Delete function, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 60cf4b3ab0 07/16: * hact.el: Fix broken lexical-binding cookie, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 57d02f8456 09/16: hyperbole-autoloads.el: Remove needless definitions, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 5aa8d7a577 10/16: * hycontrol.el (hycontrol-windows-mode-map): Don't autoload, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole fd3f79a9ee 15/16: * hargs.el (hargs:set-string-to-complete): Don't mess with windows, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole ab0338d714 05/16: Fix compilation of test file, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 63e463172e 06/16: (kview:char-visible-p): Delete function, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole fbcfcc04a3 08/16: * hyperbole.el: Preload `kotl-autoloads`,
Stefan Monnier <=
- [elpa] scratch/hyperbole fc7e33b5e5 11/16: * hui-select.el: Fix a few warnings and improve some docstrings, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 12fa8e328d 12/16: (man-show): Fix miscompilation, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 10ac3f59df 13/16: Fix a few minor miscompilations and warnings, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 02335b71bd 14/16: * hyrolo.el: A few cosmetic tweaks, Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole a269d1536e 16/16: * hversion.el: Add FIXMEs., Stefan Monnier, 2023/06/19
- [elpa] scratch/hyperbole 824a71773c 04/16: Get rid of `hyperb:stack-frame`, Stefan Monnier, 2023/06/19