From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.help Subject: Re: Using the same custom file in two different OSes Date: Mon, 14 Jan 2013 20:42:43 +0100 Message-ID: References: <419D9CDD3C2740E3B0E0CDE556F7BD12@us.oracle.com> <3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1358192573 18259 80.91.229.3 (14 Jan 2013 19:42:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 19:42:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 20:43:11 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Tupw3-0005ps-8f for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 20:43:07 +0100 Original-Received: from localhost ([::1]:44674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tupvm-0008T9-LC for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 14:42:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tupvh-0008QX-79 for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 14:42:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tupvg-0003Xo-AL for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 14:42:45 -0500 Original-Received: from mail-ob0-f172.google.com ([209.85.214.172]:38471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tupvg-0003XU-6O for help-gnu-emacs@gnu.org; Mon, 14 Jan 2013 14:42:44 -0500 Original-Received: by mail-ob0-f172.google.com with SMTP id za17so4292699obc.3 for ; Mon, 14 Jan 2013 11:42: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; bh=nYbI1hybOuAZXkTld4MyV1AEbNi2/kOhXAxERVhz6Jw=; b=BILikAfASZiW5KC3EgfuaLnXrEycRaGJI6R22dZptYt6C7MwzR9IpuI8t4cd0YrBLU pqcnfrjYCQlYIrNCB0q2VAHEMq5gfbjJFpFKaMLz+h82bq/6/xWhLlB6uvUAXfv0Uxu6 bL8+47pyagqtrPEa+BtX3tK0Z0tIDOyeITXvGLe7mWNj96aXBiVBEhNuXmrIeK5IBXyi 2vChTCJvHzH25HweORXByQkbGETP9ii8hMS/VLFMHch08JIes5lxWy/ZQrNP7kpgnVU0 SqbUtdeYAHhgkzoqqD1Iv85LIqNbdh+CcGoG9o7xEE/sirPkDPEoIwWeuImA+IF5TGEv NWAQ== Original-Received: by 10.60.1.168 with SMTP id 8mr33494177oen.46.1358192563474; Mon, 14 Jan 2013 11:42:43 -0800 (PST) Original-Received: by 10.60.11.39 with HTTP; Mon, 14 Jan 2013 11:42:43 -0800 (PST) In-Reply-To: <3F565B0F873C4BCCAA938FB0B136521E@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.214.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88615 Archived-At: >> That works, but I've observed that each time I save any customization, >> my custom file is regenerated with _all_ the customization loaded at >> that time, and the platform-specific stuff that I removed from my >> custom file is then reinserted. > > That should not happen. If that is the case then it is likely because your > custom file was restored to its original state after the session where you > modified it. Try modifying it in a separate session - even an emacs -Q session. > > Check your custom file after you have quit the Emacs session where you modified > it. You need to have it be as you wanted it: without the stuff you removed. > > You might need to fiddle a bit, to ensure that. Once that is the case, the > stuff you removed will never be added again. Mmmm I'm afraid I'm unable to keep my custom file free of my platform-specific stuff. I've just seen this behavior: 1. I remove the `default' and `variable-pitch' lines from my custom file. 2. I exit Emacs, start it again and verify that my custom file doesn't have the lines I removed. Note that this session has loaded my init file, which first loads my custom file and then makes the platform-specific customization (in that order). 3. I do some customization (change the box-width property of the `mode-line' face, for example), and save it (C-x C-s). 4. I reopen my custom file and see that the two lines I removed in #1 have been reinserted. Changing the order (first do the platform-specific customization and the load the custom file) doesn't help. The custom file is regenerated (when I save any customization) entirely, including the `default' and `variable-pitch' faces. -- Dani Moncayo