all repos — nixfiles @ f3345c44413ff7959d4895912672e5ac6f4e7453

System and user configuration, managed by nix and home-manager

Emacs: define package-desc-archive, if it isn't
Alan Pearce alan@alanpearce.co.uk
Tue, 15 Jul 2014 21:45:19 +0100
commit

f3345c44413ff7959d4895912672e5ac6f4e7453

parent

e341b16cac679978b6171ca7a7bda61941a0ca99

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -54,6 +54,10 @@ :defer t   :config (progn
             (setq paradox-automatically-star nil)))
 
+(if (not (fboundp #'package-desc-archive))
+    (defsubst package-desc-archive (desc)
+      (aref desc (1- (length desc)))))
+
 (defun package-list-installed ()
   (loop for pkg in package-activated-list
         collect (cadr (assq pkg package-archive-contents))))