From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24471: 25.1.50; Error on empty PATH component Date: Thu, 22 Sep 2016 22:30:09 +0300 Message-ID: <83eg4benr2.fsf@gnu.org> References: <83intrhfc7.fsf@gnu.org> <87ponzlnep.fsf@Rainer.invalid> <87h99blg8d.fsf@Rainer.invalid> <87d1jv7p1r.fsf@Rainer.invalid> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474574967 11386 195.159.176.226 (22 Sep 2016 20:09:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2016 20:09:27 +0000 (UTC) Cc: 24471@debbugs.gnu.org To: Achim Gratz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 22:09:23 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnAIy-0001GL-IB for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2016 22:09:12 +0200 Original-Received: from localhost ([::1]:60036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnAIw-0004Rq-Tn for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Sep 2016 16:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn9i7-0001Pw-EE for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 15:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn9i2-0005rd-Eg for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 15:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn9i2-0005rL-Bf for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 15:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bn9i2-0008Rl-5x for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 15:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Sep 2016 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147457261932420 (code B ref -1); Thu, 22 Sep 2016 19:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2016 19:30:19 +0000 Original-Received: from localhost ([127.0.0.1]:60957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn9hL-0008Qq-HN for submit@debbugs.gnu.org; Thu, 22 Sep 2016 15:30:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn9hK-0008Qe-IP for submit@debbugs.gnu.org; Thu, 22 Sep 2016 15:30:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn9hE-000508-7b for submit@debbugs.gnu.org; Thu, 22 Sep 2016 15:30:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn9hE-0004yA-52 for submit@debbugs.gnu.org; Thu, 22 Sep 2016 15:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn9hB-0008Pj-U4 for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 15:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn9h7-0004nk-Hj for bug-gnu-emacs@gnu.org; Thu, 22 Sep 2016 15:30:09 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn9h7-0004mc-EE; Thu, 22 Sep 2016 15:30:05 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2004 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bn9h2-0005dd-RW; Thu, 22 Sep 2016 15:30:04 -0400 In-reply-to: <87d1jv7p1r.fsf@Rainer.invalid> (message from Achim Gratz on Thu, 22 Sep 2016 20:44:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123560 Archived-At: > From: Achim Gratz > Date: Thu, 22 Sep 2016 20:44:00 +0200 > > Here's the (redacted) backtrace leading to the error I encountered. > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > directory-file-name(nil) > mapcar(directory-file-name ("c:/WINDOWS/SYSTEM32/" "c:/WINDOWS/" "c:/WINDOWS/SYSTEM32/WBEM/" nil "c:/Local_Install/share/emacs-25.1/libexec/emacs/25.1/x86_64-w64-mingw32/")) > eval((mapcar (quote directory-file-name) (append (parse-colon-path (getenv "PATH")) (list exec-directory)))) > custom-push-theme(theme-value exec-path user set (quote ("/usr/bin"))) > custom-theme-set-variables(user ((exec-path (quote ("/usr/bin"))))) > apply(custom-theme-set-variables user ((exec-path (quote ("/usr/bin"))))) > custom-set-variables((exec-path (quote ("/usr/bin")))) > eval-buffer(# nil "//server/Gratz/GNU/.emacs" nil t) ; Reading at buffer position 3839 Thanks. Does the patch below fix the problem? diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 001d638..bd2b280 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -174,8 +174,10 @@ minibuffer-prompt-properties--setter nil :standard (mapcar 'directory-file-name - (append (parse-colon-path (getenv "PATH")) - (list exec-directory)))) + (delq nil + (append + (parse-colon-path (getenv "PATH")) + (list exec-directory))))) (exec-suffixes execute (repeat string)) ;; charset.c (charset-map-path installation