Skip to content

Commit dc30415

Browse files
authored
cleanup (#793)
1 parent 197ea90 commit dc30415

File tree

5 files changed

+18
-24
lines changed

5 files changed

+18
-24
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
2025-10-04 Mats Lidell <matsl@gnu.org>
77

8+
* hyrolo.el (custom):
9+
hyperbole.el (custom): Drop require of custom due to preload.
10+
11+
* hproperty.el: Use declare-function for hattr:get, ibut:map and ebut:map
12+
so require of hbut can be removed to cut dependency cycle.
13+
(custom): Drop not required dependencies.
14+
815
* Makefile (run-bash): Run bash in docker container for use with the
916
docker target.
1017

hproperty.el

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 21-Aug-92
6-
;; Last-Mod: 7-Sep-25 at 16:03:02 by Bob Weiner
6+
;; Last-Mod: 5-Oct-25 at 16:41:34 by Mats Lidell
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -19,18 +19,17 @@
1919

2020
;;; Code:
2121

22-
;; (when noninteractive
23-
;; ;; Don't load this library
24-
;; (with-current-buffer " *load*"
25-
;; (goto-char (point-max))))
22+
(eval-when-compile
23+
(require 'subr-x)) ; For when-let* in Emacs 28.2
24+
(require 'hload-path)
2625

2726
;;; ************************************************************************
28-
;;; Other required Elisp libraries
27+
;;; Public declarations
2928
;;; ************************************************************************
3029

31-
(require 'hload-path)
32-
(require 'custom) ;; For defface.
33-
(require 'hbut)
30+
(declare-function hattr:get "hbut")
31+
(declare-function ibut:map "hbut")
32+
(declare-function ebut:map "hbut")
3433

3534
;; Comment out next line out because this triggers loads of kview
3635
;; which loads klink which contains a defib whose priority should be set

hvar.el

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 1-Oct-91 at 14:00:24
6-
;; Last-Mod: 29-May-24 at 01:08:47 by Bob Weiner
6+
;; Last-Mod: 29-Sep-25 at 20:23:23 by Mats Lidell
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -112,16 +112,8 @@ existed before the change was made."
112112
buf))
113113
(buffer-list)))))
114114

115-
;;; ************************************************************************
116-
;;; Private variables
117-
;;; ************************************************************************
118-
119-
(defvar var::append-list nil
120-
"List of (var-symbol . appended-list) elements saved from this Emacs session.")
121-
122115
(provide 'hvar)
123116

124-
125117
;; `hsettings' and `hvar' have a cyclic dependency; require this after providing 'hvar
126118
;; to avoid an infinite loop.
127119
(require 'hsettings)

hyperbole.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
;; Maintainer: Robert Weiner <rsw@gnu.org>
1010
;; Maintainers: Robert Weiner <rsw@gnu.org>, Mats Lidell <matsl@gnu.org>
1111
;; Created: 06-Oct-92 at 11:52:51
12-
;; Last-Mod: 20-Jun-25 at 00:21:49 by Bob Weiner
12+
;; Last-Mod: 2-Oct-25 at 14:28:52 by Mats Lidell
1313
;; Released: 10-Mar-24
1414
;; Version: 9.0.2pre
1515
;; Keywords: comm, convenience, files, frames, hypermedia, languages, mail, matching, mouse, multimedia, outlines, tools, wp
@@ -83,9 +83,6 @@
8383
(defconst hyperbole-loading t
8484
"Temporary constant available for testing while Hyperbole is loading.")
8585

86-
;; Ensure defgroup and defcustom are defined for use throughout Hyperbole.
87-
(require 'custom)
88-
8986
(defgroup hyperbole nil
9087
"Hyperbole customizations category."
9188
:group 'applications)

hyrolo.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 7-Jun-89 at 22:08:29
6-
;; Last-Mod: 10-Aug-25 at 23:00:16 by Mats Lidell
6+
;; Last-Mod: 2-Oct-25 at 14:26:58 by Mats Lidell
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -32,7 +32,6 @@
3232
;;; Other required Elisp libraries
3333
;;; ************************************************************************
3434

35-
(require 'custom) ;; For `defface'
3635
(require 'hversion)
3736
(require 'hmail)
3837
(require 'hsys-consult)

0 commit comments

Comments
 (0)