emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit 5ec9ae91f6: Inform users if they have to manual


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 5ec9ae91f6: Inform users if they have to manually upgrade seq
Date: Fri, 1 Dec 2023 21:59:31 -0500 (EST)

branch: elpa/git-commit
commit 5ec9ae91f6111e34e66e7adc2acc3f9c721af8d6
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Inform users if they have to manually upgrade seq
---
 lisp/magit-section.el | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 39639bcfc7..b8ba11d960 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -55,6 +55,35 @@
            (not (fboundp 'seq-keep)))
   (unload-feature 'seq 'force))
 (require 'seq)
+;; Furthermore, by default `package' just silently refuses to upgrade.
+(unless (fboundp 'seq-keep)
+  (display-warning 'magit (substitute-command-keys "\
+Magit requires `seq' >= 2.24, but due to
+bad defaults, Emacs' package manager, refuses to upgrade this
+and other built-in packages to higher releases from GNU Elpa.
+
+To fix this, you have to add this to your init file:
+
+  (setq package-install-upgrade-built-in t)
+
+Then evaluate that expression by placing the cursor after it
+and typing \\[eval-last-sexp].
+
+Once you have done that, you have to explicitly upgrade `seq':
+
+  \\[package-upgrade] seq \\`RET'
+
+Then you also must make sure the updated version is loaded,
+by evaluating this form
+
+  (progn (unload-feature 'seq t) (require 'seq))
+
+Until you do this, you will get random errors about `seq-keep'
+being undefined while using Magit.
+
+If you don't use the `package' package manager but still get
+this warning, then that other package manager likely has a
+similar defect.") :emergency))
 
 (require 'cursor-sensor)
 (require 'format-spec)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]