Skip to content

Commit

Permalink
Better workaround for seq-25 loading woes in first-time startup
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 2, 2023
1 parent cdaf016 commit 577b105
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lisp/init-elpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,18 @@ advice for `require-package', to which ARGS are passed."

(advice-add 'require-package :around 'sanityinc/note-selected-package)

;; Work around an issue in Emacs 29 where this gets implicitly

;; Work around an issue in Emacs 29 where seq gets implicitly
;; reinstalled via the rg -> transient dependency chain, but fails to
;; reload cleanly, breaking first-time start-up
(require-package 'seq "2.24")
;; reload cleanly due to not finding seq-25.el, breaking first-time
;; start-up
(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)


(when (fboundp 'package--save-selected-packages)
(require-package 'seq)
Expand Down

0 comments on commit 577b105

Please sign in to comment.