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: Determine what version and make settings accordingly Date: Thu, 06 Nov 2014 15:19:23 +0100 Organization: The Church of Emacs Message-ID: <878ujowgwk.fsf@vsl28t2g.ww011> References: <871tpg8log.fsf@dv.local.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415283619 19022 80.91.229.3 (6 Nov 2014 14:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 14:20:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 15:20:12 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 1XmNuw-0000Y2-6Z for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2014 15:20:06 +0100 Original-Received: from localhost ([::1]:53646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmNuv-0001FQ-PM for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2014 09:20:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmNue-0001F0-QQ for help-gnu-emacs@gnu.org; Thu, 06 Nov 2014 09:19:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmNuY-00089u-DM for help-gnu-emacs@gnu.org; Thu, 06 Nov 2014 09:19:48 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:44779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmNuY-00089p-66 for help-gnu-emacs@gnu.org; Thu, 06 Nov 2014 09:19:42 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XmNuW-00006d-SS for help-gnu-emacs@gnu.org; Thu, 06 Nov 2014 15:19:40 +0100 Original-Received: from p4fd4e946.dip0.t-ipconnect.de ([79.212.233.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Nov 2014 15:19:40 +0100 Original-Received: from dieter by p4fd4e946.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Nov 2014 15:19:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fd4e946.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:3pOAXATG13dZs/dgBF3TjtV09F0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:100795 Archived-At: Harry Putnam writes: > Probably kind of basic... but not to me. > > I'm running emacs24 (installed from debian pkg system) and now want to > also run emacs-25... (installed from bzr repo). (if (>= emacs-major-version 25) ; this is the test, the "if" (message "You are running Emacs 25! Lucky you.") ; This is the "then" (ding) ; From here on is the "else" (message "Time to upgrade, don't you think?")) emacs-version emacs-minor-version Is that what you are looking for? Dieter -- Best wishes H. Dieter Wilhelm Darmstadt, Germany