aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVincent Belaïche2017-07-17 19:58:12 +0200
committerVincent Belaïche2017-07-17 19:58:12 +0200
commit002d6abcc76a8a83e5ea191e6f8d6dbed6b714eb (patch)
treeda9a2362e05509bb7db3686e9e2178e48f06b0f1 /doc
parent727b3df056d978c05bb5dbce5cef715b3b7c31db (diff)
downloademacs-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.texi29
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
293identifier in your expression. Whenever the other cell is changed, 293identifier in your expression. Whenever the other cell is changed,
294this cell's formula will be reevaluated. While typing in the 294this cell's formula will be reevaluated. While typing in the
295expression, you can use @kbd{M-@key{TAB}} to complete symbol names. 295expression, you can use the following keys:
296@table @kbd
297@item M-@key{TAB}
298to complete symbol names, and
299@item C-h C-n
300to list the named cells symbols in a help buffer.
301@end table
296 302
297@item ' @r{(apostrophe)} 303@item ' @r{(apostrophe)}
298Enter a symbol (ses-read-symbol). @acronym{SES} remembers all symbols that have 304Enter 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
461The @code{ses-read-@var{xxx}-printer} commands have their own 467The @code{ses-read-@var{xxx}-printer} allows the following commands during editing:
462minibuffer history, which is preloaded with the set of all printers 468
463used in this spreadsheet, plus the standard printers (@pxref{Standard 469@table @kbd
464printer functions}) and the local printers (@pxref{Local printer 470@item @key{arrow-up}
465functions}). 471@itemx @key{arrow-down}
472To browse history: the @code{ses-read-@var{xxx}-printer} commands have
473their own minibuffer history, which is preloaded with the set of all
474printers 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}
478To complete the local printer symbols, and
479@item C-h C-p
480To 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