From b73f4668ab685dfb690eced15b20ed47f90efccb Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 16 Oct 2016 18:56:06 -0700 Subject: [PATCH] * lisp/cus-start.el (exec-path): Handle nil elements. (Bug#24471) --- lisp/cus-start.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 001d638ca14..a8bcc458649 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -173,7 +173,9 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of (directory :format "%v"))) nil :standard - (mapcar 'directory-file-name + (mapcar (lambda (f) + (if f (directory-file-name f) + ".")) (append (parse-colon-path (getenv "PATH")) (list exec-directory)))) (exec-suffixes execute (repeat string)) -- 2.39.2