Skip to content

Commit

Permalink
Remove when-let macro in favor of let ... when
Browse files Browse the repository at this point in the history
when-let is a clojure and emacs 25 feature and what's a little syntax
among friends
  • Loading branch information
Dan Sutton committed Mar 29, 2017
1 parent 1948057 commit e487973
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resize-window.el
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,11 @@ If no SIZE is given, extend by `resize-window-default-argument`"
(resize-window--create-overlay))

(defun resize-window--restore-windows ()
(when-let ((config (resize-window--window-pop)))
(resize-window--delete-overlays)
(set-window-configuration config)
(resize-window--create-overlay)))
(let ((config (resize-window--window-pop)))
(when config
(resize-window--delete-overlays)
(set-window-configuration config)
(resize-window--create-overlay))))

(provide 'resize-window)
;;; resize-window.el ends here

0 comments on commit e487973

Please sign in to comment.