From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: package-installed-p issue. Date: Sat, 9 Jan 2021 03:47:56 +0100 Message-ID: <20210109024756.en34g7b7ol45qtqs@Ergus> References: <20210109024756.en34g7b7ol45qtqs.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31260"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 03:49:04 2021 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 1ky4JL-00082P-Ni for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 03:49:03 +0100 Original-Received: from localhost ([::1]:44636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ky4JK-0003pf-Nr for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 08 Jan 2021 21:49:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ky4If-0003pU-7L for help-gnu-emacs@gnu.org; Fri, 08 Jan 2021 21:48:21 -0500 Original-Received: from sonic302-1.consmr.mail.bf2.yahoo.com ([74.6.135.40]:45424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ky4Ic-0008NL-Jw for help-gnu-emacs@gnu.org; Fri, 08 Jan 2021 21:48:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1610160495; bh=/JE1KYIgDmahdvqeo2vXjh8C86rnqo9v8r5NJUF4rO0=; h=Date:From:To:Subject:References:From:Subject; b=CEUkxDai1M2mTwOZ8rS0wX0zEnNQ4qOJn1BU/RS88XhhZInQ1cURahA84NSQoi7rpalsV3YhwJ/l8GC4+X4T1cBRTZ9jl/zbaoXxF6zs6Xp3yLZQskUObg1iw6I4wBS76RA+79c7OVcFgAtB6Obnm+enju3ivCHGuE1PTpaU94UJZH6ryeFsAD1A2Xc3oyeBl+rsiGycA8075OSS4/IqVYbPKqAL5FC1VM2ztzZS9qXoYG1rDaLIBk6c+EdOONZ2G8iZleR9TR1ENdym5hcr3C/pKlx7AiBWh43WmTbb99mMXefJPT0FeeJhry71UaEsnD71U50Z3qjxF3PaUEsWJg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1610160495; bh=dwSbyF2RDXioe6kSarWzQAWGoU0UJay0xGYCMs9n3Ib=; h=Date:From:To:Subject:From:Subject; b=Uh0amjr9gEYFakN4wzi//KxfEDsL89eJHC3ZoJoyOVj6Xq79b1yQjSMYIrQyo9qFmEyM3xrNKwJqhBYc1+Ip1NiCKvh9edZbjr6k5F2XNQuxTgbpl3zLBX8Ne2ZGctNHDknzheUhRI83igv35nmK4rIcMLQPRIR8sF2OIJVvCpI9pwCLgMwotXUSQhVBJfdLvjt1UVjQVpIGO80jnn2qHAe5HJA2j0aSFvWz3H8UEOft86Ye9obwvLadthRt7gWLJhE3HcNr01+bd+aaSguhTWQEG25qxsXaQUNsewTKoYUQ8eIaPt79WUf7MdFWBAdq0s8WXVnoYwLv7dSZf7Jsfw== X-YMail-OSG: NS5Z23oVM1li7y8yhu.cEsJD961u5a2prordbjoLd7GhVc8svvPuQkKu6E9Nl7l 906W7dOJ_ZZyCL7.w0NVC3vgPKAhOAnW99YrPQnA9vmw_ezLr6bUkwYubFRQN0yGVzENZcGcDNsS _sMDYA4rCUhG08L75fni9PGU8g7.H05HleQbEbkwU3GWHL7EYSo6v8h6g7h3kTMNGWXsFVVwrN.r LoYBieyoHi3FaAD2VmjbfxQovbxsORdTXPf4kAb0MuXkBQQ_B3iVkfqtdph8U3raNdiskDB5bmD4 YqyH.9KHVzNBw5YQmOkgATbbkKlhccg6uADZenpvt9QzVpi5kmYBVBaEHZRk3opOTGJpEZO2kvec gg5Gej_fzQ4ORNQcL7phae22.wzS5A1qieutb5vWf5gDmP.Nrk621xsENTPsUO1_YV0SY9KM8RtV blvSXLWYj8G8iKuH76v8pLsJb19IhgoQnNSAoy0Rn187K6wMBS1LkHeRMbUAlxzM5dyghr4QY4_6 oiMPFZdqA95sRUsx_DTyxl7Xaz32akrey3bC82y8yRmkxEy_5GurqnFchgHhNYArAVJBUFEY7Tx0 JrgeXQ528hmagdvm.zriEo2tly1POegRbVw6EtkOhEhaejrAdlZSg2qVumOvAUGhkgaXRTyVw3Os KYqwtQEd3Fs9rzOMxHnJZIO1OkBUh1jmM5kxAJZSfs6ARJcqc6LAKYPOpMm6cyJ0mKT8_ZT_jIpR RSbuoS11Z19KZpylcnJVFvxutaM6z82SOslpw7E0VkVxIuUEnivcVi3Hp3ublalo_KWG_.G84KUw 7.xBbrLC9X4wAEZ1OvYwwMIyOLoB3idq9txKeUXdaU Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Sat, 9 Jan 2021 02:48:15 +0000 Original-Received: by smtp420.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 9fa766c792e3981730ff36792cd6f2a1; Sat, 09 Jan 2021 02:48:12 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.17501 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.8) Received-SPF: pass client-ip=74.6.135.40; envelope-from=spacibba@aol.com; helo=sonic302-1.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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" Xref: news.gmane.io gmane.emacs.help:127113 Archived-At: Hi I'm trying to simplify some of my code in the init file and something like: (package-installed-p 'use-package) Triggers an error so I need to do something like: (unless (fboundp 'package-installed-p) (require 'package)) (unless (package-installed-p 'use-package) ... ) My question is: Shouldn't package-installed-p be an autoload? Is there a reason why it is not an autoload? Some time ago package-installed-p was loaded when calling package-initialize but now such call is not required anymore. So what's the right way? Thanks in advance, Ergus