From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: Re: How to make emacs not load something in its path? Date: Mon, 17 Nov 2014 22:02:32 +0100 Organization: The Church of Emacs Message-ID: <87wq6t1qxj.fsf@vsl28t2g.ww011> References: <87ioid4vr2.fsf@reader.local.lan> <87r3x1inbi.fsf@mailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416258185 5303 80.91.229.3 (17 Nov 2014 21:03:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 21:03:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 22:02:59 2014 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 1XqTRq-0004TL-JX for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 22:02:58 +0100 Original-Received: from localhost ([::1]:50239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqTRq-0004MJ-6e for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 16:02:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqTRa-0004LX-Mf for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 16:02:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqTRU-0005kv-Nz for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 16:02:42 -0500 Original-Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:60841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqTRU-0005js-H0 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2014 16:02:36 -0500 Original-Received: by mail-wg0-f48.google.com with SMTP id y19so3801252wgg.7 for ; Mon, 17 Nov 2014 13:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=TjPCQmDnF/D9gRoxSCOG1zBnVHWhrVwWfsJUOO1j1ts=; b=poyGSbhuVSvxr0UleiifuhfJaefdoHMFy4JJ/unOxr2drFkOeMqqhOE7AONfONH8or /gAGeiQL9/NsFTBXrfjVb5WOsbeijQwbFdoXUfPaVea3Q3txi1mJdduiVBEFgorktba6 Hi9HN2TJHv/JohAWMAkD+Ub2PAGRmrL+Eua8KpuKTEuArPd1ygHUh73jNdFviHQqiR+Q S0U6qXqzC+iEsBVLSWYXGx3l7+9klfQ5U6r5xTS9RrinZDB8Y99Sr6LaaevHU3a/FfQc o40sAftwa6G9CDv1yiieKyikoibhJbqsGSumW7tINBK5KzCoOJKfNvZTxL4qOwhyagWR ajLA== X-Received: by 10.194.82.74 with SMTP id g10mr14177602wjy.116.1416258155725; Mon, 17 Nov 2014 13:02:35 -0800 (PST) Original-Received: from vsl28t2g.ww011 (p4FD4FC9F.dip0.t-ipconnect.de. [79.212.252.159]) by mx.google.com with ESMTPSA id pu3sm12396776wjc.14.2014.11.17.13.02.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Nov 2014 13:02:34 -0800 (PST) In-Reply-To: <87r3x1inbi.fsf@mailbox.org> (Alexander Baier's message of "Mon, 17 Nov 2014 21:28:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::230 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:101004 Archived-At: Alexander Baier writes: > On 2014-11-17 17:50 Harry Putnam wrote: >> This may be a common thing but it never crossed my pea brain before. >> >> How would I stop emacs from loading something in its path? >> >> For example: If I wanted to have one emacs version load ~/.emacs and a >> different version NOT load it. >> >> Or would it just be better to remove ~/.emacs and have each version >> load its own ~/.emacs-24, or ~/.emacs-25 > > You can write one init file that looks at the version of the current > emacs and loads the correct file. > > Maybe the variable emacs-version will help you here. yeah, for example for conditionals in your .emacs ;; version depending stuff (cond ((= emacs-major-version 25) ;; ... (message "Loaded Emacs-25 stuff")) ((= emacs-major-version 24) ;; ... (message "Loaded Emacs-24 stuff"))) ;; other potentially interesting variables: emacs-version emacs-minor-version Dieter -- Best wishes H. Dieter Wilhelm Darmstadt, Germany