all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Tamas Papp <tkpapp@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how can I find out the emacs version?
Date: Wed, 15 Aug 2007 17:52:20 +0200	[thread overview]
Message-ID: <EB9ACC01-1BB2-45DE-8284-3BE6E5A43C0B@Web.DE> (raw)
In-Reply-To: <87zm0tgdem.fsf@pu100877.student.princeton.edu>


Am 15.08.2007 um 15:01 schrieb Tamas Papp:

> I found emacs-version, but that returns a string.  Do you I have to
> parse this for the version _number_, or is there another way?

You can use

	(defconst mEV (emacs-version) "optional info string")

and then

	(unless (string-match "Step 8" mEV)
	(if (not (string-match "Step 9" mEV))
	(if (string-match "22" mEV)
	(if (or (string-match "trio" mEV) (string-match "iBook" mEV)

I am fighting with Emacsen of different versions built on different  
machines, so emacs-major-version or emacs-minor-version are not  
sufficient.

--
Evolutionary greetings

   Pete


"Evolution"            o           __o                     _o _
           °\___o      /0~         -\<,              ^\___ /=\\_/-%
oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____

  parent reply	other threads:[~2007-08-15 15:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-15 13:01 how can I find out the emacs version? Tamas Papp
2007-08-15 13:11 ` Sven Joachim
2007-08-15 15:52 ` Peter Dyballa [this message]
2007-08-15 19:11 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EB9ACC01-1BB2-45DE-8284-3BE6E5A43C0B@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tkpapp@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.