all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* nil no longer allowed in load-path?
@ 2014-11-09 21:09 Ulrich Mueller
  2014-11-09 21:27 ` Ulrich Mueller
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2014-11-09 21:09 UTC (permalink / raw)
  To: emacs-devel

While investigating why ECB wouldn't compile any more with recent
Emacs versions, I stumbled upon this:

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

This happens both with 24.4 and the trunk version, but not with 24.3.
The documentation for load-path seems to say that nil is legal as an
element.

Feature or bug?

Ulrich



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nil no longer allowed in load-path?
  2014-11-09 21:09 nil no longer allowed in load-path? Ulrich Mueller
@ 2014-11-09 21:27 ` Ulrich Mueller
  2014-11-10  7:13   ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2014-11-09 21:27 UTC (permalink / raw)
  To: emacs-devel

>>>>> 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))



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nil no longer allowed in load-path?
  2014-11-09 21:27 ` Ulrich Mueller
@ 2014-11-10  7:13   ` Glenn Morris
  0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2014-11-10  7:13 UTC (permalink / raw)
  To: Ulrich Mueller; +Cc: emacs-devel


Fixed.

Please report bugs and suspected bugs to bug-gnu-emacs, not emacs-devel.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-10  7:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-09 21:09 nil no longer allowed in load-path? Ulrich Mueller
2014-11-09 21:27 ` Ulrich Mueller
2014-11-10  7:13   ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.