GNU logs - #17403, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#17403: 24.4.50; package-alist doc-string error
Resent-From: Richard Kim <emacs18@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 05 May 2014 03:20:01 +0000
Resent-Message-ID: <handler.17403.B.13992599667179 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 17403
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 17403 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Reply-To: emacs18@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13992599667179
          (code B ref -1); Mon, 05 May 2014 03:20:01 +0000
Received: (at submit) by debbugs.gnu.org; 5 May 2014 03:19:26 +0000
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>
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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
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.
 




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: emacs18@HIDDEN
Subject: bug#17403: Acknowledgement (24.4.50; package-alist doc-string error)
Message-ID: <handler.17403.B.13992599667179.ack <at> debbugs.gnu.org>
References: <qtmbnvduhl1.fsf@HIDDEN>
X-Gnu-PR-Message: ack 17403
X-Gnu-PR-Package: emacs
Reply-To: 17403 <at> debbugs.gnu.org
Date: Mon, 05 May 2014 03:20:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 17403 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
17403: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17403
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



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.