jschaf / esup

ESUP - Emacs Start Up Profiler
400 stars 21 forks source link

Emacs 27.1 unnecessary (package-initialize) error #84

Closed jcs090218 closed 4 years ago

jcs090218 commented 4 years ago

Emacs version above 27.1 you won't need to do (package-initialize) like the code snippet below.

(when (version< "27.1" emacs-version)
  (package-initialize))

But this cause the error for esup. Yet if I just called (package-initialize), then everything work fine.

kiennq commented 4 years ago

You can use something like this

  (when (or (version< emacs-version "27.0")
            (featurep 'esup-child))
    (package-initialize))
jcs090218 commented 4 years ago

This resolved my issue! Thanks! Close this now.