emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/jinx 27177e33d9 5/8: Fix compilation warning


From: ELPA Syncer
Subject: [elpa] externals/jinx 27177e33d9 5/8: Fix compilation warning
Date: Wed, 29 Mar 2023 22:58:45 -0400 (EDT)

branch: externals/jinx
commit 27177e33d98515a4144e288f410334063aaebe58
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Fix compilation warning
---
 jinx-mod.c | 3 ++-
 jinx.el    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/jinx-mod.c b/jinx-mod.c
index a73acd3c12..16060df8c0 100644
--- a/jinx-mod.c
+++ b/jinx-mod.c
@@ -116,7 +116,8 @@ static void jinx_langs_cb(const char* const lang_tag,
 }
 
 static emacs_value jinx_langs(emacs_env* env, ptrdiff_t jinx_unused(nargs),
-                              emacs_value args[], void* jinx_unused(data)) {
+                              emacs_value jinx_unused(args[]),
+                              void* jinx_unused(data)) {
     void* data[] = { env, env->intern(env, "nil") };
     enchant_broker_list_dicts(jinx_broker(), jinx_langs_cb, data);
     return data[1];
diff --git a/jinx.el b/jinx.el
index 0d30055de3..0232e0c517 100644
--- a/jinx.el
+++ b/jinx.el
@@ -482,12 +482,12 @@ If VISIBLE is non-nil, only include visible overlays."
           (with-current-buffer (get-buffer-create "*jinx module compilation*")
             (let ((inhibit-read-only t))
               (erase-buffer)
+              (compilation-mode)
               (insert (string-join command " ") "\n")
               (if (equal 0 (apply #'call-process (car command) nil 
(current-buffer) t (cdr command)))
                   (insert (message "Jinx: %s compiled successfully" module))
                 (let ((msg (format "Jinx: Compilation of %s failed" module)))
                   (insert msg)
-                  (compilation-mode)
                   (pop-to-buffer (current-buffer))
                   (error msg)))))))
       (module-load (expand-file-name module)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]