From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Scholtes Newsgroups: gmane.emacs.devel Subject: Re: Change `customize-save-variable' to work under "emacs -Q"? Date: Sun, 17 Jul 2011 08:33:03 -0600 Message-ID: <4E22F29F.9010006@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310913218 6369 80.91.229.12 (17 Jul 2011 14:33:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 14:33:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 17 16:33:34 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 1QiSPV-0006ug-Vx for ged-emacs-devel@m.gmane.org; Sun, 17 Jul 2011 16:33:34 +0200 Original-Received: from localhost ([::1]:59326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiSPU-0000Me-H6 for ged-emacs-devel@m.gmane.org; Sun, 17 Jul 2011 10:33:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiSP8-0000Lh-1t for emacs-devel@gnu.org; Sun, 17 Jul 2011 10:33:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiSP6-0004Hw-EF for emacs-devel@gnu.org; Sun, 17 Jul 2011 10:33:09 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:60944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiSP5-0004HT-Pb for emacs-devel@gnu.org; Sun, 17 Jul 2011 10:33:08 -0400 Original-Received: by iwn8 with SMTP id 8so2630370iwn.0 for ; Sun, 17 Jul 2011 07:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=6yCyMohf5kfPtbp30qxET2npkUkUBikRRwGRzh+3iWc=; b=ku7R1vkRlZOPAm8gawYdlD03WhsQqcDkEuYu6g6R0XVF7yg/57gSaVT+hLRsbdroDv kYxc33FvgrQwtexolyGhXbjTUzg4jzgNHHKcZYIVTCL8OZrSJ4D4WeAcNhnG5XPSZaVg QC6BK5lLbYnnfi724AyeGPipU6KxXGxT8k5+0= Original-Received: by 10.43.47.67 with SMTP id ur3mr5342644icb.382.1310913186556; Sun, 17 Jul 2011 07:33:06 -0700 (PDT) Original-Received: from [192.168.1.4] (71-208-132-119.hlrn.qwest.net [71.208.132.119]) by mx.google.com with ESMTPS id o1sm3808622ict.8.2011.07.17.07.33.05 (version=SSLv3 cipher=OTHER); Sun, 17 Jul 2011 07:33:05 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.169 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:142070 Archived-At: On 7/10/2011 6:22 AM, Lars Magne Ingebrigtsen wrote: > 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 am not sure if this is related to this, but I just encountered a rather awkward situation. I run on Windows with my configuration stored in `~/.emacs.d/init.el'. I did a recipe for a bug from `emacs -Q' and tried to submit a bug report. It asked me whether I wanted to save the SMTP setup, which I replied no to. It then proceeded to pop up the configured MUA (Thunderbird) to send the bug report. Next time I launched Emacs it did not load any of my custom configurations. Turns out it wrote a `.emacs' to to ~/, which contained the '(sendmail-query-once-function (quote mailclient-send-it) t) and was loaded in favor of my configuration in `.emacs.d'. I can see this potentially being very confusing for people. Do we have to save this custom variable even when running `emacs -Q'? Christoph