Merge pull request #110 from dato/cl-flet

Fix which-flet logic
This commit is contained in:
Greg Pfeil 2014-04-07 15:46:17 -06:00
commit 97a8d40e04
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ the \"Gen RGB\" column in solarized-definitions.el to improve them further."
(defvar which-flet
"This variable will store either flet or cl-flet depending on the Emacs
version. flet was deprecated in in 24.3")
(if (and (> emacs-major-version 24) (> emacs-minor-version 2))
(if (or (> emacs-major-version 24)
(and (>= emacs-major-version 24) (> emacs-minor-version 2)))
(fset 'which-flet 'cl-flet)
(fset 'which-flet 'flet))