]> code.delx.au - gnu-emacs/commit
Correct old cell name unbinding when renaming cell.
authorVincent Belaïche <vincentb1@users.sourceforge.net>
Thu, 26 May 2016 09:03:21 +0000 (11:03 +0200)
committerVincent Belaïche <vincentb1@users.sourceforge.net>
Thu, 26 May 2016 09:03:21 +0000 (11:03 +0200)
commita4d882cd09507fa1f891984fc7435923de3566fe
tree4af595dd471ead3f053e62a6f8546170fd10bd53
parent6c12c53949acafbfcad2e08b1ac5cbe283d71597
Correct old cell name unbinding when renaming cell.

Bug is to unbind old cell names when renaming a cell with
'makunbound'. when the old cell name is of A1 type, then
'kill-local-variable' must be used instead, so that only the current
spreadsheet is affected. When the old cell name is a renamed cell,
then 'ses--unbind-cell-name' must be used in order to remove the old
name from the name hashmap.

* ses.el (ses-rename-cell): check consistency of cell symbol from
text-property and from array object. Instead of 'makunbound', use
either 'ses--unbind-cell-name' or 'kill-local-variable' depending on
whether the cell old name is a named cell or an A1 type cell
lisp/ses.el