]> code.delx.au - gnu-emacs/commit
* ses.el: Use hash map for getting named cells coordinates.
authorVincent Belaïche <vincentb1@users.sourceforge.net>
Fri, 9 Nov 2012 05:48:05 +0000 (06:48 +0100)
committerVincent Belaïche <vincentb1@users.sourceforge.net>
Fri, 9 Nov 2012 05:48:05 +0000 (06:48 +0100)
commit93a66b3a3d1b1d19da6d3e759ebe4b9192c70efc
tree35c63f86419899ea7c50cc220cba17376ffd712b
parent57618ecf3358e49ab3c380330e82ca8d2078cc63
* 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.
lisp/ChangeLog
lisp/ses.el