Skip to content

Commit

Permalink
Stop handling seq-25 loading bug with Emacs 29.1
Browse files Browse the repository at this point in the history
Eldev 1.8 handles that
  • Loading branch information
Silex committed Nov 19, 2023
1 parent 2def2ab commit 41b43ae
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Eldev
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,5 @@
(eldev-use-package-archive 'melpa)
(eldev-use-package-archive 'gnu-elpa)

;; Fix bug with Emacs 29.1 (see https://github.com/emacs-eldev/eldev/issues/93)
(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-match-p (regexp-quote "29.1") (emacs-version))
(advice-add 'package--reload-previously-loaded :around
'sanityinc/reload-previously-loaded-with-load-path-updated))

(with-eval-after-load 'bytecomp
(setf byte-compile-warnings '(not docstrings)))

0 comments on commit 41b43ae

Please sign in to comment.