Skip to content

Commit

Permalink
Only apply workaround for "seq" reloading bug in Emacs 29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 10, 2023
1 parent 3dc9b7b commit 4685c9e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lisp/init-elpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ advice for `require-package', to which ARGS are passed."
;; reload cleanly due to not finding seq-25.el, breaking first-time
;; start-up
;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67025
(defun sanityinc/reload-previously-loaded-with-load-path-updated (orig pkg-desc)
(let ((load-path (cons (package-desc-dir pkg-desc) load-path)))
(funcall orig pkg-desc)))
(when (string= "29.1" emacs-version)
(defun sanityinc/reload-previously-loaded-with-load-path-updated (orig pkg-desc)
(let ((load-path (cons (package-desc-dir pkg-desc) load-path)))
(funcall orig pkg-desc)))

(advice-add 'package--reload-previously-loaded :around
'sanityinc/reload-previously-loaded-with-load-path-updated)
(advice-add 'package--reload-previously-loaded :around
'sanityinc/reload-previously-loaded-with-load-path-updated))



Expand Down

0 comments on commit 4685c9e

Please sign in to comment.