From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: Option to not automatically customize-save-variable `package-selected-packages' Date: Thu, 18 Feb 2016 22:49:52 +0100 Message-ID: <87vb5l664f.fsf@fastmail.fm> References: <56C43D17.7010009@alice.it> <831t8aufoe.fsf@gnu.org> <8737sp51vx.fsf@gmail.com> <83fuwpubpn.fsf@gnu.org> <87egc9ahav.fsf@fastmail.fm> <834md5u426.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455832231 25399 80.91.229.3 (18 Feb 2016 21:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2016 21:50:31 +0000 (UTC) Cc: johnw@gnu.org, emacs-devel@gnu.org, bruce.connor.am@gmail.com, angelo.graziosi@alice.it To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 18 22:50:20 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aWWSo-0005rc-Hb for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 22:50:18 +0100 Original-Received: from localhost ([::1]:45962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWWSk-000502-MF for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 16:50:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWWSW-0004xd-QP for emacs-devel@gnu.org; Thu, 18 Feb 2016 16:50:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWWSS-0005Yv-Nl for emacs-devel@gnu.org; Thu, 18 Feb 2016 16:50:00 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWWSS-0005Yd-Je for emacs-devel@gnu.org; Thu, 18 Feb 2016 16:49:56 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3592420B4C for ; Thu, 18 Feb 2016 16:49:55 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 18 Feb 2016 16:49:55 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=lyrrr sSR4ZtmzwOzSPn0GwX3sGU=; b=Pd+jnmt4COrM5zPpQADT6P9eGgoRG49cVXsRd V2t+nz52O2xx/nCaMasAv24cnQ1bRGnXlSmrNT0CeUZhCqKH84SlD7wEaRN+f61C pDqKDwfdzRtpksbkUXNrrbD2USynHWq0Undv8b8ebygnaXMXM1HO3GCzbBDCZQXS AbRbXo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=lyrrrsSR4ZtmzwOzSPn0GwX3sGU=; b=N1AQz BhxzYS423K9WJuxyno+yJiJBXLVJXHWp0cSDKukcNQt3AV/Sd/kJ+2cMBnQYG2lp 1Jy/K9LA04AW2QItrIBtVHZEtmGcraVYuRTjjaSt8DwSNS3v9ibl1/O/uXbrTkeK ATZEFOH2LULAQkvJHKI1E2RpU7J77sMdtFbDGU= X-Sasl-enc: /GECVf00kgO7Efq+23ArdUa/5ZLnYmKIeQ0d8tlgE01N 1455832194 Original-Received: from IdeaPad.messagingengine.com (x5f774ba2.dyn.telefonica.de [95.119.75.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 18B66C00018; Thu, 18 Feb 2016 16:49:53 -0500 (EST) User-agent: mu4e 0.9.17; emacs 24.5.50.1 In-reply-to: <834md5u426.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200161 Archived-At: On Thu, Feb 18 2016, Eli Zaretskii wrote: >> From: Joost Kremers >> Cc: Artur Malabarba , johnw@gnu.org, angelo.graziosi@alice.it, emacs-devel@gnu.org >> Date: Thu, 18 Feb 2016 21:34:48 +0100 >> >> On Thu, Feb 18 2016, Eli Zaretskii wrote: >> > I see no fundamental difference >> > between saving the value of a defcustom and saving the list of >> > packages the user decided to install. >> >> I think the main difference is that as a user, I can decide *not* to use >> Customize to set a particular defcustom. I can use a setq in my init >> file instead. > > Can't you do the same with the list of installed packages? Can I? It was my understanding that package.el will write the list of user-installed packages to custom-set-variables and there's no way for the user to prevent this from happening. A quick look at the code of package.el (on emacs-25 and on master) seems to suggest this is indeed the case: `package--save-selected-packages' is added to `after-init-hook' and the function itself appears to save the package list unconditionally. Or am I overlooking something? -- Joost Kremers Life has its moments