From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: gnu-elpa package need customization not to nag all time Date: Sun, 06 Dec 2020 22:46:19 +0300 Message-ID: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27806"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 20:47:32 2020 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 1km00K-00078S-EX for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 20:47:32 +0100 Original-Received: from localhost ([::1]:41320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1km00J-0002Ai-G6 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 14:47:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzzm-00029g-TF for help-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:46:59 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:54853) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzzl-0001Wd-3f for help-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:46:58 -0500 Original-Received: from localhost ([::ffff:197.157.0.57]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0006.000000005FCD350E.00001EA0; Sun, 06 Dec 2020 19:46:21 +0000 Received-SPF: pass client-ip=95.85.24.50; envelope-from=support1@rcdrun.com; helo=static.rcdrun.com X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:126096 Archived-At: Hello Stefan, I think that gnu-elpa package that asks users to install some complimentary packages should not do that by default. Let users decide to activate such nagging or warn them. I said already no, then even in Org file it asks me to install sql-indent. I do not need SQL indent and never needed it. This gives you user experience for your further design of the package. I just found it is this package asking me. (defun gnu-elpa--perform-autoload () "Prompt to install the package that provides the currently autoloaded function. The relevant function is found by walking the stack until we find a function. Presumes we're in the process of calling an autoloaded function that's not yet loaded." (let* ((f (gnu-elpa--autoloaded-function)) (pkg (gnu-elpa--package f))) (unless (yes-or-no-p (format "Install package %s? " pkg)) (error "Abort!"))