diff options
| author | Vincent Belaïche | 2012-11-09 06:48:05 +0100 |
|---|---|---|
| committer | Vincent Belaïche | 2012-11-09 06:48:05 +0100 |
| commit | 93a66b3a3d1b1d19da6d3e759ebe4b9192c70efc (patch) | |
| tree | 35c63f86419899ea7c50cc220cba17376ffd712b /src/alloc.c | |
| parent | 57618ecf3358e49ab3c380330e82ca8d2078cc63 (diff) | |
| download | emacs-93a66b3a3d1b1d19da6d3e759ebe4b9192c70efc.tar.gz emacs-93a66b3a3d1b1d19da6d3e759ebe4b9192c70efc.zip | |
* ses.el: Use hash map for getting named cells coordinates.
symbol to coordinate mapping is made by symbol property
`ses-cell'. This means that the same mapping is done for all SES
sheets. That is good enough for cells with standard A1 names, but
not for named cell. So a hash map is added for those
latter.
(defconst ses-localvars): added local variable ses--named-cell-hashmap
(ses-sym-rowcol): Use hashmap for named cell.
(ses-is-cell-sym-p): New defun.
(ses-decode-cell-symbol): New defun.
(ses-create-cell-variable): Add cell to hashmap when name is not A1-like.
(ses-rename-cell): Check that cell new name is not already in
spreadsheet with the use of ses-is-cell-sym-p
(ses-rename-cell): Use hash map for named cells, but accept also
renaming back to A1-like.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions