Skip to content

Commit cdaba19

Browse files
authored
Merge pull request #162 from emacs-twist/comp-run-renames
fix: Update on renaming functions in upstream comp-run.el
2 parents 4c16ff2 + 3aeeae4 commit cdaba19

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkgs/emacs/build/comp-native.el

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44
;;
55
;; Based on code from https://www.emacswiki.org/emacs/GccEmacs#h5o-14
66

7+
(require 'comp-run)
8+
9+
(if (fboundp 'comp--async-runnings)
10+
(defalias 'twist--comp-async-runnings #'comp--async-runnings)
11+
(defalias 'twist--comp-async-runnings #'comp-async-runnings))
12+
713
(defun run-native-compile-sync ()
8-
(require 'bytecomp)
9-
(require 'comp)
1014
(native-compile-async (or (pop command-line-args-left)
1115
(error "Specify a source directory as the argument"))
1216
nil nil
1317
(lambda (name)
1418
(and (string-match-p "^[^.]" (file-name-nondirectory name))
1519
(not (string-suffix-p "-pkg.el" name)))))
1620
(while (or comp-files-queue
17-
(> (comp-async-runnings) 0))
21+
(> (twist--comp-async-runnings) 0))
1822
;; Calibration may be needed
1923
(sleep-for 0.3)))

0 commit comments

Comments
 (0)