Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace if-let and when-let with starred versions #2132

Merged
merged 1 commit into from
Dec 11, 2017

Conversation

xiongtx
Copy link
Member

@xiongtx xiongtx commented Dec 11, 2017

Emacs 26 obsoletes if-let and when-let, replacing them with if-let* and when-let*. This raises byte-compilation warnings (treated as errors) when testing against Emacs 26.

@xiongtx xiongtx force-pushed the 2130-if-let-when-let branch 2 times, most recently from c7a976e to fcbaadb Compare December 11, 2017 09:23
CHANGELOG.md Outdated
@@ -14,6 +14,7 @@
* [#2078](https://github.com/clojure-emacs/cider/pull/2078): Improve startup time by bundling together sync requests during startup.
* `cider-rotate-default-connection` will warn if you use it with only a single active connection.
* `cider-format-buffer` preserves the point position.
* [#2132](https://github.com/clojure-emacs/cider/pull/2132): Replace `if-let` and `when-let` with starred versions [per Emacs 26](http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-26#n1278).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not a user-visible change, so we shouldn't put in in the changelog.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(format (concat " " cider-eval-result-prefix "%s "))
(prepend-face 'cider-result-overlay-face)
&allow-other-keys)
(format (concat " " cider-eval-result-prefix "%s "))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems unrelated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should all get in the good habit of putting whitespace-cleanup in before-save-hook 😛.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I get how this happened, I just don't unrelated changes in commits. Btw, even the fixed indentation seems wrong for some reason. cl-defun should be indented as defun.

@xiongtx xiongtx force-pushed the 2130-if-let-when-let branch from fcbaadb to 26c6d0b Compare December 11, 2017 09:43
Fix clojure-emacs#2130.

Emacs 26 obsoletes `if-let` and `when-let`, replacing them with `if-let*` and
`when-let*`. This raises byte-compilation warnings (treated as errors) when
testing against Emacs 26.

See: http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-26#n1278
@xiongtx xiongtx force-pushed the 2130-if-let-when-let branch from 26c6d0b to ab1bbdd Compare December 11, 2017 10:04
@bbatsov bbatsov merged commit b34057a into clojure-emacs:master Dec 11, 2017
@bbatsov
Copy link
Member

bbatsov commented Dec 11, 2017

Thanks for taking care of this, @xiongtx! You rock! 🎸

@xiongtx xiongtx deleted the 2130-if-let-when-let branch December 11, 2017 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants