diff options
author | Eli Zaretskii <eliz@gnu.org> | 2024-07-05 22:00:08 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-07-05 22:00:08 +0300 |
commit | 814710067f0558e308c7020b22e455fe0ece7878 (patch) | |
tree | e9cc69c20b2fa6cc735192fe3b406f2b54c18a7e /lisp/emacs-lisp/comp-run.el | |
parent | cefec59df7b24887496dafc32eae69083dfa60f2 (diff) | |
download | emacs-814710067f0558e308c7020b22e455fe0ece7878.tar.gz emacs-814710067f0558e308c7020b22e455fe0ece7878.tar.bz2 emacs-814710067f0558e308c7020b22e455fe0ece7878.zip |
Improve warnings from native compiler
* src/comp.c (syms_of_comp) <native-compiler>: Rename from 'comp'.
* src/lread.c (maybe_swap_for_eln):
* lisp/emacs-lisp/comp.el (comp--fwprop):
* lisp/emacs-lisp/comp-run.el
(comp--accept-and-process-async-output, native--compile-async):
Adjust to the new symbol.
Diffstat (limited to 'lisp/emacs-lisp/comp-run.el')
-rw-r--r-- | lisp/emacs-lisp/comp-run.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/comp-run.el b/lisp/emacs-lisp/comp-run.el index 8e08eca7442..17a9ab71f7e 100644 --- a/lisp/emacs-lisp/comp-run.el +++ b/lisp/emacs-lisp/comp-run.el @@ -195,7 +195,7 @@ processes from `comp-async-compilations'" (if native-comp-async-report-warnings-errors (let ((warning-suppress-types (if (eq native-comp-async-report-warnings-errors 'silent) - (cons '(comp) warning-suppress-types) + (cons '(native-compiler) warning-suppress-types) warning-suppress-types)) (regexp (if (eq native-comp-async-warnings-errors-kind 'all) "^.*?\\(?:Error\\|Warning\\): .*$" @@ -211,7 +211,7 @@ processes from `comp-async-compilations'" (accept-process-output process) (goto-char (or comp-last-scanned-async-output (point-min))) (while (re-search-forward regexp nil t) - (display-warning 'comp (match-string 0))) + (display-warning 'native-compiler (match-string 0))) (setq comp-last-scanned-async-output (point-max))))) (accept-process-output process))) @@ -446,7 +446,7 @@ bytecode definition was not changed in the meantime)." (setf comp-files-queue (append comp-files-queue `((,file . ,load))) added-something t) - (display-warning 'comp + (display-warning 'native-compiler (format "No write access for %s skipping." out-filename))))))) ;; Perhaps nothing passed `native--compile-async-skip-p'? |