diff options
| author | Vincent Belaïche | 2017-07-17 19:58:12 +0200 |
|---|---|---|
| committer | Vincent Belaïche | 2017-07-17 19:58:12 +0200 |
| commit | 002d6abcc76a8a83e5ea191e6f8d6dbed6b714eb (patch) | |
| tree | da9a2362e05509bb7db3686e9e2178e48f06b0f1 /doc | |
| parent | 727b3df056d978c05bb5dbce5cef715b3b7c31db (diff) | |
| download | emacs-002d6abcc76a8a83e5ea191e6f8d6dbed6b714eb.tar.gz emacs-002d6abcc76a8a83e5ea191e6f8d6dbed6b714eb.zip | |
Fix symbol completion and document it.
* doc/misc/ses.texi (Configuring what printer function
applies): Add description of keys for completing local printer
symbols and listing local printers in a help buffer.
(Formulas): Add decription for key to list the named cell
symbols in a help buffer.
* lisp/ses.el (ses-completion-keys): New constant.
(ses--completion-table): New defvar.
(ses--list-orig-buffer): New defvar.
(ses-mode-edit-map): Fixed for symbol completion, plus add
help functions to list named cells or local printers.
(ses-edit-cell-complete-symbol)
(ses--edit-cell-completion-at-point-function): New defuns for
completion during formula edition.
(ses-edit-cell): Redefine dynamically edit keymap for
completion keys to point at the right function.
(ses-read-printer-complete-symbol)
(ses--read-printer-completion-at-point-function): New defuns
for completion during printer edition.
(ses-read-printer): Redefine dynamically edit keymap for
completion keys to point at the right function.
(ses-list-local-printers): New defun.
(ses-list-named-cells): New defun.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/ses.texi | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/doc/misc/ses.texi b/doc/misc/ses.texi index cac874d0f02..fc79b027a1d 100644 --- a/doc/misc/ses.texi +++ b/doc/misc/ses.texi | |||
| @@ -292,7 +292,13 @@ Self-insert an expression. The right-parenthesis is inserted for you | |||
| 292 | (@code{ses-read-cell}). To access another cell's value, just use its | 292 | (@code{ses-read-cell}). To access another cell's value, just use its |
| 293 | identifier in your expression. Whenever the other cell is changed, | 293 | identifier in your expression. Whenever the other cell is changed, |
| 294 | this cell's formula will be reevaluated. While typing in the | 294 | this cell's formula will be reevaluated. While typing in the |
| 295 | expression, you can use @kbd{M-@key{TAB}} to complete symbol names. | 295 | expression, you can use the following keys: |
| 296 | @table @kbd | ||
| 297 | @item M-@key{TAB} | ||
| 298 | to complete symbol names, and | ||
| 299 | @item C-h C-n | ||
| 300 | to list the named cells symbols in a help buffer. | ||
| 301 | @end table | ||
| 296 | 302 | ||
| 297 | @item ' @r{(apostrophe)} | 303 | @item ' @r{(apostrophe)} |
| 298 | Enter a symbol (ses-read-symbol). @acronym{SES} remembers all symbols that have | 304 | Enter a symbol (ses-read-symbol). @acronym{SES} remembers all symbols that have |
| @@ -458,11 +464,22 @@ Enter the default printer for the spreadsheet | |||
| 458 | (@code{ses-read-default-printer}). | 464 | (@code{ses-read-default-printer}). |
| 459 | @end table | 465 | @end table |
| 460 | 466 | ||
| 461 | The @code{ses-read-@var{xxx}-printer} commands have their own | 467 | The @code{ses-read-@var{xxx}-printer} allows the following commands during editing: |
| 462 | minibuffer history, which is preloaded with the set of all printers | 468 | |
| 463 | used in this spreadsheet, plus the standard printers (@pxref{Standard | 469 | @table @kbd |
| 464 | printer functions}) and the local printers (@pxref{Local printer | 470 | @item @key{arrow-up} |
| 465 | functions}). | 471 | @itemx @key{arrow-down} |
| 472 | To browse history: the @code{ses-read-@var{xxx}-printer} commands have | ||
| 473 | their own minibuffer history, which is preloaded with the set of all | ||
| 474 | printers used in this spreadsheet, plus the standard printers | ||
| 475 | (@pxref{Standard printer functions}) and the local printers | ||
| 476 | (@pxref{Local printer functions}). | ||
| 477 | @item @key{TAB} | ||
| 478 | To complete the local printer symbols, and | ||
| 479 | @item C-h C-p | ||
| 480 | To list the local printers in a help buffer. | ||
| 481 | @end table | ||
| 482 | |||
| 466 | 483 | ||
| 467 | @node Standard printer functions | 484 | @node Standard printer functions |
| 468 | @subsection Standard printer functions | 485 | @subsection Standard printer functions |