From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Change `customize-save-variable' to work under "emacs -Q"? Date: Mon, 11 Jul 2011 11:08:25 -0700 Message-ID: <9F2919F4A0FC45149C4216E5AC0578AF@us.oracle.com> References: <877h7ok9cd.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310410084 26526 80.91.229.12 (11 Jul 2011 18:48:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 18:48:04 +0000 (UTC) To: "'Chong Yidong'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 20:48:00 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 1QgLWR-00034Y-OV for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2011 20:47:59 +0200 Original-Received: from localhost ([::1]:58353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgLWQ-0007J7-VB for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2011 14:47:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgKuK-0007az-TX for emacs-devel@gnu.org; Mon, 11 Jul 2011 14:08:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgKuJ-0006Fc-3s for emacs-devel@gnu.org; Mon, 11 Jul 2011 14:08:36 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:47492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgKuI-0006FI-Hb for emacs-devel@gnu.org; Mon, 11 Jul 2011 14:08:34 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6BI8Vi7024535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 11 Jul 2011 18:08:33 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6BI8UZ7006646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jul 2011 18:08:31 GMT Original-Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6BI8Pwa015898; Mon, 11 Jul 2011 13:08:25 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 Jul 2011 11:08:25 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <877h7ok9cd.fsf@stupidchicken.com> Thread-Index: Acw/8tl3L3fK2w1WSomv/1rw9aMrRgAAQ2Vg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4E1B3C21.00A0:SCFMA922111,ss=1,re=-4.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:141953 Archived-At: > > 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. Ouch! Maybe I'm misunderstanding, but a user in `emacs -Q' who does `M-x customize-save-variable' and sees no error message will expect that it has been _saved_, no? Likewise any code that a user might run that calls `customize-save-variable'. How can we _silently_ convert saving to just setq? The user will think that something is saved when that is not the case. Sounds like asking for trouble, to me. But maybe I'm missing something. Why is this better than raising an error and letting the user then use `setq' etc.? Why hide the situation from the user? I would think we would want to take advantage of the opportunity to remind the user that s?he invoked `emacs -Q', so no init file, so no place to save the option. Also, why would we convert to just `setq' and not `customize-set-variable'? The latter DTRT wrt :set etc.