]> git.eshelyaron.com Git - emacs.git/commitdiff
Backward compatibility with emacs-22.1
authorDave Abrahams <dave@boostpro.com>
Mon, 2 Dec 2013 18:44:28 +0000 (10:44 -0800)
committerDave Abrahams <dave@boostpro.com>
Mon, 2 Dec 2013 18:44:28 +0000 (10:44 -0800)
This change supports the emacs that ships with MacOS X, the last version not encumbered by GPLv3.

lisp/use-package/use-package.el

index f91be03b22b30a9b97dae15e19940a41d714f78b..03bec74602a24a81d86b31a57a505a6c172b5a40 100644 (file)
 (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'."