From 768d735cde1ad10b5d930bcff31d329b3fcadb01 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 2 Dec 2013 10:44:28 -0800 Subject: [PATCH] Backward compatibility with emacs-22.1 This change supports the emacs that ships with MacOS X, the last version not encumbered by GPLv3. --- use-package.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/use-package.el b/use-package.el index f91be03b..03bec746 100644 --- a/use-package.el +++ b/use-package.el @@ -261,7 +261,8 @@ (require 'bytecomp) (require 'diminish nil t) -(declare-function package-installed-p 'package) +(when fboundp 'declare-function + (declare-function package-installed-p 'package)) (defgroup use-package nil "A use-package declaration for simplifying your `.emacs'."