Function: ses-file-format-extend-parameter-list
ses-file-format-extend-parameter-list is a byte-compiled function
defined in ses.el.gz.
Signature
(ses-file-format-extend-parameter-list NEW-FILE-FORMAT)
Documentation
Extend the global parameters list when file format is updated from 2 to 3. This happens when local printer function are added to a sheet that was created with SES version 2. This is not undoable. Return nil when there was no change, and non-nil otherwise.
Source Code
;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defun ses-file-format-extend-parameter-list (new-file-format)
"Extend the global parameters list when file format is updated
from 2 to 3. This happens when local printer function are added
to a sheet that was created with SES version 2. This is not
undoable. Return nil when there was no change, and non-nil otherwise."
(save-excursion
(cond
((and (= ses--file-format 2) (= 3 new-file-format))
(ses-set-parameter 'ses--file-format 3)
(message "Upgrading from SES-2 to SES-3 file format")
(ses-widen)
(goto-char ses--params-marker)
(forward-line (plist-get ses-paramlines-plist 'ses--numlocprn ))
(insert (format (plist-get ses-paramfmt-plist 'ses--numlocprn)
ses--numlocprn)
?\n)
t) )))