From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Change `customize-save-variable' to work under "emacs -Q"? Date: Mon, 11 Jul 2011 11:30:47 +0900 Message-ID: <87fwmdv99k.fsf@uwakimon.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310351467 17801 80.91.229.12 (11 Jul 2011 02:31:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 02:31:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 04:31:03 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg6H1-0008AB-3y for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2011 04:31:03 +0200 Original-Received: from localhost ([::1]:45213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg6H0-0006Lu-3c for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2011 22:31:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg6Gj-0006LW-1b for emacs-devel@gnu.org; Sun, 10 Jul 2011 22:30:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qg6Gh-00030T-OC for emacs-devel@gnu.org; Sun, 10 Jul 2011 22:30:44 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:47880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg6Gh-00030B-7D for emacs-devel@gnu.org; Sun, 10 Jul 2011 22:30:43 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id C6B973FA0709; Mon, 11 Jul 2011 11:30:41 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 571EB1A26B0; Mon, 11 Jul 2011 11:30:47 +0900 (JST) In-Reply-To: X-Mailer: VM 8.1.93a under 21.5 (beta31) "ginger" cd1f8c4e81cd XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.223 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:141927 Archived-At: Lars Magne Ingebrigtsen writes: > If you run "emacs -Q", and you have a piece of code that calls > `customize-save-variable', it will error out, saying that it won't > overwrite the conf. If that's not the appropriate thing to do, isn't the piece of code abusing `customize-save-variable'? Customize itself is carefully designed so that the user has the choice of a one-time setting for this session, and a persistent setting. Code that calls customize functions should similarly respect the user, no? > Otherwise all the callers end up doing this very awkward thing: Why would they do that? Maybe the smtpmail-smtp-* functions are special in this regard, you can be the judge of that, but I would think that most callers are simply trying to provide an even higher-level front-end to Customize, and would respect its conventions about user intent to make a change persistent.