Function: ses-create-cell-variable
ses-create-cell-variable is a byte-compiled function defined in
ses.el.gz.
Signature
(ses-create-cell-variable SYM ROW COL)
Documentation
Create a buffer-local variable SYM for cell at position (ROW, COL).
SYM is the symbol for that variable, ROW and COL are integers for row and column of the cell, with numbering starting from 0.
Return nil in case of failure.
Source Code
;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defun ses-create-cell-variable (sym row col)
"Create a buffer-local variable `SYM' for cell at position (ROW, COL).
SYM is the symbol for that variable, ROW and COL are integers for
row and column of the cell, with numbering starting from 0.
Return nil in case of failure."
(unless (local-variable-p sym)
(make-local-variable sym)
(if (let (case-fold-search) (string-match-p "\\`[A-Z]+[0-9]+\\'" (symbol-name sym)))
(put sym 'ses-cell (cons row col))
(put sym 'ses-cell :ses-named)
(setq ses--named-cell-hashmap (or ses--named-cell-hashmap (make-hash-table :test 'eq)))
(puthash sym (cons row col) ses--named-cell-hashmap))))