emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: "Olaf.Hamann" <O.Hamann@gmx.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: how to compare org-mode version to current file needs
Date: Wed, 16 Mar 2011 14:21:19 +0000	[thread overview]
Message-ID: <874o7316zk.fsf@ucl.ac.uk> (raw)
In-Reply-To: <4D80B033.2000308@gmx.net> (Olaf Hamann's message of "Wed, 16 Mar 2011 13:42:27 +0100")

"Olaf.Hamann" <O.Hamann@gmx.net> writes:

> Hello,
>
> is there any org-mode expression for saying "this org-file needs
> org-version > xxx"
> which will compare current needs of the file to used orgmode at
> org-file startup
> and present a little message to the user?

not that I know of.

> I think, it could be done with an emacs-lisp block comparing
> org-version to a certain string,
> but I have to express
>
> this org-file needs org-version >=  "Org-mode version 7.5
> (release_7.5.47.g4d9f2.dirty)"
>
> and I don't know what or how to compare (string compare or git
> timeline or so?).

You might want to compare against the string =org-version= (as opposed to
the output from the function of the same name).  This will be the last
release version and will not include the number of commits etc from that
release onwards.  I would think that comparing to an actual release should
be the finest granularity you should use?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.55.g87c42.dirty)

  reply	other threads:[~2011-03-16 14:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16 12:42 how to compare org-mode version to current file needs Olaf.Hamann
2011-03-16 14:21 ` Eric S Fraga [this message]
2011-03-17  7:18 ` Bastien
2011-03-17  8:38   ` Olaf.Hamann
2011-03-17  9:12     ` Bastien
2011-03-17 10:08       ` Olaf.Hamann

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=874o7316zk.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=O.Hamann@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).