GNU bug report logs - #17403
24.4.50; package-alist doc-string error

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: emacs18@HIDDEN; dated Mon, 5 May 2014 03:20:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 May 2014 03:19:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 04 23:19:26 2014
Received: from localhost ([127.0.0.1]:51145 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wh9R7-0001ri-Mr
	for submit <at> debbugs.gnu.org; Sun, 04 May 2014 23:19:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33966)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <emacs18@HIDDEN>) id 1Wh9R5-0001rR-4s
 for submit <at> debbugs.gnu.org; Sun, 04 May 2014 23:19:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <emacs18@HIDDEN>) id 1Wh9Qq-00051l-J0
 for submit <at> debbugs.gnu.org; Sun, 04 May 2014 23:19:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_40,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36999)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <emacs18@HIDDEN>) id 1Wh9Qq-00051e-Fo
 for submit <at> debbugs.gnu.org; Sun, 04 May 2014 23:19:08 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35637)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <emacs18@HIDDEN>) id 1Wh9Qh-0002ni-B3
 for bug-gnu-emacs@HIDDEN; Sun, 04 May 2014 23:19:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <emacs18@HIDDEN>) id 1Wh9QY-0004zg-8N
 for bug-gnu-emacs@HIDDEN; Sun, 04 May 2014 23:18:59 -0400
Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:37163)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <emacs18@HIDDEN>) id 1Wh9QY-0004zV-0v
 for bug-gnu-emacs@HIDDEN; Sun, 04 May 2014 23:18:50 -0400
Received: by mail-pa0-f42.google.com with SMTP id bj1so8624383pad.1
 for <bug-gnu-emacs@HIDDEN>; Sun, 04 May 2014 20:18:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:reply-to:mime-version:content-type;
 bh=1LDHspqf3w/yfSepeszi107eY4auxjcOSMnlFgEY7z0=;
 b=IPuWjfvLXM23Ce73X58XY+QPL026QAU3Zx1dWPySpGPkgsiQX2ylPuICA3gFCG8Sxt
 k048Qh6RwnbLm5Y7HTWtkxirqc5HUnM2XadSASs6AGLC/1Y1B/NuXIiVILzHXEc7pFCk
 MnAdGLvzF8YjCTVGVayN9cfN3l6if1SltoUVjdtV44yQLHDICTXKOO/LnUlzYLAtzJzn
 EsQadSISxGYWhBPukW62RntHIJDtmRzdcbZwEG5bQE+2yRFVQk2ep7AMiGOFhbZMzedK
 GZT3SZOZGPvUfIL6xHC4/zIRMw5pg4ysZMj3ubBw3RZuN5ZDcGD62w8cox3+ygjog8kg
 Et3g==
X-Received: by 10.66.148.98 with SMTP id tr2mr66682487pab.33.1399259928365;
 Sun, 04 May 2014 20:18:48 -0700 (PDT)
Received: from kimr-e6410 (static-50-53-21-49.bvtn.or.frontiernet.net.
 [50.53.21.49])
 by mx.google.com with ESMTPSA id dy7sm59530339pad.9.2014.05.04.20.18.46
 for <multiple recipients>
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Sun, 04 May 2014 20:18:47 -0700 (PDT)
From: Richard Kim <emacs18@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.4.50; package-alist doc-string error
Date: Sun, 04 May 2014 18:42:18 -0700
Message-ID: <qtmbnvduhl1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: emacs18@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

I believe the doc-string for package-alist is incorrect.
Each element is (PKG DESCS) rather than (PKG . DESCS), i.e.,
each item is (list PKG DESCS) rather than (cons PKG DESCS).
To fix this, the patch shown below can be applied.

My assertion is confirmed by the following code from package.el:

    (defun package-process-define-package (exp origin)
       ...
            ;; If there's no old package, just add this to `package-alist'.
            (push (list name new-pkg-desc) package-alist)
       ...
       )

where the new item added to package-alist is a list of two items rather
than a cons of two items.

The git diff of the propose change follows next.

Changes from HEAD to working tree
1 file changed, 1 insertion(+), 1 deletion(-)
 lisp/emacs-lisp/package.el |    2 +-

	Modified   lisp/emacs-lisp/package.el
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 7be0354..cbd4671 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -409,7 +409,7 @@ name (a symbol) and DESC is a `package--bi-desc' structure.")
 
 (defvar package-alist nil
   "Alist of all packages available for activation.
-Each element has the form (PKG . DESCS), where PKG is a package
+Each element has the form (PKG DESCS), where PKG is a package
 name (a symbol) and DESCS is a non-empty list of `package-desc' structure,
 sorted by decreasing versions.
 




Acknowledgement sent to emacs18@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17403; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.