Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tlikonen/wcheck-mode
Browse files Browse the repository at this point in the history
* 'master' of github.com:tlikonen/wcheck-mode:
  Allow exec-path search to find external program

Conflicts:
	wcheck-mode.el
  • Loading branch information
tlikonen committed Oct 15, 2015
2 parents 03ea5f1 + 011219f commit 029b031
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wcheck-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -2018,10 +2018,10 @@ a (valid) value for the KEY then query the value from

(defun wcheck--program-executable-p (program)
"Return non-nil if PROGRAM is executable regular file."
(when (stringp program)
(let ((f (executable-find program)))
(and (file-regular-p f)
(file-executable-p f)))))
(and (stringp program)
(or (and (file-regular-p program)
(file-executable-p program))
(executable-find program))))


(defun wcheck--program-configured-p (language)
Expand Down

0 comments on commit 029b031

Please sign in to comment.