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.devel Subject: Re: Infrastructure for packages to suggest customizations Date: Tue, 16 Feb 2021 09:09:27 +0300 Message-ID: References: <877dn8bytq.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12139"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 16 07:19:05 2021 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 1lBthR-00034w-0P for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Feb 2021 07:19:05 +0100 Original-Received: from localhost ([::1]:44850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBthQ-0001kS-3G for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Feb 2021 01:19:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBtgq-0001LK-QP for emacs-devel@gnu.org; Tue, 16 Feb 2021 01:18:28 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:54213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBtgo-0002rF-Oq for emacs-devel@gnu.org; Tue, 16 Feb 2021 01:18:28 -0500 Original-Received: from localhost ([::ffff:197.157.34.167]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000012080.00000000602B6390.0000078A; Mon, 15 Feb 2021 23:17:51 -0700 Mail-Followup-To: Philip Kaludercic , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <877dn8bytq.fsf@posteo.net> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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.23 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" Xref: news.gmane.io gmane.emacs.devel:264871 Archived-At: * Philip Kaludercic [2021-02-16 04:17]: > There are a few things I am not satisfied with, such as that the default > behaviour for package-suggest-configuration is to just append the > generated configuration to `custom-file' or `user-init-file'. Part of my > intention was to generate code that can easily be changed and adapted by > the user (unlike custom-set-variables), so I don't analyse the files > themselves. This might not look nice in some cases, but then again, > these people are probably not the ones using this feature It should be in the user's init file. Those suggestions could define custom variables and use custom interface to save them. > Another point is that package-suggest-configuration has an option such > that the command will not change anything (PREVIEW, activated with a > prefix argument). I was wondering if it would make sense to make this > the default behaviour whenever the command is invoked interactively. In my opinion it should change as that helps users. It is always better that computer assists human in full. Another point is that those suggestions, if you think they could be intrusive or become intrusive too much, should be enabled by the will of the user. If it becomes part of NEWS then I suggest that users first have to enable the option to be asked about that. But if not too intrusive, maybe it should be by default. In general, questions like that should be asked once automatically, and user shall be told how to customize it again or how to get asked again manuall.