From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: How do package.el handles "duplicate packages"? Date: Thu, 24 Nov 2022 20:43:00 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9955"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 25 00:43:57 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oyLsq-0002P7-4J for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Nov 2022 00:43:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyLsI-0002yD-1n; Thu, 24 Nov 2022 18:43:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyLsG-0002xn-S0 for help-gnu-emacs@gnu.org; Thu, 24 Nov 2022 18:43:20 -0500 Original-Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyLsB-0006Vf-7u for help-gnu-emacs@gnu.org; Thu, 24 Nov 2022 18:43:20 -0500 Original-Received: by mail-il1-x136.google.com with SMTP id h2so1319624ile.11 for ; Thu, 24 Nov 2022 15:43:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=7mjP4Rt3EcbZ3260TuiqRK9nvrrw9fnymCObP+mv8Tk=; b=XrqTmBACQZnIsR29WPOCJWOmOB7ngL9P9lPOGX0NMjXORaWtH136cvhIqoWhpA27lm s1T3cDMQb8usnEAsYe+Bc3lrxNrgi1KAVbpjOCpRZkhdNC9pBo6PZNXOfabxETeIZSBW 3mOUigmTKVDhNco5d7xQZHqbdn8ERMIOxQ81kh8z0tfdLJ5lmbCTWIlnveeveqgBAlHt AqtfKKlCCaIF4wAaBDaJU2gTwk4EJMVlQV+PZSYmlc/0idizs6S6R7QwJDCeoIeyLccG P1GyJM4C/0Etpnn2FZ3rbjVZ9VsKKAC7ncP5a0rwg5QLIMDnsDOImoOXCuvC3us8LrZS ndZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7mjP4Rt3EcbZ3260TuiqRK9nvrrw9fnymCObP+mv8Tk=; b=oJK2rkAXt9XJ7vZhMRHEHgSJHzgFiJk6cozaHURcSwrGrZV92anXbatAFNApeVBWFX 5cl++1mlrEVhzXQ952QXY/+8+IeISfNdRIvtQsRfziQpQMLBeZS6GV7GbZEnVT7nXsr3 bWhZCn3Bch2gVvnwdAOkfnClSPwNLPYzVRZrYLm/leStfpCwfQZa/Ixxhv3ABNqqzoaz wYFT+3xusfSuuL5o5dIasyY0XN78urm3kP4/9CElhTtPEaFegcb/RqK77eZm9LDhZPTi c0ISRKAu8IG0iVaDwHm2o4J98D9Tb7Tf5MyFnFaQ0O5eeZ88bk7Lv2kPiO7G6ZhHV85H q4jw== X-Gm-Message-State: ANoB5pkDFoxM+mjB3VmSYI4qNSx5wRL5IdKWkAlTP6oBFBhIOg/wGDdC RaLlREvky5D6JrxAGhhQ3FZQgUX3IL0wPwsG8pcl0ypu2OY= X-Google-Smtp-Source: AA0mqf5SbDrzJTLivMnLvBSYkFkf8uV5eU4FV73GenLVPkt1Y8NZetIVPKCvfU93X7yjTXi6hag0DfjFCpPUx5hyeMg= X-Received: by 2002:a92:d643:0:b0:300:55ca:3f07 with SMTP id x3-20020a92d643000000b0030055ca3f07mr7746008ilp.39.1669333392548; Thu, 24 Nov 2022 15:43:12 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::136; envelope-from=eduardoochs@gmail.com; helo=mail-il1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141152 Archived-At: Hi list, where can I find information on how package.el handles packages that are listed twice in the buffer that `M-x list-packages' creates? The file package.el is very big and I find its code hard to follow, so any hints like "read the commments in the places foo and bar" would help a lot... Here is an example (to make this question more interesting)... "afternoon-theme" is one of these packages, and if I define these two functions (defun my-p1 () (interactive) (setq my-p1 (tabulated-list-get-id))) (defun my-p2 () (interactive) (setq my-p2 (tabulated-list-get-id))) and I run `M-x my-p1' on the line with the first "afternoon-theme" and `M-x my-p2' on the second, then I can inspect the variables my-p1 and my-p2 with: (describe-variable 'my-p1) (describe-variable 'my-p2) One of them has these entries, :version (0 1) :archive "nongnu" and the other has these: :version (20140104 1859) :archive "melpa" and if I run this, (setq my-ps (cl-loop for (name pdesc) in package-archive-contents if (eq name 'afternoon-theme) collect (list name pdesc))) (describe-variable 'my-ps) I see only one entry in package-archive-contents - the one in MELPA... Thanks in advance, Eduardo Ochs http://angg.twu.net/#eev http://angg.twu.net/eepitch.html