Re: [O] org version check on start
Thank you. Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Mon, Jun 9, 2014 at 1:19 PM, Alexander Baier wrote: > On 2014-06-09 02:38 Grant Rettke wrote: > > [...] > >> (when (not (string-equal (org-version) "8.2.6")) > > (when (not (version= (org-version) "8.2.6")) > >> (display-warning >>'org-mode >>(concat >> "Insufficient requirements. Expected 8.2.6. Found " (org-version)) >>:emergency)) > > Maybe using version= instead of string-equal to compare version string > might save you some additional headaches ;-). > > HTH, > -- > Alexander Baier
Re: [O] org version check on start
On 2014-06-09 02:38 Grant Rettke wrote: [...] > (when (not (string-equal (org-version) "8.2.6")) (when (not (version= (org-version) "8.2.6")) > (display-warning >'org-mode >(concat > "Insufficient requirements. Expected 8.2.6. Found " (org-version)) >:emergency)) Maybe using version= instead of string-equal to compare version string might save you some additional headaches ;-). HTH, -- Alexander Baier
[O] org version check on start
Good afternoon, Yesterday I was fiddling with getting tangling working in a Makefile. My humanity caught up with me and I wasn't super vigilant about the order of my command line arguments to Emacs. Basically, I asked it to do some work before the correct version of org-mode was loaded. Now, Emacs and org wouldn't complain, because 7.9 and 8.x are close enough, at least for my system. Still, that was a bad idea and not my intent. Knowing that I am human though, I had already added this code long ago: (when (not (string-equal (org-version) "8.2.6")) (display-warning 'org-mode (concat "Insufficient requirements. Expected 8.2.6. Found " (org-version)) :emergency)) Just wanted to share that. Everybody who wants to be using a particular version ought to paste that into their init somewhere... bound to prevent headaches and save some time. Kind regards, Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson