plexus / chemacs2

Emacs version switcher, improved
779 stars 47 forks source link

chemacs-profile-paths used instead of chemacs-default-profile-paths #11

Closed whxvd closed 3 years ago

whxvd commented 3 years ago

The line

(defvar chemacs-default-profile-path (or (car (seq-filter 'file-exists-p chemacs-profiles-paths)) (car chemacs-profiles-paths)))

uses chemacs-profile-paths. But it should use chemacs-default-profile-paths.

ksafford commented 3 years ago

I believe this may be the cause of an issue I experience: When starting emacs without a --with-profile flag I get

Wrong type argument: symbolp, ((spacemacs (user-emacs-directory . ~/spacemacs) (env (SPACEMACSDIR . ~/.spacemacs.d))))

despite having spacemacs in .emacs-profile

But things work as expected setting when specifying --with-profile spacemacs.

If this is the same issue, is there anything I can do to help out?

whxvd commented 3 years ago

@ksafford: Yes, it is the cause of the error you experience. You can try PR #12 which fixes all currently reported issues.

ksafford commented 3 years ago

Thanks, I can confirm this PR resolves the issue as well as several warnings and, as noted, doesn't run init files multiple times anymore. Nice work.

plexus commented 3 years ago

12 was merged so I'll close this. Please post a new issue if you still run into problems. Thanks!