emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil no longer allowed in load-path?


From: Ulrich Mueller
Subject: Re: nil no longer allowed in load-path?
Date: Sun, 9 Nov 2014 22:27:56 +0100

>>>>> On Sun, 9 Nov 2014, Ulrich Mueller wrote:

>    $ emacs -Q --batch --eval "(add-to-list 'load-path nil)"
>    Wrong type argument: stringp, nil

Looks like a missing test in startup.el, function command-line:

--- emacs-24.4/lisp/startup.el~
+++ emacs-24.4/lisp/startup.el
@@ -1319,6 +1319,7 @@
   (let (warned)
     (dolist (dir load-path)
       (and (not warned)
+          (stringp dir)
           (string-match-p "/[._]emacs\\.d/?\\'" dir)
           (string-equal (file-name-as-directory (expand-file-name dir))
                         (expand-file-name user-emacs-directory))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]