From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.devel Subject: Re: Change `customize-save-variable' to work under "emacs -Q"? Date: Mon, 11 Jul 2011 11:27:08 -0700 Message-ID: References: <877h7ok9cd.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1310410424 28661 80.91.229.12 (11 Jul 2011 18:53:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 18:53:44 +0000 (UTC) Cc: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 20:53:41 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 1QgLbw-0005ir-NN for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2011 20:53:40 +0200 Original-Received: from localhost ([::1]:57626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLbv-00087y-O9 for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2011 14:53:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLCN-0003ZE-9o for emacs-devel@gnu.org; Mon, 11 Jul 2011 14:27:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgLCJ-0000VH-Kn for emacs-devel@gnu.org; Mon, 11 Jul 2011 14:27:14 -0400 Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:36934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLCJ-0000Uz-5K for emacs-devel@gnu.org; Mon, 11 Jul 2011 14:27:11 -0400 Original-Received: by fxd18 with SMTP id 18so558761fxd.39 for ; Mon, 11 Jul 2011 11:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=9FQMflUkLEJP9OCM8Zix+SIo9ysIweHG03+kYJjfNp0=; b=jRBdhQPLyaAPHCtodz3oCUMxjDbsOpRGtQwIt8c2tT3y4qjHE0bsM1zGqhAsJPNodt DVMeo1naz4HFNmo5i3rib1Mn/HImv0EK2nZ9a53ma8v5Ab9lZQqp0mzrTkse11BEHE2F bhSmicOKBJ+rucVfycCUB1G55D5i+JRIDWhSs= Original-Received: by 10.223.14.11 with SMTP id e11mr7917846faa.131.1310408828852; Mon, 11 Jul 2011 11:27:08 -0700 (PDT) Original-Received: by 10.223.89.142 with HTTP; Mon, 11 Jul 2011 11:27:08 -0700 (PDT) In-Reply-To: <877h7ok9cd.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.52 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:141954 Archived-At: On Monday, July 11, 2011, Chong Yidong wrote: > 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. >> >> Would anybody mind if I changed that function to not error out, but >> instead just do a `setq' on the variable in question, if we're running >> under -Q? > > I think this is fine. > If the user asks to save a variable for future sessions, but you can only set it for the current session, *shouldn't* that be an error? -- -PJ