From debbugs-submit-bounces@debbugs.gnu.org Sun May 04 23:19:26 2014 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 ) id 1Wh9R7-0001ri-Mr for submit@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 ) id 1Wh9R5-0001rR-4s for submit@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 ) id 1Wh9Qq-00051l-J0 for submit@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 ) id 1Wh9Qq-00051e-Fo for submit@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 ) id 1Wh9Qh-0002ni-B3 for bug-gnu-emacs@gnu.org; Sun, 04 May 2014 23:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wh9QY-0004zg-8N for bug-gnu-emacs@gnu.org; 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 ) id 1Wh9QY-0004zV-0v for bug-gnu-emacs@gnu.org; Sun, 04 May 2014 23:18:50 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj1so8624383pad.1 for ; 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 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 04 May 2014 20:18:47 -0700 (PDT) From: Richard Kim To: bug-gnu-emacs@gnu.org Subject: 24.4.50; package-alist doc-string error Date: Sun, 04 May 2014 18:42:18 -0700 Message-ID: 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@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: emacs18@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 23:22:21 2019 Received: (at 17403) by debbugs.gnu.org; 14 Jul 2019 03:22:21 +0000 Received: from localhost ([127.0.0.1]:43691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmV5g-0006sR-Pc for submit@debbugs.gnu.org; Sat, 13 Jul 2019 23:22:20 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:45806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmV5e-0006sE-L3 for 17403@debbugs.gnu.org; Sat, 13 Jul 2019 23:22:19 -0400 Received: by mail-wr1-f41.google.com with SMTP id f9so13543387wre.12 for <17403@debbugs.gnu.org>; Sat, 13 Jul 2019 20:22:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=l9/nrulz7IIU1tMXBAhOlm1odvqJhXd+yJA6GPcy7Tk=; b=hB3scBH4ykrXDPgHAaXCBqa1AXH9VVNdnZ1yX0lnnQaEEKhmS5OtxeilpI/7AFP3J9 voOqf4aN/e3bKutujpEAhTXEbc1OqBWmdjiNlWED1GGbrVHpBcBZja266dPeSF89ntKr Y1LatIAHFdg6i2YethTR5FPvOQJST5I+qaSMO7kprzA6PBfWk862wBBiQsPYXVPalfZ+ AkYPIV/wk87dZQ7j4qhmhYSPzQ8Weua6TVRAcSdUKy29iGUeXivynqvF2HzElydw97S0 +oyNeEGOiK0rh9hBTPOd8rVIB3+WZfzuTTlC/oTIVSM67fVwxcHX4FrDN7Y90O5Te3Ju eKFQ== X-Gm-Message-State: APjAAAX/ej8v6M2CHWdzLBwrgav6krI6Ib8lqItW2r+u4Z3ngXA6euhe kgTqNryE2fFA7L/yBgY5vGK6HwIBBMQIwk86l4M= X-Google-Smtp-Source: APXvYqwOdpLLT2+vNkPDlivsIykggOLS52tJECI+QDz+JWOlBFN0KgRN9XRdHozrfXXXx4/2A0snQTy8s8P156pFndM= X-Received: by 2002:a05:6000:14b:: with SMTP id r11mr20286295wrx.196.1563074532945; Sat, 13 Jul 2019 20:22:12 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sun, 14 Jul 2019 05:22:04 +0200 Message-ID: Subject: Re: bug#17403: 24.4.50; package-alist doc-string error To: Richard Kim Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17403 Cc: 17403@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Richard Kim writes: > 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. You are correct. There is indeed a difference between what the documentation says and what the code does. According to the code, package-alist is *not* an alist, but a list of lists. (This goes back to at least 2013 AFAICT.) Yet it has the suffix "-alist". I see three ways to rectify this: 1) Change the code so that it is an alist. 2) Update the documentation, rename the variable to something like package-list. 3) Update the documentation, ignore that it's not an alist. Out of these alternatives, I think the first is by far the least attractive. It has already been changed to not be an alist once. But which is the better of alternatives 2 and 3? It would be good to hear what others think. Thanks, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 10:26:44 2019 Received: (at 17403) by debbugs.gnu.org; 14 Jul 2019 14:26:44 +0000 Received: from localhost ([127.0.0.1]:45569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmfSe-0000NW-Ag for submit@debbugs.gnu.org; Sun, 14 Jul 2019 10:26:44 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:36667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmfSd-0000NL-CY for 17403@debbugs.gnu.org; Sun, 14 Jul 2019 10:26:43 -0400 Received: by mail-io1-f67.google.com with SMTP id o9so30217864iom.3 for <17403@debbugs.gnu.org>; Sun, 14 Jul 2019 07:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=75ylSFuSj7luA0UC14/ZquWBK6mqgbqlt6rgyG+H0G4=; b=YKdweDYwyQKu3XGH22mQR5lNV8ZxTVctATX4AlCzcZ3vAasnybNTwsjc4zlD9xNnII DOYcyT57ZH1UBXSEbNfizXyWX2qEhp17J2HrCylkou00RgxVmtTZjRbcH89di59wePok l/VasICfKnF5wwU/SDssgzqnDy3KKS8NY0Xj3xYx3L2RMqWnYNleLTiBXJGZvY1wH9fU 8KR63TLUOKEE8DZceSCwDtYZj5dQccYqBHibxtRy2qm8PjW/CWrEJXl6kqrJO5gs2c5v LJz+fB0KNJqAfKYDW55yaYHZOneBAWVkY8zaKby0YDnyIz2sAobULrDlFQ9pOPcXuXsr dLlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=75ylSFuSj7luA0UC14/ZquWBK6mqgbqlt6rgyG+H0G4=; b=l1J4RxAz5IAETGBDaYkscsMMT5cIg/TKmxpiMLxslPVnDxgxs4vyb+dfoUrRcPcohv SIOYl0Mp94PqKjujOAfFienLru9OjZf1wWOa1zMMuDCYFYyjHKJxXjYt/MJzUcBO4rfi KsHcjvw1xXiMtVI0RwGXS3ouHctMGe34ffND3EROdbesqwWLnvgEfRaTEplVZhqmt/R8 NFVF2DAjWFsXLwNfGXovGoDaFmP8z4Fy+gcVxkcrj6q9Ap8l7oJ4XDFUVdih4su1eRd7 kkTiupvCyuT/Ndfpj3RwCYS2e1R1cGsc1FrojO9iIz+1ZzbuDhOK7m7sHLMaIhv97IPh Taww== X-Gm-Message-State: APjAAAV/rREcj42OLqMSvt+xtTUB/7cdsZYXKsYwOtW6hE6qtfF1Fqrb BL82jfa/ayVqD9XWBT+iwImazwUC X-Google-Smtp-Source: APXvYqxdiyJI5QKCN7JCKK9rRIVQ1uHg3ii5pQ5EeSti0W+HlTj5SwZa5DfVngzIMywneaXoFMziNg== X-Received: by 2002:a5d:9e49:: with SMTP id i9mr19243588ioi.290.1563114397677; Sun, 14 Jul 2019 07:26:37 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id s10sm44632010iod.46.2019.07.14.07.26.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jul 2019 07:26:37 -0700 (PDT) From: Noam Postavsky To: Stefan Kangas Subject: Re: bug#17403: 24.4.50; package-alist doc-string error References: Date: Sun, 14 Jul 2019 10:26:36 -0400 In-Reply-To: (Stefan Kangas's message of "Sun, 14 Jul 2019 05:22:04 +0200") Message-ID: <87d0ic1ylf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17403 Cc: 17403@debbugs.gnu.org, Richard Kim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > Richard Kim writes: > >> 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. > > You are correct. There is indeed a difference between what the > documentation says and what the code does. According to the code, > package-alist is *not* an alist, but a list of lists. (This goes back > to at least 2013 AFAICT.) > > Yet it has the suffix "-alist". The only structural requirement for "alist"ness is to be a list of conses. As long as none of the lists are empty, a list of lists is (or can be viewed as) an alist. I don't think there is a bug here, just a misunderstanding of dot notation. >> 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) Note that this is equivalent to this: (push (cons name (list new-pkg-desc)) package-alist) From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 11:58:34 2019 Received: (at 17403) by debbugs.gnu.org; 14 Jul 2019 15:58:35 +0000 Received: from localhost ([127.0.0.1]:45683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmgtW-0000if-NB for submit@debbugs.gnu.org; Sun, 14 Jul 2019 11:58:34 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:44929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmgtV-0000iS-OP for 17403@debbugs.gnu.org; Sun, 14 Jul 2019 11:58:34 -0400 Received: by mail-wr1-f46.google.com with SMTP id p17so14520771wrf.11 for <17403@debbugs.gnu.org>; Sun, 14 Jul 2019 08:58:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BVRaiXs34T4TbDC+25MOs0l1W2aFNNW5xSrYTnEsJwI=; b=lvz14LxUDomWHybRqbERhFf3pKJMGhrk5JjnwInrPF4RBTzQiIE0VYw3SF6diHKCqI U/nGnRfQ817TueManYlskzwJa4Rk3B53Q9R/s5jIYETrdv39YGuhmPxvT2UWI1WFCtzu 6fd2H43+Frbp52wkc0RhoCadHgDhKmk/D2aDRJI3GZEMB0y/9r5ThMlePShVKTG9ltXC VdgDAYpvef0MKQjGRDMMYFV3ZO5gIIHYUOBDNutML6+vLREYMs7696FAWqzj2SRvD/K0 4GCDdt6MsnkLWaWoZAtDVM99OV7f/JPH93nryAcsdcKOYtK1Lui277XirdWMm0NwleDx lvSg== X-Gm-Message-State: APjAAAVWP/EQgsgtkZl8dS2Cf3ssX1R/c9xOwgdeU8FREp0ZzPFhkGm1 rQWj7FAN5NoeFYpovh3GliZHMpQ6w27S61cbgs8= X-Google-Smtp-Source: APXvYqwQT9akXoSMzzaMHraV7Vv2mtkVkM/oRzyCQRcTmnphTMiqVL8hVBor/g+fT2AS88VIg1FUtPIjfEd4u0emOpM= X-Received: by 2002:a05:6000:14b:: with SMTP id r11mr23915569wrx.196.1563119907839; Sun, 14 Jul 2019 08:58:27 -0700 (PDT) MIME-Version: 1.0 References: <87d0ic1ylf.fsf@gmail.com> In-Reply-To: <87d0ic1ylf.fsf@gmail.com> From: Stefan Kangas Date: Sun, 14 Jul 2019 17:58:16 +0200 Message-ID: Subject: Re: bug#17403: 24.4.50; package-alist doc-string error To: Noam Postavsky Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17403 Cc: 17403@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Noam Postavsky writes: > The only structural requirement for "alist"ness is to be a list of > conses. As long as none of the lists are empty, a list of lists is (or > can be viewed as) an alist. OK, interesting. > I don't think there is a bug here, just a > misunderstanding of dot notation. Hmm, I had to think a minute about this but you're right, of course. Not sure what confused me. Is it a problem that this is documented as "(PKG . DESCS)" when the printed representation is "(PKG DESCS)"? If not, we can close this as notabug. Thanks, Stefan Kangas PS. Took the original reporter off Cc because it bounced the first time. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 14 18:58:31 2019 Received: (at 17403) by debbugs.gnu.org; 14 Jul 2019 22:58:31 +0000 Received: from localhost ([127.0.0.1]:46189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmnRu-0002Zd-V9 for submit@debbugs.gnu.org; Sun, 14 Jul 2019 18:58:31 -0400 Received: from mout.web.de ([212.227.15.4]:58361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmnRs-0002ZM-7s for 17403@debbugs.gnu.org; Sun, 14 Jul 2019 18:58:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1563145099; bh=4FA8FFDI4VytbWfpZOzf0RCNJLLgMPJt90w9rLpZkgo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=b91zGFkBno0/4pi/qwMREMTs4KSNyfLW83TEB+RJ2ZuN94nq3C2Tjw0CQbyWcCqOm QuUHMZ+jDJ6CB0XLVj7ZT4DYiU+Ym3TqKatMF22BsDku4O3P0Qs6IRuHWy2Hp38wyn bQWJnnibrUIvk+k4vHOJFOT+37D1+THULlJudzgA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([92.208.178.213]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MNc5a-1hoR4i3IrK-007Cod; Mon, 15 Jul 2019 00:58:18 +0200 From: Michael Heerdegen To: Noam Postavsky Subject: Re: bug#17403: 24.4.50; package-alist doc-string error References: <87d0ic1ylf.fsf@gmail.com> Date: Mon, 15 Jul 2019 00:58:15 +0200 In-Reply-To: <87d0ic1ylf.fsf@gmail.com> (Noam Postavsky's message of "Sun, 14 Jul 2019 10:26:36 -0400") Message-ID: <87d0icxlyw.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:VQc+jXBQRmMT9e76Ppz+f7PjMlkRSBTMh4rO8GytfYmhMc+X6wx IYGyF8t4WbX19fPdZ8HFhk7W5j1WWmX2I1erzHl7fhvr8EZVr+8KdbkTEQJGSR4fJr4sVaQ 6G4XZstrZzrJZS4fFSzeT5BMb7sD24ObEIhQgoLkIC9+hYGkuiXT8tN1yaK6Avr9eqJ5cAa EYjr8z/drZSX9yWKTSIFw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:jbDPGsnliO4=:yUF3JavDIwvU+GATAqG4oj cx15uLRJaryBPzAwCfgzdnHQM8B2svZUE2Y+S9SABqNFStVOlL1Fy30W4rADFcmlObmqz1RIw +hS3Fh/iy7++iKnNlNHXknPbtPU1KM9YdGjRYiQEg5N0uSU1lI0+lxNB9FnVg4O1Yn3bAmwSn kWCM0Zm9d7YY0PRTMkcb1cRrqbC7dld/taHTEjUEcHG2XcDQ58IoW3OU34DhRuRVvkmubuzAl yLO4aeVqicMiMloAhqIykpEppY4eHy0j8FxC+tNEwPR9DuxdIfzdm3on6+L/GlesjVd1vTU0n OytoNvDcXdEdhOxAcfm//0OBZPAz+kOCkvZWWIiBX6d4TFolt/AaxvT8Q8lDvyXCQFLGT12fl x/4Z7EFSyU6PaL9VzBrogb4TXv3lkHboIEBolAp7TIzSZ9T9tBCbF0oluVxXzRopKuwFvwxV2 D+tP6oe7YSdaI1+m5jyQ0eP9UZtipIj3VO7iZZlhTYbfa7o/08hUUtnxK5TSO5/T465NBaxyK ShdhE3L3OEI7JvhQYPyiIzTsu9+4G26XuuhT1m6s5SOYdncUJT59Bp/LmdWlC3mK8snsDILv+ cyl2oYalcGsKqS0amYTHvyslHwFWCi3hZUu28G2/fEeL2M3/DaRVshydCGzVIdfzXdbgfNxMt +OvNCxWmnMeI9uek4x9albW9G9/KH1Wvc4ya+G98hB8brYNJ525b+vxBoCYnZGp7I+4G53TQP fXSavXBU2PboJ0zHIMIKqNXu4b2YHee4n+uKw1+ijb/cTf13xVLdqLvPT3q33a8N2lAlboa7Y CyXdfQfzz7LlMYFwC3W1DnlQOjhD4g+oeM5L8zSjRE5/4k9valGf2w16qQaoq4y/Nu4GcTzvA BUppuYmrv8rSzVJ5aUm7szQ/aW6VeLRNTWUKCOziRXHBfy5BIJ3ZnWNy6SL4i7wlMeQfZLP19 IrzqO9oE/exyaOeIwnQZoalt/obELsIGYYh1QMS374uQI4i71II1oajdEYIdbVsThjohKZgR+ Ixx4I1v7s2RlmOE6pcYesFknFFCtWymI3z3s4S0SvEnHsmHvy0BfRIdfH8enNdcA2vDM+V5Xz nB0mGjv5kKOt72lAiAodnOXqB/lcGn38KR/ X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17403 Cc: Richard Kim , 17403@debbugs.gnu.org, Stefan Kangas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Noam Postavsky writes: > misunderstanding of dot notation. Yes probably, but "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" ^ Isn't there an "s" missing (plural)? Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 10:11:01 2019 Received: (at 17403) by debbugs.gnu.org; 17 Jul 2019 14:11:01 +0000 Received: from localhost ([127.0.0.1]:52759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnke4-0006Wb-P7 for submit@debbugs.gnu.org; Wed, 17 Jul 2019 10:11:00 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnke2-0006WJ-2L for 17403@debbugs.gnu.org; Wed, 17 Jul 2019 10:10:59 -0400 Received: by mail-wr1-f67.google.com with SMTP id x1so9999239wrr.9 for <17403@debbugs.gnu.org>; Wed, 17 Jul 2019 07:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8qj9qon8J4sXk0I7AdWQosuMqjH69EkXjukPdHAUQ34=; b=RevU9den9aX0QN1+yGMhs6bTUKqRaYsN5Za89CXzNZWNXsYbJv0BGb55l5VpHJM34c 6ToP0N+3dWlThdh4+sWf2cU82l8pjMFsEC9BOa7nElY19L1cgwIEGSja9Jj6aE+nLCUp dQyxMg4OjZsRwI8hatPhmm/s5ziLzCvtANa+3oPNczFUwohXPA3rffEPOlQ2Z8QIifb7 lwVd+e7V5imiJcYrrAXBy3bPaBtvgKD3588S6PH4EkfzEV7KqF0sI/ruxojuC4lS9Xzb yfnsQLQy3skBOFEZVROBt6fm5ndnB5dgZPe8qj16SGVuADq4zxpLzk+b4p4Q3ox/r9i2 Aglw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=8qj9qon8J4sXk0I7AdWQosuMqjH69EkXjukPdHAUQ34=; b=f7cVP1pZlo41aHuwag+AN5dRBCVdBCXDkHKf/grjfJRZxSxwYQ1Yt2cH7uOhAxAo/N aqJxkGCpfWxXYut+wjQ5EHfQ5pjGH+Qe8V3ERwswldFWj7REHW0FftiVvNqKljJbb5jT DF72UIqTCKUhhxYo7xOAZEFLF6+TK9nZ3j4nUGcyOn1yXnMmGdxyTY/aweAXYoexvmp+ MhWWsAnUHcGu8hOxaWmzrNG30Cf1POi5MYMfrswIGGQr+7KBSS3O8jA5QeMNocMn0kxT IHn7IpU1w2hwOpMmhfFvmhAe/wRRbt/HolKBCKSop41R2thW1xfjk8ABj08hUULFK1HX M21A== X-Gm-Message-State: APjAAAXXOUmY4ZuPQdfedNlSNQpeEJEW1DaL6wlfOWy371gPJ1iNweWu PyWPAET5GvQDCAXczzZ+7XYiCg== X-Google-Smtp-Source: APXvYqxPDjmiXLyYkG8jf1jveDd5nB6J2krD2PcFlgZ67XqsNQ3aseOYDCGQdFKAdOzPVg9iHcGekQ== X-Received: by 2002:adf:c508:: with SMTP id q8mr42872746wrf.148.1563372652197; Wed, 17 Jul 2019 07:10:52 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id x24sm24136226wmh.5.2019.07.17.07.10.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 07:10:51 -0700 (PDT) From: "Basil L. Contovounesios" To: Michael Heerdegen Subject: Re: bug#17403: 24.4.50; package-alist doc-string error References: <87d0ic1ylf.fsf@gmail.com> <87d0icxlyw.fsf@web.de> Date: Wed, 17 Jul 2019 15:10:46 +0100 In-Reply-To: <87d0icxlyw.fsf@web.de> (Michael Heerdegen's message of "Mon, 15 Jul 2019 00:58:15 +0200") Message-ID: <877e8ghhuh.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17403 Cc: Richard Kim , Stefan Kangas , 17403@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Heerdegen writes: > "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" > ^ > Isn't there an "s" missing (plural)? Indeed. Now fixed in emacs-26: Fix typo in package-alist docstring 76538d09b7 2019-07-17 15:07:16 +0100 https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=76538d09b711c9f0fb2a48be70f12e776c4ecbb5 Thanks, -- Basil From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 10:23:17 2019 Received: (at 17403) by debbugs.gnu.org; 17 Jul 2019 14:23:17 +0000 Received: from localhost ([127.0.0.1]:52787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnkpw-0006qL-P0 for submit@debbugs.gnu.org; Wed, 17 Jul 2019 10:23:17 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:54637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnkpu-0006q1-Ro for 17403@debbugs.gnu.org; Wed, 17 Jul 2019 10:23:15 -0400 Received: by mail-wm1-f53.google.com with SMTP id p74so22349215wme.4 for <17403@debbugs.gnu.org>; Wed, 17 Jul 2019 07:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=4aRBzx7R0joGvwbYw4i+W01IJOgLuJkakriukIHj2Ug=; b=LbATK6Sr4erZ/z8X0ZL1UxIOyUp4Pwxdo91xqvDKON1xyyrGzLpdyRVMttht8vPSp5 Ot2sXfUmcLgkimd2084ezLKzfeLnkPWnOjfFTE2grAlLzbezlP1OJl1vNfre51xMEnJp hKzo+KwQcEKmnPjIBUy5z14hFLvYHe/3RTnOgpV3d3laAlmFS7VXGLcS/KJ1c18xG96W YZGu4jvU/42P7WrOAzB0wQJHufkqjFe+9nuRPNmOzmZQPmBcCIStmACFCdK1KEdjS/Iq 1dD8u8Vmhk8nnrvZxFHIMvQPkqTdV2Bolt0KMpdvZ0q8blTmm36LvomUJZha42rkqr1a mG5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=4aRBzx7R0joGvwbYw4i+W01IJOgLuJkakriukIHj2Ug=; b=D/UsMQN9LqyWTFdvVK2XIactLKUWeFLZz9xvLyO3MhcDeMVwlAoTnbEnhfqFayNOaq rqdvQhzyBt/ZIsKs7DqhsHiSCqDON3YH6qwQpip/gVhgl/Yq/toZt45z3TGs7N+SsC1C lbf9UjBYWGQ0YYjprTJyvoFxH4quzv6HvqDXxTJCrMWwqzLRKBEPQXZxwplOImVbvY6a iNi2vQcwKIQxfHQbzIy7A/cjw6TmgTNEKTAApagrTJgt1orneZGAtUEqTX/cztQgONHW 2Fi3c6ZJezI4Mn7jNbtfr+nlbPRl/WRdaEf5olInQhaO5EH4qEu5doSdJbqgmhMZkx6C RRlw== X-Gm-Message-State: APjAAAUqdDvLnjKiiGPeYcn5TlbEiXfzofTwPXF4bGON3S8pbet3Eeem qcGBOY4BKnO2CwptkSPN3Sn1WA== X-Google-Smtp-Source: APXvYqxep/Fa5Yu34VQLAjW/jQ/FaRgTogB3HZcF5ToKT4nfkzOYVOsKl1Gk6VUPLLvSRJLhaPvOXQ== X-Received: by 2002:a1c:1f41:: with SMTP id f62mr37758302wmf.176.1563373388893; Wed, 17 Jul 2019 07:23:08 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id v12sm22537222wrr.87.2019.07.17.07.23.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 07:23:08 -0700 (PDT) From: "Basil L. Contovounesios" To: Stefan Kangas Subject: Re: bug#17403: 24.4.50; package-alist doc-string error References: <87d0ic1ylf.fsf@gmail.com> Date: Wed, 17 Jul 2019 15:23:03 +0100 In-Reply-To: (Stefan Kangas's message of "Sun, 14 Jul 2019 17:58:16 +0200") Message-ID: <87o91sg2pk.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17403 Cc: 17403@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 17403 notabug close 17403 quit Stefan Kangas writes: > Is it a problem that this is documented as "(PKG . DESCS)" when the > printed representation is "(PKG DESCS)"? No, because the implicit printed representation is actually (PKG DESC...), not (PKG DESCS). In other words, the cadr of each alist element is a single package-desc structure, not a list thereof. Both the code and the docstring agree on this AFAICT. Dotted notation is often employed in documentation in order to more explicitly describe metasyntactic structure. This may initially confuse users who see the implicit printed representation, but sooner or later all Emacsites ought to learn that (A B) is equivalent to (A . (B)). > If not, we can close this as notabug. Done, thanks. -- Basil From unknown Thu Jun 19 14:26:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 15 Aug 2019 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator