From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "D. D. Brierton" Newsgroups: gmane.emacs.help Subject: Re: customize messing up .emacs symlink? Date: Tue, 02 Mar 2004 04:03:52 +0000 Organization: DZR Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <873c8sdn3g.fsf@cs.uga.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1078213140 22124 80.91.224.253 (2 Mar 2004 07:39:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2004 07:39:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 02 08:38:51 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ay4UN-0003RD-00 for ; Tue, 02 Mar 2004 08:38:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Ay4RC-0007o6-7w for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Mar 2004 02:35:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!mephistopheles.news.clara.net!news.clara.net!wagner.news.clara.net!landlord!wards.force9.net.POSTED!not-for-mail User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 212.159.101.92 Original-X-Complaints-To: abuse@plus.net.uk Original-X-Trace: wards.force9.net 1078200409 212.159.101.92 (Tue, 02 Mar 2004 04:06:49 GMT) Original-NNTP-Posting-Date: Tue, 02 Mar 2004 04:06:49 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:121424 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:17379 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17379 On Mon, 01 Mar 2004 21:00:51 -0500, Ed L Cashin wrote: > Hi. I have a .emacs file under version control and symlinked into my > home directory. Every once in a while, emacs replaces my symlink and > creates a regular file. > > Just now I sent some usenet news and saw a message flash by: > > Wrote /home/ecashin/.emacs > Sending news via news.gmane.org using nntp... > Opening nnimap server on 127.0.0.1... > > The difference between the old .emacs and the impostor is shown > below. It leads me to suspect that the customize code of the two > emacs versions I use are competing. Put your (two) customizations in (two) separate filesto .emacs. I don't know which two versions of emacs you use. But assuming its Xemacs vs. Emacs, put at the end of your .emacs something like (excuse my probably crappy and very-unlisp-like lisp): (if (string-match "XEmacs" emacs-version) (load "~/.xemacs.customize.el") (load "~/.emacs.customize.el")) Each separate customize file will need to have a customization for custom-file in it: (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. [...] '(custom-file "") [...] Presumably you don't want to keep your customizations in CVS, or do you? Best, Darren -- ====================================================================== D. D. Brierton darren@dzr-web.com www.dzr-web.com Trying is the first step towards failure (Homer Simpson) ======================================================================