From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Demoting `custom-file' to a defvar Date: Sun, 8 Nov 2015 17:15:43 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447002951 21186 80.91.229.3 (8 Nov 2015 17:15:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Nov 2015 17:15:51 +0000 (UTC) Cc: Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 08 18:15:51 2015 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 1ZvTZE-0008HY-Sh for ged-emacs-devel@m.gmane.org; Sun, 08 Nov 2015 18:15:49 +0100 Original-Received: from localhost ([::1]:48203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvTZE-0006lT-8q for ged-emacs-devel@m.gmane.org; Sun, 08 Nov 2015 12:15:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvTZB-0006lM-Fm for emacs-devel@gnu.org; Sun, 08 Nov 2015 12:15:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvTZA-0002Gh-JR for emacs-devel@gnu.org; Sun, 08 Nov 2015 12:15:45 -0500 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:36803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvTZA-0002GX-Di for emacs-devel@gnu.org; Sun, 08 Nov 2015 12:15:44 -0500 Original-Received: by wmww144 with SMTP id w144so59675362wmw.1 for ; Sun, 08 Nov 2015 09:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=J9cCYnebr97ThE84CR8//BhGlGMbeYy/T8+eBDJ6Y+4=; b=ZuJvKbZaoRcHadz6Atj8CNWDy9AcQYIj/UXlXnCkw4rT/8g6A3v+F6/uaH+9FDxylH P7v3Tr/bZXRldWGFAG1Obrd8CC8rkbSbqD3LFirgEThQyexRU7eiep3I1D0J4+YkmANM SJGvAa799E+LXQkgSCwXeU5Rvnk3SDmvAY8vOOFxREfpfhK5JYZrpzb8vsfWC0oLX1w6 ZDS1yJZhDB9NdddYfzIA2o4KuWlS6DI4ud5WnvyFWviZiPwsciraCCuVoXe+pz92QN4B mjsjPqhbBbhYleJvUwIUJw3DN+VMtsxdkZmybKuCtBoOhERkEa+uLRfKpMwAD2XfFoAC jfaQ== X-Received: by 10.28.229.212 with SMTP id c203mr19691958wmh.11.1447002943372; Sun, 08 Nov 2015 09:15:43 -0800 (PST) Original-Received: by 10.194.16.231 with HTTP; Sun, 8 Nov 2015 09:15:43 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c09::235 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:193626 Archived-At: 2015-11-08 16:31 GMT+00:00 Drew Adams : >> Honestly, this sounds like a bug to me. Perhaps there's some >> witchcraft involved, but I fail to see how it can be possible to save >> `custom-file' via the customization interface and have it be properly >> loaded on the next session. >> >> Unless someone would like to correct me on that, I'd like to >> just demote it to a defvar. > > I don't disagree that it is a gotcha, which is why I mentioned > it. (And I've mentioned it before.) I disagree that it should > simply be changed to a defvar. (But I don't feel strongly about > it.) > > Please read the doc string of option `custom-file' carefully. > IMO, users should be able to take advantage of Customize when > defining the value. Thanks for the pointer, here's the relevant doc part. > If you save this option using Custom, Custom will write all currently > saved customizations, [...] into the file you specify [...]. It will > not delete any customizations from the old custom file. You should do > that manually if that is what you want. You also have to put > something like =E2=80=98(load "CUSTOM-FILE") in your init file, where > CUSTOM-FILE is the actual name of the file. So it looks like saving it through customize spares the user the trouble of copying over the 2 sexps to the new file. They still have to load the new file from their init file, and delete the old sexps. Sounds like a misfeature, IMO, so I'm still in favor of demoting it (though not quite as eagerly as before). > What's missing is up-front mention of this in the manual, > at the place where we explain the init file (node Init File). > > The general recommendation should be to use `custom-file', > and in nodeInit File' we should present a simple init-file > example that shows how to do this. Agreed.