You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't have an opportunity to read the entire thread.
You probably use an emacs version >= 26.1 for development.
Maybe an alias would work for the when-let*?
I quickly threw this together, but don't know how correct it is. It's not tested...
(require'subr-x)
(when (or (< emacs-major-version 26)
(and (= emacs-major-version 26) (< emacs-minor-version 1)))
;; `when-let' was summarily replaced with `when-let*' in emacs 26.1;; with no define-obsolete-function-alias so other developers are forced to use when-let*;; leaving users of older emacs versions in a lurch.
(defalias'when-let*'when-let ))
The other option is just to increase the ;; Package-Requires to ((emacs "26.1"))
The text was updated successfully, but these errors were encountered:
The version requirement is definitely wrong. I think it's kind of confusing: it looks like it got de-obsoleted in this commit: emacs-mirror/emacs@441fe20 I'm used to the usual relationship between let and let* forms, but it seems that when-let always meant the same thing as when-let*.
Yeah the "history of if-let/if-let*, when-let/when-let* is very odd.
I think since you changed to using when-let, you don't also need to rev the minimum emacs-version required.
edit: never mind. I don't know when the "first iteration" of when-let entered emacs, so the emacs version is also probably correct.
I will, of course, leave it up to you. Thanks for the addition to the cmake-mode.
Emacs authors decided to completely remove
when-let
andif-let
in 26.1, and replaced them withwhen-let*
andif-let*
fromsubr-x.el
when-let*
,if-let*
.when-let
andif-let
when-let*
,if-let*
when-let
,if-let
IMHO, this was sort of a silly, poorly thought-out obsolescence on the emacs hackers part, but thought you'd like to know.
They must have had their reasons. Maybe this thread will tell us why: https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00052.html
I didn't have an opportunity to read the entire thread.
You probably use an emacs version >= 26.1 for development.
Maybe an alias would work for the
when-let*
?I quickly threw this together, but don't know how correct it is. It's not tested...
The other option is just to increase the
;; Package-Requires to ((emacs "26.1"))
The text was updated successfully, but these errors were encountered: