From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Newsgroups: gmane.emacs.devel Subject: Re: feature/package-vc has been merged Date: Mon, 07 Nov 2022 01:58:03 +0100 Message-ID: References: <164484721900.31751.1453162457552427931@vcs2.savannah.gnu.org> <874jvqv2u3.fsf@posteo.net> <875yg6qtbl.fsf@posteo.net> <87ilk33lqk.fsf@posteo.net> <87mt9epqlk.fsf@posteo.net> <87ilk1bgvd.fsf@posteo.net> <87edupbdp0.fsf@posteo.net> <875yg1bc02.fsf@posteo.net> <878rkxgpms.fsf@posteo.net> <87sfiyk3a2.fsf_-_@posteo.net> <87mt948pmo.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26914"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Richard Stallman , emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 07 01:58:57 2022 Return-path: Envelope-to: ged-emacs-devel@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 1orqTZ-0006kz-2T for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Nov 2022 01:58:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orqSr-0007ed-3l; Sun, 06 Nov 2022 19:58:13 -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 1orqSp-0007cB-KN for emacs-devel@gnu.org; Sun, 06 Nov 2022 19:58:11 -0500 Original-Received: from mr85p00im-ztdg06011101.me.com ([17.58.23.185]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orqSo-0002EE-2J for emacs-devel@gnu.org; Sun, 06 Nov 2022 19:58:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1667782687; bh=iJPzUi1jfEP+xva4NrD7XyrLQZdSFXTp7Hcj7pDBvbM=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=l1b4lnhhqOM7PcfjgnTRs1XuS+0+r0iy4Qwq/ZpempM2kHGlkY1ZWTHSD2jQIES2z +qMS3VqGhomNcHiRTbIOFmTWxazrEAiu4ggBudnH24tLJIbMFVadkuQ1N47kRIdNTJ 37WRUMsT7pLAkIa9/yDqxDmp4izavB5BvTYwwd9k6i/RwEP41ZccbXdiSqb9UZyBci Pd+NHmVWCeugmTvSKFGGpkK5se5gvfPIFCxLV7rRYTHDBfbEzNVvF7myFdoB1Aw1MF 1rORDqGT5nCwh5I+eK74IRdDSlcAboQLti3eJU/LKDNTanrw7d2938s5MSiOmYjQCL J0+fllupaQFcg== Original-Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06011101.me.com (Postfix) with ESMTPSA id C935FDA07FA; Mon, 7 Nov 2022 00:58:05 +0000 (UTC) In-Reply-To: <87mt948pmo.fsf@posteo.net> X-Proofpoint-GUID: 2nNSqQWlp7ec3bMzP3ErW0HV1sepREAM X-Proofpoint-ORIG-GUID: 2nNSqQWlp7ec3bMzP3ErW0HV1sepREAM X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.816,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-18=5F01:2020-02-14=5F02,2022-01-18=5F01,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=917 clxscore=1015 suspectscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211070005 Received-SPF: pass client-ip=17.58.23.185; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06011101.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299272 Archived-At: Philip Kaludercic writes: Thank you for reading my first-time user experience! > What I had in mind was for `package-vc-selected-packages' to be used > as is. It is an autoloaded option with a custom setter that installs > all "selected packages" as a side effect. > > As the manual says, all you need to do is write > > (setopt package-vc-selected-packages '((modus-themes))) > > [...] As both a developer and a user, I remain cautious about any "magic" that makes it harder to tell memory access from arbitrary execution of some instructions. Many new and "modern" mainstream languages, such as Swift, make that mistake. I like the clear distinction between `foo' and `(foo)' in Lisp. I even like the `*' in C that clearly says "a pointer". Brilliant ideas lost to the history in most modern languages. But I digress! I would never expect `setopt' to do networking. In fact, I use `setq' everywhere, like almost everybody else, because I know exactly what it does, at the call site. With `setopt', I can only guess. But anyway, I have a practical reason to say all this: I have a literate Emacs configuration, mixed with notes. In it, any part can add *some* package to the selected packages but any part can also rely on the availability of *all* installed packages. To get this freedom, I install the selected packages early on the after-init hook. Then, all configuration blocks, evaluated in any order, can count on all installed packages. Any number of times, anywhere, and evaluated in any order: (with-eval-after load '... ...do anything, all packages already installed...) (add-hook 'after-init-hook ...do anything, all packages already installed...) Once, does not matter where: (add-hook 'after-init-hook ...install selected packages... -99) Rudy --=20 "Programming reliably -- must be an activity of an undeniably mathematical nature [=E2=80=A6] You see, mathematics is about thinking, and doing mathematics is always trying to think as well as possible." -- Edsger W. Dijkstra, 1981 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia