I see that a few packages, and package.el
use (file-name-directory #$)
. How does Emacs know what directory #$
is? On OSX, that returns Wrong type argument: stringp, nil
.
Excerpt from cl-lib.el
when installing a package evil-mc
through the package manager, which goes into cl-lib-autoloads.el
and then Emacs chokes:
;; First line of defense: try to make sure the built-in cl-lib comes earlier in
;; load-path so we never get loaded:
;;;###autoload (let ((d (file-name-directory #$)))
;;;###autoload (when (member d load-path)
;;;###autoload (setq load-path (append (remove d load-path) (list d)))))
package-autoload-ensure-default-file
, I added(or (and #$ (file-name-directory #$)) ...)
to avoid an error. But, I have no control over fixing the entry incl-lib.el
that the package manager is installing . . . .Lisp error: (wrong-type-argument stringp nil) file-name-directory(nil)
on macOS from(file-name-directory #$)
, but only when using--debug-init
. This is with the emacs-mac port.