emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* minor problem on major version number
@ 2014-06-26 16:14 Nick Dokos
  2014-06-26 17:44 ` Achim Gratz
  2014-06-26 18:15 ` Alexander Baier
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Dokos @ 2014-06-26 16:14 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-26 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-26 16:14 minor problem on major version number Nick Dokos
2014-06-26 17:44 ` Achim Gratz
2014-06-26 18:25   ` Nick Dokos
2014-06-26 18:15 ` Alexander Baier

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).