From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MPRYFKjcU2SdOgEASxT56A (envelope-from ) for ; Thu, 04 May 2023 18:26:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cDkpFKjcU2TRJgAA9RJhRA (envelope-from ) for ; Thu, 04 May 2023 18:26:16 +0200 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 2D23543AE4 for ; Thu, 4 May 2023 18:26:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1publu-0008JP-Ms; Thu, 04 May 2023 12:25:34 -0400 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 1pubdM-000752-3n for emacs-orgmode@gnu.org; Thu, 04 May 2023 12:16:44 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pubdK-00020P-Gu for emacs-orgmode@gnu.org; Thu, 04 May 2023 12:16:43 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pubdH-0008bn-Ie for emacs-orgmode@gnu.org; Thu, 04 May 2023 18:16:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [PATCH] epm.el: A CLI tool for package.el Date: Thu, 4 May 2023 23:16:33 +0700 Message-ID: References: <87sfx7degz.fsf@gmail.com> <87v8ks6rhf.fsf@localhost> <87r0t3gahd.fsf@localhost> <87wn2ujk27.fsf@localhost> <87jzymk3dq.fsf@localhost> <87o7nsdkcw.fsf@localhost> <878remykby.fsf@localhost> <877cttirgy.fsf@localhost> <874jospf6w.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US In-Reply-To: <874jospf6w.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-4.28, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683217576; a=rsa-sha256; cv=none; b=IxRAXqqnGUL7UKNc5CQRnSbuM/OUQaoV0xGrqB35AVaDfrAjttjHXPurxl3q0CKKYaVhXW QlJkOiG9BbdQVsNS8W6DDVuB5VI/ufzvPLZu/MwIiaRUvbe8/Jq9n1bZlNZ/plzMuHoh7h LV+jQOQWEjTCmnC2T2nidRyj8I1YqwTnj2WZBn73diJvhRY4ECp873rM4r590ZD4FUIqQz CWtJoChSAToTZZOZCSz5IL/MYXxHrF/eubiTZYKoM95s6szkwsnEiIRaCnwbPMKdAqH0tI GHMB1+zBqzYx39V7/ftuRU3Vhwttgk+ogFl2y1lOPwjkcxDtZwWAPOalAKUfNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683217576; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=N46OGmtNwU7525aTwL3paE7aXD+b2wJZ9Hze/cun9NY=; b=sG5qAMwVYpSmr1MYj0NffwstIamrSixyD8Pb5ghDgZvYF8gc+b9ZUO/+GME2QgYZeFTUHp Q1FbHFzVEMJjlqUsDZHGKMU9YYhclC3i9liwS4qb6WjSIzaAOU+lRTtPRkUo+JzDwswJcE vUdC6BTQ19b3e2ZW36zGVM+F1h8QhKpQ6Ocg5pJWk1F4XnBRsEIddKeWDO/lazEu6UHdu1 KtvWhlkCatqTVkpKfGOWVp/XWdeap7hsFSQ+pzekJ0KyfKjyrb+aj14dlhZkg75KvlNHS/ cEcb2kf8OoP5/3zpZLuXqGAMjG1W2pCOb6qjKa75W3x59wHHgG7cAH+Yr/ufWw== X-Migadu-Spam-Score: -0.11 X-Spam-Score: -0.11 X-Migadu-Queue-Id: 2D23543AE4 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-TUID: p4gKPPqTlKce On 04/05/2023 17:24, Ihor Radchenko wrote: > Max Nikulin writes: >> For those who are not familiar with convention any target may be >> specified in docs, keeping usual meaning of the default "all" target. > > I am mostly concerned about the existing users who are already settled > on running the default "make". Their workflow will be broken with your > suggestion. I hope, it is possible to achieve helpful error message with a link explaining change. >> An I am unsure concerning user prompt. > > My main concern is for the users who changed their elpa directory > location. They might run into issues unexpectedly. My opinion is that an error is better for make than user prompt. Try to load from default `package-user-dir' but install there only if it is explicitly enabled. >>>> #!/bin/sh >>>> ":"; # -*- mode: emacs-lisp; lexical-binding: t; -*- >>>> ":"; exec emacs --script "$0" "$@" >>> >>> Let's not lock to bash. AFAIK, our makefiles can currently work on >>> Windows. Using /bin/sh will lead to regression. > > I thought that more portable way is using "env". Either env would invoke sh anyway (like in org publish scripts) or it is necessary to use env -S feature of relatively recent GNU env. For cmd.exe it is better to provide a .bat file running emacs --script epm.el ...(something for POSIX $@) >> +(defun epm-nonempty-p (s) >> + (and s (not (string-empty-p s)))) > > Can just use `seq-empty-p'. I am neutral in respect to such change. I just decided to minimize dependencies. >> + ;; TODO (load site-run-file 'no-error 'no-message) >> + ;; may be necessary to load elpa-* deb packages when -Q option >> + ;; is used. See Info node "(elisp) Init File". > > Given the explanation in the top comment, is this necessary? Do you have any arguments against switching from emacs -Q to emacs -q? I am still unsure if it is safe enough, but not doing it is not better. I am considering adding -q to this script when it is called directly. Unfortunately Emacs does not have an option to override effect of -q.