branch: elpa/flymake-collection
commit 91bb971e9e6fea01858714063875cb1522918435
Author: Mohsin Kaleem <mohk...@kisara.moe>
Commit: Mohsin Kaleem <mohk...@kisara.moe>

    (cleanup): Consistent use of executable-find
    
    Also added a missing require to =flymake-rest-parse-rx.el=.
---
 checkers/flymake-rest-lua.el      | 2 +-
 checkers/flymake-rest-luacheck.el | 2 +-
 flymake-rest-parse-rx.el          | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/checkers/flymake-rest-lua.el b/checkers/flymake-rest-lua.el
index 1e4697f4ee..13630184b4 100644
--- a/checkers/flymake-rest-lua.el
+++ b/checkers/flymake-rest-lua.el
@@ -38,7 +38,7 @@ See URL `http://www.lua.org/'."
   :pre-check (unless lua-exec
                (user-error "Cannot find lua compiler executable"))
   :write-type 'pipe
-  :command '("luac" "-p" "-")
+  :command `(,lua-exec "-p" "-")
   :error-parser
   (flymake-rest-parse-rx
    ((error bol
diff --git a/checkers/flymake-rest-luacheck.el 
b/checkers/flymake-rest-luacheck.el
index 84aab17640..e2591ab587 100644
--- a/checkers/flymake-rest-luacheck.el
+++ b/checkers/flymake-rest-luacheck.el
@@ -56,7 +56,7 @@ See URL `https://github.com/mpeterv/luacheck'."
   :pre-check (unless luacheck-exec
                (error "Cannot find luacheck executable"))
   :write-type 'pipe
-  :command `("luacheck"
+  :command `(,luacheck-exec
              "--formatter" "plain"
              "--codes"                   ; Show warning codes
              "--no-color"
diff --git a/flymake-rest-parse-rx.el b/flymake-rest-parse-rx.el
index 10bffcadad..f2a710ae34 100644
--- a/flymake-rest-parse-rx.el
+++ b/flymake-rest-parse-rx.el
@@ -33,6 +33,8 @@
 
 ;;; Code:
 
+(require 'rx)
+
 (defconst flymake-rest-parse-rx-constituents
   `((file-name ,(lambda (body)
                   (rx-to-string

Reply via email to