From: Vincent Belaïche Date: Thu, 2 Jan 2014 22:54:37 +0000 (+0100) Subject: Correct ses--file-format checking. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~98 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=33bebaa2f06d119a629301cb47daa908a37bf11d;p=emacs.git Correct ses--file-format checking. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ec7fc12c3f..570d900022f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -12,6 +12,11 @@ * mail/rmail.el (rmail-get-coding-function): Variable. (rmail-get-coding-system): Use it. +2014-01-02 Vincent Belaïche + + * ses.el (ses-load): Correct handling for ses--file-format + checking. + 2014-01-02 Vincent Belaïche * ses.el (ses-initial-global-parameters-re): New defconst, a diff --git a/lisp/ses.el b/lisp/ses.el index cdf479398ed..2b8daa48ddc 100644 --- a/lisp/ses.el +++ b/lisp/ses.el @@ -1860,7 +1860,7 @@ Does not execute cell formulas or print functions." (insert "(ses-header-row 0)\n") (ses-set-parameter 'ses--file-format 3) (message "Upgrading from SES-1 file format"))) - (or (> ses--file-format 3) + (or (<= ses--file-format 3) (error "This file needs a newer version of the SES library code")) ;; Initialize cell array. (setq ses--cells (make-vector ses--numrows nil))