Skip to content

Commit

Permalink
tweak(builtin): cache the downloaded loaddefs-gen.el file
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 9, 2024
1 parent b7e0739 commit 0d26f30
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ or file path may exist now."
;; Due to a bug in Emacs 29.1, you must apply the following change prior
;; installation or upgrading TRAMP 2.7.0 from GNU ELPA:
;; gnu.org/software/tramp/#ELPA-Installation
(when (version= emacs-version "29.1")
(with-current-buffer
(url-retrieve-synchronously
"https://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/loaddefs-gen.el?h=emacs-29")
(goto-char (point-min))
(while (looking-at "^.+$") (forward-line))
(eval-region (point) (point-max))))
(when-let ((_ (version= emacs-version "29.1"))
(dir (+package-download-from-urls
'emacs-29.1-loaddefs-gen-fix
"https://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/loaddefs-gen.el?h=emacs-29")))
(with-temp-buffer
(insert-file-contents (expand-file-name "loaddefs-gen.el" dir))
(eval-region (point-min) (point-max))))

(use-package tramp
:straight t
Expand Down

0 comments on commit 0d26f30

Please sign in to comment.