From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uJ1cObYQEGKvPgAAgWs5BA (envelope-from ) for ; Fri, 18 Feb 2022 22:33:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QMcXNrYQEGKE2gAAauVa8A (envelope-from ) for ; Fri, 18 Feb 2022 22:33:42 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6BC61395D4 for ; Fri, 18 Feb 2022 22:33:42 +0100 (CET) Received: from localhost ([::1]:60420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLAsm-0001ig-NP for larch@yhetil.org; Fri, 18 Feb 2022 16:33:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLAs7-0001iV-6A for emacs-orgmode@gnu.org; Fri, 18 Feb 2022 16:32:59 -0500 Received: from [2607:f8b0:4864:20::c2f] (port=38489 helo=mail-oo1-xc2f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLAs4-000751-TR for emacs-orgmode@gnu.org; Fri, 18 Feb 2022 16:32:58 -0500 Received: by mail-oo1-xc2f.google.com with SMTP id i10-20020a4aab0a000000b002fccf890d5fso5088064oon.5 for ; Fri, 18 Feb 2022 13:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=1Ywfrq1aC91zFtf2Qac8phB9JmH5eAv0FPdSbKQLHlU=; b=My1/ZC6iwO7an4fwLNETrRdLNO5Jb5QgKJu3V4E4+9qoitCtkeZIi3tu+OJ6EQiLXf G2fxAjANCyHZnjqKYM21C/03eCTIZuxrbL1NDq1jilE9j6FrSmCP3vecQyDAwQ6YENK/ 0KVZSDYjRHtBIm9sebmj7sB4SmLjeAiamDRtq1wbKcQKhQ2qCG+cmew5VKCNhSMmCVED 9nwu5mx8jIkG/L1zd0JIOEIlH9kSrCJT6Wyfy4lGvBTy9nSiNUqJLb4rzWtqbldYS3Yl 0AjPIsYLKxaa/d4pqSQZMc4Fo9quHuVIYNf/t4U0mAY96u0kIlVv72Agkv5ikB8L0tVy nS7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=1Ywfrq1aC91zFtf2Qac8phB9JmH5eAv0FPdSbKQLHlU=; b=y1187YZ+GA/knGrc/RsRTwyZ2pzsHN8T2h1IGh0HLPZPsJ69tr9yPMAIOyJjjQG0xp p8XPKRcAG6gVeTlW+f4PEHvew3QFrrgK0cAAbgKecBmD+ih53outa3meyzzcwQed04ri KeUS/fQplJjx/OjS7q9W2A806ZSKzdipKzti1eL69AGLcd6mJFIbVIGqMgvCbVY9SoDx 1tgXxt31gFHO1irZGQgiu7G5SY4uFLztRioIk8saKcGagSR2BZC6FzMV6maJEnxVrE0x JXdadMpQTe0VbnR/vM9kb3V+t/CxrHFRA/dgT3nEjR+jyI825n2+RTIWbG2i8ouTtjvf kJQg== X-Gm-Message-State: AOAM5324amSrRB7gphwmWxmTw28Lth4SZuwHgmmme9LW8JkmWPjZt/25 PkJyRq5i+SuFM8JgxLbwZmNoNfiPzUM= X-Google-Smtp-Source: ABdhPJz261FuUl+jD55uWGUPeZw9uvDNJY8UZGAWqYQvUGbW77nW1dMVVMoIzRADaKcsF8ZPi/rOhg== X-Received: by 2002:a05:6870:4689:b0:ce:c0c9:706 with SMTP id a9-20020a056870468900b000cec0c90706mr4940651oap.344.1645219974509; Fri, 18 Feb 2022 13:32:54 -0800 (PST) Received: from fysion ([186.236.209.77]) by smtp.gmail.com with ESMTPSA id be19sm3018307oib.31.2022.02.18.13.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 13:32:53 -0800 (PST) From: =?utf-8?Q?Jo=C3=A3o?= Pedro de Amorim Paula To: Loris Bennett , Org Mode Mailing List Subject: Re: Unable to get current or via use-package In-Reply-To: <87sfshk06w.fsf@hornfels.zedat.fu-berlin.de> References: <877da4qihk.fsf@hornfels.zedat.fu-berlin.de> <87iltouoh8.fsf@ucl.ac.uk> <87zgn0nils.fsf@hornfels.zedat.fu-berlin.de> <87sfsq784j.fsf@gmail.com> <87sfshk06w.fsf@hornfels.zedat.fu-berlin.de> Date: Fri, 18 Feb 2022 18:32:49 -0300 Message-ID: <87wnhroo72.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::c2f (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::c2f; envelope-from=jpedrodeamorim@gmail.com; helo=mail-oo1-xc2f.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645220022; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1Ywfrq1aC91zFtf2Qac8phB9JmH5eAv0FPdSbKQLHlU=; b=RQEVJTTI8SCEPLNePeHa2qvF39WNM/vCi0m53WRT1Lqb9PpDI2x9A6TNFFJzK6fTjnmjAK is4QCqTVKRg/9Zo6QKIxeIQEpt3PLfvUuoim4pHTuWnIGsKrVDTkY4VCbW1sREKKcsl80R HuD2edSrmEaNaKUdVRhwiRxNq+x9M/cYIzjyNsn+JvVmsNYGgXCSdNYTxd7PlxwGRMrPoZ icsC2Vdo3MoQZJTmczDuvbrCKjbD4z6o9G5MK0TK6OXzAdoG5MVk0ioLr4NMC4b/it3HhO aceX7W1Vah6ayPqK4wfgbUhcdsgHkVr3it716OoNEodMs1hqZTRZcNC7lSoRqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645220022; a=rsa-sha256; cv=none; b=iRB7I3TtnTudQCGgFSde3ybz0Mm9neBSlH5cF6aT1dNF371XC9ItIr0U3FgIoOCHsTXz5o 16o6nEOA7DVcpPb7pwdLAY0i9DuMZK1hxCYIIkKXqy63Hs8A0h51WatSvNN8EznOG/8AAj 4bZDwORd1d0uRfnVO1ij37RzenlXyFxFqPMg2QaNNO1/CgJGdpCrbvAqqp+VwwA0PCxtP2 wti90H1t5KjgLgsYQ9VMe5P9uWHbJnITYVlG6a2OI5PeVllx5+AnpLgWoaN3iApMWx8Fdj Bf2lfztXla743wRVyqRe/5ntE8Sf/k0+CUSzjzIsbedsiXeosZu6FGzmfhw46w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="My1/ZC6i"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="My1/ZC6i"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6BC61395D4 X-Spam-Score: -6.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: lc+9IHzdM031 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 T24gMTcgRmVicnVhcnkgMjAyMiAxNjowMCwgIkxvcmlzIEJlbm5ldHQiIDxsb3Jpcy5iZW5uZXR0 QGZ1LWJlcmxpbi5kZT4gd3JvdGU6DQoNCj4gV2hhdCBleGFjdGx5IHdvdWxkIHlvdSBsaWtlIG1l IHRvIHRlc3Q/DQoNCkkgZW5kZWQgdXAgbm90IHBvc3RpbmcgdGhlIGxpbmtbMV0gSSByZWZlcnJl ZCB0byBpbiB0aGUgZmlyc3QgZS1tYWlsLA0KYnV0IHNpbmNlIHRoZW4gSSBnb3QgYmFjayBob21l IGFuZCB0ZXN0ZWQgdGhlIGZ1bmN0aW9ucyBwcm92aWRlZCB0aGVyZQ0Kc2VlbSB0byBiZSBkb2lu ZyB3aGF0IEkgZXhwZWN0ZWQuIFdpdGggaXQsIEkgY2FuIG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JncmFkdWF0ZSBhdCBVbml2ZXJzaWRhZGUgRmVkZXJhbCBkbyBSaW8g R3JhbmRlIGRvIE5vcnRlIChVRlJOKQ0KDQo= --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=init.el Content-Transfer-Encoding: quoted-printable (package-initialize) (defun pkg-description (package) "Return the description for PACKAGE. If PACKAGE is installed, the will be present on `package-alist', otherwise look for it in `package-archive-contents'." (or (cadr (assoc package package-alist)) (cadr (assoc package package-archive-contents)))) (defun pkg-ensure-archive (package) "Install PACKAGE from the archives, if not already installed." (when-let ((pkg-desc (pkg-description package))) (unless (package-installed-p pkg-desc) (package-install-from-archive pkg-desc)))) (defun require-package (package &optional force) "Ensure that PACKAGE is installed. If FORCE is non-nil, force installation regardless if PACKAGE is built-in or not. First, use `package-installed-p' to check if PACKAGE was installed via the Emacs package manager, otherwise, try to `require' PACKAGE; this ensures that we don't require PACKAGE if it was installed using the package manager. If both of those fail, run `package-refresh-contents' and install PACKAGE." (unless (and (not force) (or (package-installed-p package) (require package nil 'no-error))) (unless (assoc package package-archive-contents) (package-refresh-contents)) (if force (pkg-ensure-archive package) (package-install package)))) (require-package 'org :force) --=-=-=--