elscreen require error
When I load elscreen with (require 'elscreen).
But got this error:
Debugger entered--Lisp error: (wrong-type-argument consp nil)
byte-code
#<subr require>(elscreen nil t)
ad-Advice-require(#<subr require> elscreen nil t)
apply(ad-Advice-require #<subr require> (elscreen nil t))
require(elscreen nil t)
(not (require 'elscreen nil 't))
It looks like you have added some advice to the require function. The error is happening within the advice. Can you reproduce the error without the advice? Or even better, with emacs -q?
I tested with emacs -q, it does not have error.
I'm using use-package to managing packages. I guess use-package macro add advice around require.
But use-package can work on other packages.
I am also using use-package to load elscreen and have seen no issues. Just tested with latest versions of use-package and elscreen to confirm. You will probably need to provide detailed steps to reproduce the issue.
Also, consider deleting your ~/.emacs.d/elpa folder and starting fresh, just in case your installation of elscreen or use-package is somehow corrupt or out-of-date. If you are switching from emacs-24 to emacs-25, that would also be a good reason to re-install/re-compile everything in your elpa/ folder.
I tried to delete elscreen and reinstall it. But got compilation error:
Leaving directory ‘/home/stardiviner/.emacs.d/elpa/elscreen-20160613.251’
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-buffer-list.el at Tue Sep 20 12:28:41 2016
Entering directory ‘/home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/’
elscreen-buffer-list.el:17:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-color-theme.el at Tue Sep 20 12:28:41 2016
elscreen-color-theme.el:25:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-dired.el at Tue Sep 20 12:28:41 2016
elscreen-dired.el:26:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-dnd.el at Tue Sep 20 12:28:42 2016
elscreen-dnd.el:26:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-gf.el at Tue Sep 20 12:28:42 2016
elscreen-gf.el:28:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-goby.el at Tue Sep 20 12:28:42 2016
elscreen-goby.el:26:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-howm.el at Tue Sep 20 12:28:42 2016
elscreen-howm.el:26:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-server.el at Tue Sep 20 12:28:42 2016
elscreen-server.el:28:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-speedbar.el at Tue Sep 20 12:28:42 2016
elscreen-speedbar.el:25:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-w3m.el at Tue Sep 20 12:28:42 2016
elscreen-w3m.el:26:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen-wl.el at Tue Sep 20 12:28:43 2016
elscreen-wl.el:26:1:Error: Wrong type argument: consp, nil
Compiling file /home/stardiviner/.emacs.d/elpa/elscreen-20160613.251/elscreen.el at Tue Sep 20 12:28:43 2016
Compiling no file at Tue Sep 20 12:29:05 2016