[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] minor problem on major version number
From: |
Nick Dokos |
Subject: |
[O] minor problem on major version number |
Date: |
Thu, 26 Jun 2014 12:14:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
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
- [O] minor problem on major version number,
Nick Dokos <=