Fixes #10723 - Properly check for executable rather than file (#10735)

Given the executable name is "emacs", now this executable will be auto located
as per the PATH environment variable.
This commit is contained in:
Compro Prasad 2018-06-01 08:47:46 +05:30 committed by Sylvain Benner
parent 390462e36d
commit 13633b081b
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,7 @@ or `spacemacs'.")
to compile Emacs 27 from source following the instructions in file to compile Emacs 27 from source following the instructions in file
EXPERIMENTAL.org at to root of the git repository.") EXPERIMENTAL.org at to root of the git repository.")
(defvar dotspacemacs-emacs-pdumper-executable-file "emacs" (defvar dotspacemacs-emacs-pdumper-executable-file "emacs-27.0.50"
"File path pointing to emacs 27.1 executable compiled with support for the "File path pointing to emacs 27.1 executable compiled with support for the
portable dumper (this is currently the branch pdumper.") portable dumper (this is currently the branch pdumper.")

View File

@ -60,7 +60,9 @@ You should not used this function, it is reserved for some specific process."
(defun spacemacs/emacs-with-pdumper-set-p () (defun spacemacs/emacs-with-pdumper-set-p ()
"Return non-nil if a portable dumper capable emacs executable is set." "Return non-nil if a portable dumper capable emacs executable is set."
(and dotspacemacs-enable-emacs-pdumper (and dotspacemacs-enable-emacs-pdumper
(file-exists-p dotspacemacs-emacs-pdumper-executable-file))) (file-exists-p
(locate-file dotspacemacs-emacs-pdumper-executable-file
exec-path exec-suffixes 'file-executable-p))))
(defun spacemacs/dump-emacs () (defun spacemacs/dump-emacs ()
"Dump emacs in a subprocess." "Dump emacs in a subprocess."