From da9c6486d27a350685d473abb9ffd9345e6eda31 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 4 Feb 2015 20:39:16 +0100 Subject: [PATCH] Fix typo causing a void-variable error: pkg-desc * emacs-lisp/package.el (package-installed-p): Fix typo causing void-variable error. --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/package.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fbf77c6258e..432ca69ac6f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-02-04 Tassilo Horn + + * emacs-lisp/package.el (package-installed-p): Fix typo causing + void-variable error. + 2015-02-04 Artur Malabarba * emacs-lisp/package.el (package-delete): Remove package from diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index c635fcdf671..67cd44d6758 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -1002,7 +1002,7 @@ should be a version list. If PACKAGE is a package-desc object, MIN-VERSION is ignored." (unless package--initialized (error "package.el is not yet initialized!")) (if (package-desc-p package) - (let ((dir (package-desc-dir pkg-desc))) + (let ((dir (package-desc-dir package))) (and (stringp dir) (file-exists-p dir))) (or -- 2.39.2