From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Option to not automatically customize-save-variable `package-selected-packages' Date: Fri, 19 Feb 2016 11:04:23 -0200 Message-ID: <87y4ag3l7s.fsf@gmail.com> 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> <87vb5l664f.fsf@fastmail.fm> <83mvqxrqql.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455887135 21675 80.91.229.3 (19 Feb 2016 13:05:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2016 13:05:35 +0000 (UTC) Cc: Joost Kremers , johnw@gnu.org, emacs-devel@gnu.org, angelo.graziosi@alice.it To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 19 14:05:30 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 1aWkkT-0005GD-G8 for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 14:05:29 +0100 Original-Received: from localhost ([::1]:52109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWkkS-000527-V0 for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 08:05:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWkkO-000521-Tx for emacs-devel@gnu.org; Fri, 19 Feb 2016 08:05:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWkkJ-0003BI-1v for emacs-devel@gnu.org; Fri, 19 Feb 2016 08:05:24 -0500 Original-Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]:34173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWkkI-0003B0-Uw; Fri, 19 Feb 2016 08:05:19 -0500 Original-Received: by mail-qg0-x230.google.com with SMTP id b67so60526281qgb.1; Fri, 19 Feb 2016 05:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=IILdM90UIxZbVIUEw8kdLlsxOQhDgExEwxTbC0YVIBM=; b=wUzTvO/302rZkfCmeA2tAd+OleneInaxiD1VlM6ICDAM1X4DRcwgyCEQPGCRdcePil GJBqLRjQn6ukn4DCkagbHxtP7uoWJtdfibviBSFwni15oDA4/+NAang/ODzXA1dXG5tw IcpiwvU3gFr+ZfS1dcfw+f9FS4FW++N+u1DBDyDiHm/B7JJ/6kqcOAPQD6b7OpeT3L6B UXESlXhTTGxoITemI2h0xkWz1mbSn1zIvcTsfC5kaIIL1uyA9p3j1Vafj184QFfgaIrI 0YkWEZMaZQKrQfVdLB14UGFjYHgkMUs4ZJ15fg7uj7Mt5buXLaG05I1ZeoeW5MzZWCwE 4GvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=IILdM90UIxZbVIUEw8kdLlsxOQhDgExEwxTbC0YVIBM=; b=MIbZ+toKJ/BVQM7XXHENRrLnAOpTDLp+8c+bhk9nrZ1Bk+sWgh/MzQl9Zb7J/Nl7UZ clSXwR36GEsv7RAp8UNZxRywHFYJQN2/JhzjMUIfCm6U/lMCRCQGx9/BMvvjRKxHqD/X 2zQaiRdRows6HcolcGG5LoF8kGgTc0aaIpn89leWiKd73Rzz6hN05rlNk2PqbLUdwdJf fqXuWYzpDQ6/g9onfb+XHN+SqRjdzxU78BEJtTps5TJYp7FCrxYPammtJZcN2cpE9Qc5 Y/TDQhyX525wSCUn1PtZaYkKg2t8kHY7caZVnCRUg/xdsBdRwUMOfm9pDRbnzCmTaAlW M6sQ== X-Gm-Message-State: AG10YOQeFOdeNIYcJpHXo2IByAhTix+86e00pm+3k+4uU2/HunutmlYkbdBl8w9B/JPtyg== X-Received: by 10.140.155.196 with SMTP id b187mr16367698qhb.14.1455887118596; Fri, 19 Feb 2016 05:05:18 -0800 (PST) Original-Received: from Gandalf-Linux.gmail.com ([179.184.224.5]) by smtp.gmail.com with ESMTPSA id b6sm4683493qkh.12.2016.02.19.05.05.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 05:05:18 -0800 (PST) In-Reply-To: <83mvqxrqql.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 19 Feb 2016 11:31:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::230 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:200208 Archived-At: Eli Zaretskii writes: > Is package--save-selected-packages called every time package.el is > invoked, even if the user doesn't change the list of the selected > packages? No. But it is called every time the list changes (either by installing or deleting a package). > Otherwise, the user could install a package, edit their .emacs to > convert the custom-set-variables forms into setq, [...] like > they have to do with any other customization that is system-dependent. > > Will this solve the issue? No, because package.el will still call `package--save-selected-packages' even though the variable has been set via `setq'. This will keep modifying the custom file, and the behaviour will depend on whether when the variable's value has been most recently set from the `setq' or from Custom. Meanwhile, with regular customizations, the user can just turn the `custom-set-variables' call into a `setq' and trust that Emacs won't reintroduce that variable there.