From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: minor problem on major version number Date: Thu, 26 Jun 2014 20:15:17 +0200 Message-ID: <87r42bk05m.fsf@mailbox.org> References: <871tubsl59.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0ECm-0005Yk-N2 for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 14:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0ECf-0002Id-Op for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 14:15:28 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:44829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0ECf-0002HD-GS for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 14:15:21 -0400 In-Reply-To: <871tubsl59.fsf@alphaville.bos.redhat.com> (Nick Dokos's message of "Thu, 26 Jun 2014 12:14:42 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org On 2014-06-26 18:14 Nick Dokos wrote: > I have some backward-compat code that does this: > > (setq major-version (string-to-number (nth 0 (split-string > (org-version) "[.]")))) It does not work in this situation, because "beta_8.3" is not a valid version string, but "version<" might be interesting for you. HTH, -- Alexander Baier