I use Emacs 27.2 on Windows 10. Working with packages used to work, but now I am getting
Failed to download ‘gnu’ archive., when calling for instance
M-x toggle-debug-on-error, and in the call stack I see
Debugger entered--Lisp error: (wrong-type-argument listp \357\273\277) So the BOM symbol is involved.
I have confirmed that running
emacs -Q makes the error go away. So then I have stripped my init file to contain only:
(setq user-emacs-directory "C:/users/avpas/.emacs.d") (add-to-list 'load-path "~/.emacs.d")
To clearify, my
HOME is set to other than
C:/users/avpas. At this point, the error persists, but goes away when I remove the first row
(setq user-emacs-directory "C:/users/avpas/.emacs.d").