From c431266427cd70964795e56a7c00f4bb7aec28f8 Mon Sep 17 00:00:00 2001 From: era Date: Thu, 10 Oct 2013 15:46:35 +0300 Subject: [PATCH 1/2] lisp/ses.el: import patch from bug report #14748 --- lisp/ses.el | 36 +++++++++++++++++++++++++++++++++--- 1 files changed, 33 insertions(+), 3 deletions(-) diff --git a/lisp/ses.el b/lisp/ses.el index 5f48dd2..6ac57c3 100644 --- a/lisp/ses.el +++ b/lisp/ses.el @@ -1884,15 +1884,45 @@ Delete overlays, remove special text properties." (restore-buffer-modified-p nil)))) ;;;###autoload +(defalias 'spreadsheet-mode 'ses-mode) +;;;###autoload (defun ses-mode () "Major mode for Simple Emacs Spreadsheet. -See \"ses-example.ses\" (in `data-directory') for more info. + +When you invoke SES in a new buffer, it is divided into cells +which you can enter data into. You can navigate the cells with +the arrow keys and add more cells with the tab key. The contents +of these cells can be numbers, text, or Lisp expressions. (To +enter text, enclose it in double quotes.) + +In an expression, you can use cell coordinates to refer to the +contents of another cell. For example, you can sum a range of +cells with `(+ A1 A2 A3)'. There are specialized functions like +`ses+' (addition for ranges with empty cells), `ses-average' for +performing calculations on cells, and `ses-range' and `ses-select' +for extracting ranges of cells. + +Each cell also has a print function which controls how it is +displayed. + +Each SES buffer is divided into a print area and a data area. +Normally, you should simply use SES to look at and manipulate the +print area, and let SES manage the data area outside the visible +region. + +See \"ses-example.ses\" (in `data-directory') for an example +spreadsheeet and the Info documentation `(emacs) Ses.' + +Notice the separate keymaps for cell editing mode and print mode +specifications, below. Key definitions: \\{ses-mode-map} -These key definitions are active only in the print area (the visible part): +These key definitions are active only in the print area (the visible +part): \\{ses-mode-print-map} -These are active only in the minibuffer, when entering or editing a formula: +These are active only in the minibuffer, when entering or editing a +formula: \\{ses-mode-edit-map}" (interactive) (unless (and (boundp 'ses--deferred-narrow) -- 1.7.2.5