diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ses.el | 18 |
2 files changed, 17 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c7fb8fcd069..e65f7334754 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-06-27 Vincent Belaïche <vincentb1@users.sourceforge.net> | ||
| 2 | |||
| 3 | * ses.el (ses-destroy-cell-variable-range): Fix heading comment | ||
| 4 | convention. | ||
| 5 | (ses-call-printer): Does not pass an empty string to formatter when the | ||
| 6 | cell is empty to keep from barking printer Calc math-format-value. | ||
| 7 | |||
| 1 | 2011-06-27 Richard Stallman <rms@gnu.org> | 8 | 2011-06-27 Richard Stallman <rms@gnu.org> |
| 2 | 9 | ||
| 3 | * battery.el (battery-mode-line-limit): New variable. | 10 | * battery.el (battery-mode-line-limit): New variable. |
diff --git a/lisp/ses.el b/lisp/ses.el index 2e23e49810a..8b06f058fcd 100644 --- a/lisp/ses.el +++ b/lisp/ses.el | |||
| @@ -670,9 +670,9 @@ for this spreadsheet." | |||
| 670 | (put sym 'ses-cell (cons xrow xcol)) | 670 | (put sym 'ses-cell (cons xrow xcol)) |
| 671 | (make-local-variable sym))))) | 671 | (make-local-variable sym))))) |
| 672 | 672 | ||
| 673 | ;;We do not delete the ses-cell properties for the cell-variables, in case a | 673 | ;; We do not delete the ses-cell properties for the cell-variables, in |
| 674 | ;;formula that refers to this cell is in the kill-ring and is later pasted | 674 | ;; case a formula that refers to this cell is in the kill-ring and is |
| 675 | ;;back in. | 675 | ;; later pasted back in. |
| 676 | (defun ses-destroy-cell-variable-range (minrow maxrow mincol maxcol) | 676 | (defun ses-destroy-cell-variable-range (minrow maxrow mincol maxcol) |
| 677 | "Destroy buffer-local variables for cells. This is undoable." | 677 | "Destroy buffer-local variables for cells. This is undoable." |
| 678 | (let (sym) | 678 | (let (sym) |
| @@ -1170,17 +1170,19 @@ The variable `ses-call-printer-return' is set to t if the printer used | |||
| 1170 | parenthesis to request left-justification, or the error-signal if the | 1170 | parenthesis to request left-justification, or the error-signal if the |
| 1171 | printer signaled one (and \"%s\" is used as the default printer), else nil." | 1171 | printer signaled one (and \"%s\" is used as the default printer), else nil." |
| 1172 | (setq ses-call-printer-return nil) | 1172 | (setq ses-call-printer-return nil) |
| 1173 | (unless value | ||
| 1174 | (setq value "")) | ||
| 1175 | (condition-case signal | 1173 | (condition-case signal |
| 1176 | (cond | 1174 | (cond |
| 1177 | ((stringp printer) | 1175 | ((stringp printer) |
| 1178 | (format printer value)) | 1176 | (if value |
| 1177 | (format printer value) | ||
| 1178 | "")) | ||
| 1179 | ((stringp (car-safe printer)) | 1179 | ((stringp (car-safe printer)) |
| 1180 | (setq ses-call-printer-return t) | 1180 | (setq ses-call-printer-return t) |
| 1181 | (format (car printer) value)) | 1181 | (if value |
| 1182 | (format (car printer) value) | ||
| 1183 | "")) | ||
| 1182 | (t | 1184 | (t |
| 1183 | (setq value (funcall printer value)) | 1185 | (setq value (funcall printer (or value ""))) |
| 1184 | (if (stringp value) | 1186 | (if (stringp value) |
| 1185 | value | 1187 | value |
| 1186 | (or (stringp (car-safe value)) | 1188 | (or (stringp (car-safe value)) |