Skip to content

Commit

Permalink
Add warning on parinfer-rust v0.4.3 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed Mar 29, 2024
1 parent 5c57010 commit 57e3ec0
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions parinfer-rust-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,18 @@ library was downloaded."
If SUPPORTED-VERSIONS is not compatible with CURRENT-VERSION,
offer to download the LIB-NAME to LIBRARY-LOCATION."
(when (and current-version
(not (member-ignore-case
current-version
supported-versions))
(and
(not (parinfer-rust--test-p))
(yes-or-no-p parinfer-rust--outdated-version)))
(parinfer-rust--download-from-github (car supported-versions) library-location lib-name)
(message "A new version has been downloaded, you will need to reload Emacs for the changes to take effect.")))
(if (and current-version
(not (member-ignore-case
current-version
supported-versions))
(and
(not (parinfer-rust--test-p))
(yes-or-no-p parinfer-rust--outdated-version)))
(parinfer-rust--download-from-github (car supported-versions) library-location lib-name)
(message "A new version has been downloaded, you will need to reload Emacs for the changes to take effect.")
(and (string= "0.4.3" current-version)
(display-warning '(parinfer-rust-mode)
"parinfer-rust-mode now relies on a fork of parinfer-rust and has dropped support for v0.4.3.\nPlease go to https://github.com/justinbarclay/parinfer-rust/discussions/9 to find out more."))))

(defun parinfer-rust--download-from-github (parinfer-rust-version
library-location
Expand Down

0 comments on commit 57e3ec0

Please sign in to comment.