Next: Clearing cells, Previous: Resizing, Up: The Basics
Printer functions convert binary cell values into the print forms that Emacs will display on the screen.
A printer can be a format string, like ‘"$%.2f"’. The result string is right-aligned within the print cell. To get left-alignment, use parentheses: ‘("$%.2f")’. A printer can also be a one-argument function (a symbol or a lambda), whose result is a string (right-aligned) or list of one string (left-aligned). While typing in a lambda, you can use M-<TAB> to complete the names of symbols.
Each cell has a printer. If nil, the column-printer for the cell's
column is used. If that is also nil, the default-printer for the
spreadsheet is used.
ses-read-cell-printer).
ses-read-column-printer).
ses-read-default-printer).
The ses-read-XXX-printer commands have their own minibuffer
history, which is preloaded with the set of all printers used in this
spreadsheet, plus the standard printers.
The standard printers are suitable only for cells, not columns or
default, because they format the value using the column-printer (or
default-printer if nil) and then center the result:
ses-centerses-center-spanses-dashfillses-dashfill-spanses-tildefill-span