From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: minor problem on major version number
Date: Thu, 26 Jun 2014 12:14:42 -0400 [thread overview]
Message-ID: <871tubsl59.fsf@alphaville.bos.redhat.com> (raw)
I have some backward-compat code that does this:
--8<---------------cut here---------------start------------->8---
;;(setq major-version (string-to-number (nth 0 (split-string (org-version) "[.]"))))
(setq major-version 8)
(if (< major-version 8)
(progn
(require 'org-latex)
...
(progn
(require 'ox-latex)
...
--8<---------------cut here---------------end--------------->8---
After last night's git pull, org-version returns "beta_8.3" which
broke the major-version calculation above. I hardwired the org version
major number above, but I was wondering if we could agree on some
convention/method that will not break in the future - maybe an
org-major-version function?
Thanks,
Nick
next reply other threads:[~2014-06-26 16:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 16:14 Nick Dokos [this message]
2014-06-26 17:44 ` minor problem on major version number Achim Gratz
2014-06-26 18:25 ` Nick Dokos
2014-06-26 18:15 ` Alexander Baier
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=871tubsl59.fsf@alphaville.bos.redhat.com \
--to=ndokos@gmail.com \
--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).