File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -279,12 +279,12 @@ if it appears to be unused."
279
279
(defcustom cljr-before-warming-ast-cache-hook nil
280
280
" Runs before each time the AST is loaded."
281
281
:group 'cljr
282
- :type 'function )
282
+ :type 'hook )
283
283
284
284
(defcustom cljr-after-warming-ast-cache-hook nil
285
285
" Runs after each time the AST is loaded."
286
286
:group 'cljr
287
- :type 'function )
287
+ :type 'hook )
288
288
289
289
; ;; Buffer Local Declarations
290
290
@@ -2680,13 +2680,11 @@ Also adds the alias prefix to all occurrences of public symbols in the namespace
2680
2680
asts-in-bad-state) " ; " ))))))
2681
2681
2682
2682
(defun cljr--warm-ast-cache ()
2683
- (when cljr-before-warming-ast-cache-hook
2684
- (funcall cljr-before-warming-ast-cache-hook))
2683
+ (run-hooks 'cljr-before-warming-ast-cache-hook )
2685
2684
(cljr--call-middleware-async
2686
2685
(cljr--create-msg " warm-ast-cache" )
2687
2686
(lambda (res )
2688
- (when cljr-after-warming-ast-cache-hook
2689
- (funcall cljr-after-warming-ast-cache-hook res))
2687
+ (run-hook-with-args 'cljr-after-warming-ast-cache-hook res)
2690
2688
(cljr--maybe-rethrow-error res)
2691
2689
(cljr--maybe-nses-in-bad-state res)
2692
2690
(when cljr--debug-mode
You can’t perform that action at this time.
0 commit comments