Mercurial > emacs
view man/ses.texi @ 80467:1d830d9c60e0
* textmodes/org-export-latex.el: New file.
* textmodes/org-irc.el: New file.
* textmodes/org-mac-message.el: New file.
* textmodes/org-publish.el: New file.
* textmodes/org.el (org-agenda-collect-markers)
(org-create-marker-find-array)
(org-check-agenda-marker-table, org-extract-log-state-settings)
(org-nofm-to-completion, org-refile-goto-last-stored)
(org-export-html-convert-special-strings, org-first-list-item-p)
(org-imenu-new-marker, org-imenu-get-tree)
(org-speedbar-set-agenda-restriction)
(org-agenda-set-restriction-lock)
(org-agenda-remove-restriction-lock)
(org-agenda-maybe-redo, org-compute-latex-and-specials-regexp)
(org-do-latex-and-special-faces, org-read-date-display)
(org-select-remember-template, org-agenda-copy-local-variable)
(org-read-date-get-relative, org-columns-cleanup-item)
(org-find-entry-with-id)
(org-insert-columns-dblock, org-listtable-to-string)
(org-dblock-write:columnview, org-columns-capture-view)
(org-edit-headline, org-parse-local-options)
(org-in-clocktable-p, org-property-or-variable-value)
(org-get-tags-string, org-up-heading-safe)
(org-fast-todo-selection, org-get-wdays)
(org-switch-to-buffer-other-window, org-agenda-deadline-face)
(org-add-link-type, org-columns-content, org-columns-widen)
(org-columns-next-allowed-value, org-columns-edit-allowed)
(org-columns-store-format)
(org-columns-uncompile-format, org-columns-redo)
(org-columns-edit-attributes, org-delete-property)
(org-set-property, org-columns-update, org-columns-compute)
(org-columns-eval)
(org-columns-not-in-agenda, org-columns-compute-all)
(org-property-next-allowed-value)
(org-columns-compile-format, org-fill-paragraph-experimental)
(org-string-to-number, org-property-action, org-columns-move-left)
(org-columns-new)
(org-column-number-to-string, org-property-previous-allowed-value)
(org-at-property-p, org-columns-delete)
(org-columns-previous-allowed-value)
(org-columns-move-right, org-columns-narrow)
(org-property-get-allowed-values)
(org-verify-version, org-column-string-to-number)
(org-delete-property-globally)
(org-get-property-block, org-entry-properties, org-entry-get)
(org-entry-delete, org-entry-get-with-inheritance)
(org-entry-put, org-buffer-property-keys, org-new-column-overlay)
(org-overlay-columns)
(org-overlay-columns-title, org-remove-column-overlays)
(org-column-show-value, org-column-quit, org-column-edit)
(org-cached-entry-get, org-table-put-field-property)
(org-get-columns-autowidth-alist, turn-on-orgstruct)
(orgstruct-error, orgstruct-setup)
(orgstruct-make-binding, org-context-p, org-get-local-variables)
(org-run-like-in-org-mode)
(org-make-link-regexps, org-remove-keyword-keys)
(org-get-todo-face, org-export-get-title-from-subtree)
(org-assign-fast-keys, org-get-min-level)
(org-get-wdays, org-clock-find-position)
(org-clock-goto, org-fontify-priorities)
(org-get-date-from-calendar)
(org-entry-add-to-multivalued-property)
(org-entry-remove-from-multivalued-property)
(org-entry-member-in-multivalued-property)
(org-entry-is-todo-p, org-entry-is-done-p, org-get-todo-state)
(org-agenda-get-restriction-and-command)
(org-open-link-from-string, org-columns-open-link)
(org-go-to-remember-target, org-remember-insinuate)
(org-icalendar-cleanup-string, org-first-sibling-p)
(org-back-over-empty-lines, org-skip-whitespace)
(org-goto-local-auto-isearch)
(org-clocktable-steps, org-refile-get-location)
(org-kill-line, org-remove-timestamp-with-keyword)
(org-local-logging): New functions.
(org-agenda-marker-table, org-log-note-how)
(org-goto-local-auto-isearch-map)
(org-last-remember-storage-locations)
(org-imenu-markers, org-agenda-restriction-lock-overlay)
(org-speedbar-restriction-lock-overlay)
(org-massive-special-regexp)
(org-verbatim-re, org-read-date-display-live)
(org-agenda-file-regexp, org-complex-heading-regexp)
(org-completion-fallback-command, org-todo-log-states)
(org-goto-exit-command, org-goto-selected-point)
(org-todo-key-alist, org-todo-key-trigger, org-agenda-remove-date)
(org-agenda-after-show-hook, org-agenda-skip-unavailable-files)
(org-fast-tag-selection-can-set-todo-state, org-local-properties)
(org-store-link-functions, org-columns-top-level-marker)
(orgstruct-mode-map, org-entry-property-inherited-from)
(org-column-overlays, org-current-columns-fmt)
(org-current-columns-maxwidths, org-column-map)
(org-cached-props): New variables.
(org-special-ctrl-k, org-goto-auto-isearch)
(org-agenda-todo-keyword-format)
(org-remember-use-refile-when-interactive)
(org-imenu-depth, org-highlight-latex-fragments-and-specials)
(org-agenda-skip-scheduled-if-done, org-extend-today-until)
(org-agenda-window-frame-fractions, org-fontify-priorities)
(org-agenda-deadline-leaders, org-use-property-inheritance)
(org-clock-into-drawer, org-agenda-compact-blocks)
(org-use-fast-todo-selection, org-fast-tag-selection-include-todo)
(org-edit-timestamp-down-means-later, org-todo-keyword-faces)
(org-agenda-deadline-faces, org-remember-store-without-prompt)
(org-default-columns-format)
(org-agenda-default-appointment-duration)
(org-export-with-footnotes, org-clock-out-when-done)
(org-global-properties, org-todo-keyword-faces)
(org-archive-save-context-info)
(org-edit-timestamp-down-means-later)
(org-scheduled-past-days, org-export-with-drawers)
(org-read-date-prefer-future, org-hide-emphasis-markers)
(org-clock-heading-function, org-clock-in-switch-to-state)
(org-export-with-special-strings): New options.
(org-link-store, org-link-follow, org-latex)
(org-remember-templates, org-time-stamp-rounding-minutes)
(org-back-over-empty-lines, org-find-base-buffer-visiting)
(org-columns-new): Fix typos in docstrings.
(org-ctrl-c-star): Implement a missing branch in the decision
tree.
(org-select-remember-template): Clean the code.
(org-prepare-dblock): Add the extra :content parameter.
(org-write-agenda): New output type ".ics" files.
(org-write-agenda): Call `org-icalendar-verify-function', both for
time stamps and for TODO entries.
(org-export-as-html): Revert the change that killed the html
buffer. Side effects first need to be studied carefully.
(org-get-tags-at): Fix the structure of the condition-case
statement.
(org-ts-regexp0, org-repeat-re, org-display-custom-time)
(org-timestamp-change): Fix regulear expressions to swallow the
extra character for repeat-shift control.
(org-auto-repeat-maybe): Implement the new repeater mechanisms.
(org-get-legal-level): Alias to `org-get-valid-level'.
(org-dblock-write:clocktable): Add a :link parameter, linking
headlines to their location in the Org agenda files.
(org-get-tags-at): Bugfix: prevent `org-back-to-heading' from
throwing an error when getting tags before headlines.
(org-timestamp-change, org-modify-ts-extra)
(org-ts-regexp1): Fix timestamp editing.
(org-agenda-custom-commands-local-options): New constant.
(org-agenda-custom-commands): Use
`org-agenda-custom-commands-local-options' to improve customize
type. "htmlize": Removed hack to fix face problem with htmlize,
it no longer seem necessary.
(org-follow-link-hook): New hook.
(org-agenda-custom-commands): Add "Component" as a tag for each
item in a command serie.
(org-open-at-point): Run `org-follow-link-hook'.
(org-agenda-schedule): Bugfix: don't display marker type when it
is nil.
(org-store-link): org-irc required.
(org-set-regexps-and-options): Parse the new logging options.
(org-todo): Handle the new ways of recording state change stuff.
(org-columns-open-link): Fix bug with opening link in column view.
(org-todo): Make sure that LOGGING properties are honoured.
(org-todo-keywords): Improve docstring.
(org-startup-options): Cleanup startup options.
(org-set-regexps-and-options): Process the "!" markers.
(org-todo): Respect the new logging stuff.
(org-add-log-maybe): New parameter HOW that defines how logging
should be done and also overrides PURPOSE. Add a docstring.
(org-add-log-note): Check if we really need to ask for a note.
(org-get-current-options): Digest the new keyword.
(org-agenda-reset-markers): Rename from
`org-agenda-maybe-reset-markers'. Remove FORCE argument.
(org-diary, org-agenda-quit, org-prepare-agenda): Call the renamed
function, without force argument.
(org-buffer-property-keys): Bind local variables s and p.
(org-make-tags-matcher): Allow "" to match an empty or
non-existent property value.
(org-export-as-html): Join unsorted lists when they directly
follow each other. Such lists may be created by headlines that
are converted to lists.
(org-export-as-html): Use :html-extension instead of
org-export-html-extension.
(org-store-link): Support for links from `rmail-summary-mode'.
(org-columns-new, org-complete, org-set-property): Set the
`include-columns' argument in the call to
`org-buffer-property-keys'.
(org-buffer-property-keys): New argument `include-columns', to
include properties expected by any of the COLUMS formats in the
current buffer.
(org-cleaned-string-for-export): Get rid of drawers first, so that
they will be removed also in the text before the first headline.
(org-clock-report): Show the clocktable when found.
(org-refile): Fix positioning bug when `org-reverse-note-order' is
nil.
(org-version): With prefix argument, insert `org-version' at
point.
(org-agenda-goto): Recenter the window after finding the target
location, to make sure the correct position will be displayed.
(org-agenda-get-deadlines): Don't scale priority with the warning
period.
(org-insert-heading): Don't break line in the middle of the line.
(org-agenda-get-deadlines): Allow `org-deadline-warning-days' to
be 0.
(org-update-checkbox-count): Revamp to deal with hierarchical
beckboxes. This was a patch from Miguel A. Figueroa-Villanueva.
(org-schedule, org-deadline): Use
`org-remove-timestamp-with-keyword' to make sure all such time
stamps are removed.
(org-mode): Support for `align'.
(org-agenda-get-deadlines): Make sure priorities increase as the
due date approaches and is passed.
(org-remember-apply-template): Fix problem with tags that contain
"_" or "@".
(org-make-link-regexps): Improve the regular expression for plain
links.
(org-agenda-get-closed): List each clocking entry.
(org-set-tags): Only tabify before tags if indent-tabs-mode is t.
(org-archive-all-done): Fix incorrect number of stars in regexp.
(org-global-tags-completion-table): Add the value of org-tag-alist
in each buffer, to make sure that also unused tags will be
available for completion.
(org-columns-edit-value)
(org-columns-next-allowed-value): Only update if not in agenda.
(org-dblock-write:clocktable): Call `org-clocktable-steps'.
(org-archive-subtree): Add the outline tree context as a property.
(org-closest-date): New optional argument `prefer'.
(org-goto-map, org-get-location): Implement auto-isearch.
(org-goto-local-search-forward-headings)
(org-get-entries-from-diary): Require diary-lib.
(org-agenda-sunrise-sunset): Require solar.
(org-export-html-style): Doc fix.
(org-get-legal-level): New obsolete alias.
(org-get-valid-level): Rename from `org-get-legal-level'.
(org-promote, org-demote, org-archive-subtree)
(org-remember-handler, org-refile, org-put-clock-overlay): Use it.
(org-info): Use info rather than Info-goto-node.
(org-entry-properties): Let-bind `clocksum'.
(org-unmodified, org-cycle-emulate-tab)
(org-descriptive-links, org-link-file-path-type)
(org-remember-use-refile-when-interactive)
(org-agenda-skip-timestamp-if-done, org-agenda-scheduled-leaders)
(org-export-ascii-bullets, org-agenda-deadline-faces)
(turn-on-orgstruct++, orgtbl-to-texinfo, org-mhe-get-header)
(org-batch-agenda, org-batch-agenda-csv, org-fix-agenda-info)
(org-kill-note-or-show-branches): Fix typos in docstrings.
(org-html-do-expand): `org-export-html-convert-special-strings'
added to the list of conversion.
(org-infile-export-plist, org-get-current-options): Add support
for "-" in the #+OPTION line to let user switch on/off special
strings conversion.
(org-export-plist-vars): New :html-table-tag property.
(org-export-as-html, org-format-org-table-html)
(org-format-table-table-html) Use the :html-table-tag property
instead of the `org-export-html-table-tag' global value.
(org-additional-option-like-keywords): Add "TBLFM".
(org-entry-properties): Include the CLOCKSUM special property.
(org-columns-edit-value): Do not allow to edit the special
CLOCKSUM property.
(org-flag-drawer): Use the original value of `outline-regexp'.
(org-remember-handler): Add invisible-ok flag to call to
`org-end-of-subtree'.
(org-agenda-highlight-todo): Respect
`org-agenda-todo-keyword-format'.
(org-infile-export-plist): No restriction while searching for
options.
(org-remember-handler): Remove comments at the end of the buffer.
(org-table-sort-lines): Make sure sorting works on link
descritions only, and ignores the link.
(org-sort-entries-or-items): Make sure the end of the subtree is
included.
(org-refile-use-outline-path): New allowed values `file' and
`full-file-path'.
(org-get-refile-targets): Respect new values for
`org-refile-use-outline-path'.
(org-agenda-get-restriction-and-command): DEL goes back to initial
list.
(org-export-as-xoxo): Restore point when done.
(org-open-file): Allow multiple %s in command.
(org-get-refile-targets): Interpret the new maxlevel setting.
(org-refile-targets): New option `:maxlevel'.
(org-copy-subtree): Include empty lines before but not after
subtree.
(org-move-item-down, org-move-item-up): Include empty lines before
but not after item.
(org-remember-apply-template): Defaults, completions and history
for template prompts. Also, interpret new `%!' escape.
(org-context-choices): New constant.
(org-bound-and-true-p): New macro.
(org-agenda-restriction-lock): New face.
(org-open-at-point): Remove obsolete way to do redirection in
shell links.
(org-imenu-and-speedbar): New customization group.
(org-entry-properties): Return keyword-less time strings.
(org-clock-in): Use `org-clock-heading-function'.
(org-calendar-holiday): Try to use `calendar-check-holidays'
instead of the obsolete `check-calendar-holidays'.
(org-export-html-special-string-regexps): New constant.
(org-latex-and-export-specials): New face.
(org-link-escape-chars): Use characters instead of strings.
(org-link-escape-chars-browser, org-link-escape)
(org-link-unescape): Use characters instead of strings.
(org-export-html-convert-sub-super, org-html-do-expand): Check for
protected text.
(org-emphasis-alist): Additional `verbatim' flag.
(org-set-emph-re): Handle the verbatim flag and compute
`org-verbatim-re'.
(org-cleaned-string-for-export): Protect verbatim elements.
(org-additional-option-like-keywords): Add new keywords.
(org-get-entry): Rename from `org-get-cleaned-entry'.
(org-agenda-get-scheduled, org-agenda-get-blocks): Use
`org-agenda-skip-scheduled-if-done'.
(org-prepare-agenda-buffers): Allow buffers as arguments.
(org-entry-properties): Add CATEGORY as a special property.
(org-use-property-inheritance): Allow a list of properties as a
value.
(org-eval-in-calendar): No longer update the prompt.
(org-read-date-popup-calendar): Rename from
`org-popup-calendar-for-date-prompt'.
(org-remember-apply-template): Define `remember-finalize' if it is
not yet defined.
(org-read-date): Respect the setting of
`org-read-date-prefer-future'. Use `org-read-date-analyze'.
(org-set-font-lock-defaults): Use `org-archive-tag' instead of a
hardcoded string.
(org-remember-apply-template): Use `remember-finalize' instead of
`remember-buffer'.
(org-columns-compute, org-column-number-to-string)
(org-columns-uncompile-format, org-columns-compile-format)
(org-columns-compile-format): Handle printf format specifier.
(org-columns-new, org-column-number-to-string)
(org-columns-uncompile-format, org-columns-compile-format):
Support for new currency summary type.
(org-tree-to-indirect-buffer): Do not kill old buffer when
`org-indirect-buffer-display' is `new-frame'.
(org-indirect-buffer-display): Document that `new-frame' leads to
indiret buffer proliferation.
(org-agenda-list): Use `org-extend-today-until'.
(org-format-org-table-html): Use lower-case for <col> tag.
(org-agenda-execute): New command.
(org-agenda-mode-map): Keybindings of "g" "G", "e" modified.
(org-remember-apply-template): Use `org-select-remember-template'.
(org-region-active-p): Use `use-region-p'.
(org-cycle-hide-archived-subtrees)
(org-table-rotate-recalc-marks, org-mark-ring-push)
(org-follow-info-link, org-mhe-get-message-folder-from-index)
(org-auto-repeat-maybe, org-store-log-note, org-delete-property)
(org-evaluate-time-range, org-edit-agenda-file-list):
(org-paste-subtree):
(org-calendar-holiday): Use calendar-check-holidays instead of the
obsolete check-calendar-holidays.
(org-table-formula-substitute-names): Remove forgotten temporary
debugging code.
(org-agenda-get-restriction-and-command): Use `mapc' instead of
`mapcar'.
(org-agenda-list): Numeric prefix argument can specify the number
of days.
(remember-register, remember-buffer): Prevent byte compiler from
complaining.
(org-todo): Save and restore match data.
(org-no-warnings): New macro.
(org-columns-eval): Use `org-no-warnings'.
(org-version): Change to 5.13e.
(org-agenda-file-regexp): Fix typo in docstring.
(org-add-planning-info): Fix bug in parenthesis settings.
(org-scan-tags): Catch the case of indirect buffers with no
filename.
(org-fast-tag-selection, org-export-as-ascii, org-export-as-html):
Re-install switch to mapc, had been removed by accident.
(org-columns-map): New binding `C-c C-o'.
(org-columns-menu): Change menu text and added new entry.
(org-columns-eval): Document the use of `next-line'.
(org-columns-follow-link): Remove function.
(org-read-date-get-relative): Fix typo in docstring.
(org-read-date-get-relative): Leading +/- is not optional.
(org-agenda-get-restriction-and-command): Always resize window on
first loop cycle.
(org-agenda-open-link): Make sure the link abbreviations are
present in the agenda buffer.
(org-agenda-files): Allow directories in the variable.
(org-agenda): Use `org-agenda-get-restriction-and-command'.
(org-todo-blocker-hook, org-todo-trigger-hook): New hooks.
(org-remember-apply-template): Catch C-g and make sure window
configuration is restored.
(org-agenda-open-link): Make it work with several links in the
line.
(org-drawers, org-set-regexps-and-options)
(org-get-current-options): Add support for a DRAWERS in-buffer
option.
(org-fit-agenda-window): Use `org-agenda-window-frame-fractions'.
(org-agenda-to-appt): Require calendar.
(org-entry-get-with-inheritance): Widen for search.
(org-columns-display-here): Don't mark buffer as modified when
adding space characters to accomodate column overlays.
(org-export-as-html): Better formatting of tags in the toc.
(org-columns-display-here): Make the ITEM column as compact as
possible.
(org-remember-templates): Customization interface improved.
(org-export-with-property-drawer): Variable removed.
(org-sort-entries): Rewrite using `sort-subr'.
(org-set-property): More appropriate completion during interactive
use.
(org-sort-entries): Allow sorting by property.
(org-additional-option-like-keywords): Add more values.
(org-sort-entries-or-items): Rename from `org-sort-entries'.
(org-at-timestamp-p, org-timestamp-change)
(org-remember-templates): First element of each entry is now a
name for the template.
(org-store-log-note): Check for `org-note-abort'.
(org-kill-note-or-show-branches): New command.
(org-cut-subtree, org-copy-subtree): New argument N to act on N
sequential subtrees.
(org-paste-subtree): Fix the level at which a tree is pasted.
(org-fit-agenda-window): Limitations on window size removed.
(org-agenda-find-same-or-today-or-agenda): Rename from
`org-agenda-find-today-or-agenda'.
(org-agenda-scheduled-leaders)
(org-agenda-get-deadlines): Use `org-agenda-deadline-leaders'.
(org-agenda-get-scheduled): Use `org-agenda-scheduled-leaders'.
(org-export-with-tags, org-export-plist-vars)
(org-infile-export-plist): New "tags" option.
(org-cached-entry-get): Use `org-use-property-inheritance'.
(org-remember-apply-template): Fix typo.
(org-additional-option-like-keywords): New constant.
(org-complete): Use `org-additional-option-like-keywords'.
(org-clock-report): Only update the table at point, or insert a
new one.
(org-open-file): Use `start-process-shell-command' instead of
`shell-command' with an ampersand.
(org-deadline, org-schedule): New argument REMOVE to remove the
date from the entry.
(org-agenda-schedule, org-agenda-deadline): Pass the prefix
argument to `org-schedule' and `org-deadline'.
(org-trim): Use the correct expressions for beginning and end of
the string.
(org-get-cleaned-entry): Trim the string before returning it.
(org-agenda-tags-column): Rename from
`org-agenda-align-tags-to-column'.
(org-agenda-align-tags): Allow negative values for
`org-agenda-tags-column'.
(org-insert-labeled-timestamps-before-properties-drawer): Remove
var.
(org-agenda-to-appt): New optional argument FILTER.
(org-complete): Use `org-completion-fallback-command'.
(org-find-base-buffer-visiting): Catch the case that there is no
buffer visiting the file.
(org-todo): Use `org-property-or-variable-value'
(org-prepare-agenda, org-agenda-list): Use
`org-agenda-compact-blocks'.
(org-agenda-schedule, org-agenda-deadline): Call
`org-agenda-show-new-time'.
(org-agenda-show-new-time): New argument PREFIX.
(org-colgroup-info-to-vline-list): Fix but that cause a shift in
the vertical lines.
(org-buffer-property-keys): New argument INCLUDE-DEFAULTS.
(org-maybe-renumber-ordered-list, org-cycle-list-bullet)
(org-indent-item): No arg in call to `org-fix-bullet-type'.
(org-fix-bullet-type): Remove argument.
(org-read-date): Check for am/pm twice, to catch the end time.
(org-goto-map): Use `suppress-keymap'.
(org-remember-apply-template): Respect the dynamically scoped
selection character.
(org-kill-is-subtree-p): Use `org-outline-regexp'.
(org-outline-regexp): New constant.
(org-remember-handler): Throw error when the target file is not in
org-mode.
(org-cleaned-string-for-export): No longer call
`org-export-latex-cleaned-string' with an argument.
(org-get-tags): Returns now a list, not a string.
(org-archive-subtree): No need to split return of `org-get-tags'.
(org-set-tags, org-entry-properties): Call `org-get-tags-string'
instead of `org-get-tags'.
(org-agenda-format-date): Rename from `org-agenda-date-format'.
(org-time-from-absolute, org-agenda-format-date-aligned): New
funs.
(org-compatible-face): New argument INHERITS. Inherit from this
face if possible.
(org-level-1, org-level-2, org-level-3, org-level-4)
(org-level-5, org-level-6, org-level-7, org-level-8)
(org-special-keyword, org-drawer, org-column, org-warning)
(org-archived, org-todo, org-done, org-headline-done, org-table)
(org-formula, org-code, org-agenda-structure)
(org-scheduled-today, org-scheduled-previously)
(org-upcoming-deadline, org-time-grid): Call `org-compatible-face'
in the new way.
(org-get-heading): New argument NO-TAGS.
(org-fast-tag-selection-include-todo): Made defvar instead of
defcustom, feature is not deprecated.
(org-remember-store-without-prompt): New default value t.
(org-set-regexps-and-options): #+TODO is an alias for SEQ_TODO.
Compute the log states.
(org-goto-map): More commands copied from global map. Also bind
`org-occur'.
(org-goto): Made into a general lookup command.
(org-get-location): Complete rewrite.
(org-goto-ret, org-goto-left, org-goto-right, org-goto-quit): Set
the new variables.
(org-paste-subtree): Whitespace insertion strategy revised.
(org-remember-apply-template): Protect v-A from the possibility
that v-a might be nil.
(org-remember-handler): Insertion rules revised.
(org-todo): Respect org-todo-log-states.
(org-entry-get-with-inheritance): Use `org-up-heading-safe'.
(org-confirm-shell-link-function)
(org-confirm-elisp-link-function): Doc fixes.
(org-re): Also replace the :alpha: class.
(org-todo-tag-alist): Variable removed.
(org-log-done): Docstring fixed.
(org-deadline-warning-days): New default value 14.
(org-tag-alist): Docstring fixed.
(org-export-language-setup): New languages added.
(org-set-regexps-and-options): Compute the new variables.
(org-paste-subtree): Cleaning up.
(org-remember-apply-template): New escape %A.
(org-todo): Call fast TODO selection.
(org-add-log-note): Allow prefix for abort exit.
(org-at-property-p, org-entry-properties)
(org-columns-get-autowidth-alist): Use :alpha: class.
(org-agenda-get-deadlines): Use `org-get-wdays'.
(org-agenda-get-deadlines): Reverse ee before returning.
(org-format-agenda-item): New argument REMOVE-RE.
(org-agenda-convert-date): Baha'i calendar added.
(org-infile-export-plist): Also find DATE line.
(org-export-as-html, org-export-as-ascii): Use the date format.
(org-shiftup, org-shiftdown): Use.
`org-edit-timestamp-down-means-later'.
(org-columns-compile-format)
(org-columns-get-autowidth-alist, org-buffer-property-keys)
(org-entry-properties, org-at-property-p): Allow [:alnum:] in
property names.
(org-export-visible): Fix drawers before export.
(org-do-sort): Allow sorting by priority.
(org-agenda-files): Ignore non-existing files.
(org-ellipsis): All a face as value.
(org-mode): Interprete the face value of `org-ellipsis'.
(org-archive-subtree): Store context info in archived entry.
(org-fast-tag-selection): Allow setting TODO states through this
interface.
(org-cycle): Docstring updated.
(org-set-font-lock-defaults, org-agenda-highlight-todo): Use
`org-get-todo-face'.
(org-table-edit-field, org-table-show-reference)
(org-table-edit-formulas, org-add-log-note)
(org-fast-tag-selection, org-agenda, org-prepare-agenda)
(org-timeline): Use `org-switch-to-buffer-other-window' instead of
`switch-to-buffer-other-window' to make sure that the temporary
windows show up on the current frame.
(org-mhe-get-message-real-folder, org-batch-store-agenda-views)
(org-get-entries-from-diary, org-replace-region-by-html): Don't
allow pop-up frames.
(org-agenda-get-deadlines, org-agenda-get-scheduled): Fix problems
with time-of-day.
(org-agenda-get-scheduled, org-agenda-get-deadlines): Fix problems
with listing items that are DONE.
(org-change-tag-in-region): New command.
(org-agenda-skip-scheduled-if-done)
(org-agenda-skip-deadline-if-done): Docstring clarified.
(org-mode): Hide drawers on startup.
(org-set-regexps-and-options): Use `org-remove-keyword-keys'.
(org-agenda-skip): Allow a form for `org-agenda-skip-function'.
(org-agenda-redo): Re-use local settings.
(org-agenda): Store local settings.
(org-agenda-get-deadlines, org-agenda-get-scheduled): Also handle
entries on their due date.
(org-agenda-get-timestamps): No longer handle the due dates of
schedules and deadline items.
(org-insert-link-global, org-open-at-point-global): New commands.
(org-export-as-ascii): Call `org-cleaned-string-for-export' with a
:for-ascii parameter.
(org-skip-comments): Function removed.
(org-cleaned-string-for-export): Handle special table lines.
(org-entry-get-with-inheritance): Check global properties.
(org-set-regexps-and-options): Find the #+PROPERTY line.
(org-link-types): Change type into variable (was constant).
(org-link-re-with-space, org-link-re-with-space2)
(org-angle-link-re, org-plain-link-re, org-bracket-link-regexp)
(org-bracket-link-analytic-regexp, org-any-link-re): Creation of
these regular expressions happens now in the function
`org-make-link-regexps'.
(org-store-link): Call the functions in
`org-store-link-functions'.
(org-activate-tags): Force matches to be in headlines.
(org-batch-store-agenda-views): Fix bug with killing agenda
buffer.
(org-columns-display-here): Make sure this works in a narrowed
buffer by checking for point-min.
(org-columns-display-here): Make the rest of the line intangible,
so that point never can be there.
(org-cleaned-string-for-export): Use `with-current-buffer'.
(org-replace-region-by-html): Use `with-current-buffer'.
(org-unfontify-region, org-do-occur, org-columns-display-here)
(org-columns-remove-overlays, org-columns-quit)
(org-columns-edit-value, org-columns-next-allowed-value)
(org-eval-in-calendar, org-agenda-undo, org-no-read-only)
(org-finalize-agenda, org-remove-subtree-entries-from-agenda)
(org-agenda-todo, org-agenda-change-all-lines)
(org-agenda-align-tags, org-agenda-priority)
(org-agenda-set-tags, org-agenda-toggle-archive-tag)
(org-agenda-show-new-time, org-cleaned-string-for-export)
(org-export-grab-title-from-buffer)
(org-export-as-ascii, org-export-as-html): Use `inhibit-read-only'
instead of `buffer-read-only'.
(org-export-as-html): Set `coding-system-for-write'.
(org-archive-subtree): Fixed bug with modifying TODO keyword.
(org-beginning-of-line): Also treat C-a special in items.
(org-table-convert-refs-to-rc): Fixed problem with column
reference after "..".
(org-columns-compute): Don't mark buffer modified because of text
properties.
(org-batch-store-agenda-views): Use the variable
`default-directory', not the function.
(org-clock-out-if-current): Respect `org-clock-out-when-done'.
(org-html-entities): Added HTML entities for smileys.
(org-end-of-line): Move to end of line if in headline without
tags.
(org-agenda-day-view, org-agenda-week-view): Remember span as
default.
(org-columns-edit-value): Rename from `org-column-edit'.
(org-columns-display-here-title): Rename from
`org-overlay-columns-title'.
(org-columns-remove-overlays): Rename from
org-remove-column-overlays.
(org-columns-get-autowidth-alist): Rename from
`org-get-columns-autowidth-alist'.
(org-columns-display-here): Rename from `org-overlay-columns'.
(org-columns-new-overlay): Rename from `org-new-column-overlay'.
(org-columns-quit): Rename from `org-column-quit'.
(org-columns-show-value): Rename from `org-column-show-value'.
(org-columns-current-fmt): Rename from `org-current-columns-fmt'.
(org-columns-overlays): Rename from `org-column-overlays'.
(org-columns-map): Rename from `org-column-map'.
(org-columns-current-maxwidths): Rename from
`org-current-columns-maxwidths'.
(org-columns-begin-marker, org-columns-current-fmt-compiled)
(org-previous-header-line-format)
(org-columns-inhibit-recalculation)
(org-columns-default-format): Rename from
`org-default-columns-format'.
(org-property-re): New constant.
(orgstruct-mode): New minor mode.
(org-cycle-list-bullet): New command.
(org-special-properties, org-property-start-re)
(org-property-end-re): New constants.
(org-with-point-at): New macro.
(org-insert-property-drawer): New command.
(org-column): New face.
(org-column-menu): New menu.
(org-columns, org-agenda-columns): New commands.
(org-properties): New customize group.
(org-priority): Realign tags after changing priority.
(org-preserve-lc): New macro.
(org-update-checkbox-count): Catch case when there is no headline.
(org-agenda-quit): Remove any column overlays.
(org-beginning-of-item-list): Fixed bug when non-item line is
indented too deep.
(org-make-tags-matcher): Handle property matches.
(org-table-recalculate): Swap evaluation order: Field formula
first, then column formulas, but don't allow them to overwrite the
field formulas.
(org-table-eval-formula): New argument untouchable.
(org-export-as-html): Fix replacement bug for XEmacs.
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Tue, 08 Apr 2008 07:44:50 +0000 |
parents | 02b9a9aa5b0c |
children |
line wrap: on
line source
\input texinfo @c -*-texinfo-*- @c %**start of header @setfilename ../info/ses @settitle SES: Simple Emacs Spreadsheet @setchapternewpage off @syncodeindex fn cp @syncodeindex vr cp @syncodeindex ky cp @c %**end of header @copying This file documents SES: the Simple Emacs Spreadsheet. Copyright @copyright{} 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. @quotation Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being ``A GNU Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled ``GNU Free Documentation License'' in the Emacs manual. (a) The FSF's Back-Cover Text is: ``You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.'' This document is part of a collection distributed under the GNU Free Documentation License. If you want to distribute this document separately from the collection, you can do so by adding a copy of the license to the document, as described in section 6 of the license. @end quotation @end copying @dircategory Emacs @direntry * SES: (ses). Simple Emacs Spreadsheet @end direntry @finalout @titlepage @title SES @subtitle Simple Emacs Spreadsheet @author Jonathan A. Yavner @author @email{jyavner@@member.fsf.org} @page @vskip 0pt plus 1filll @insertcopying @end titlepage @contents @c =================================================================== @ifnottex @node Top, Sales Pitch, (dir), (dir) @comment node-name, next, previous, up @top SES: Simple Emacs Spreadsheet @display SES is a major mode for GNU Emacs to edit spreadsheet files, which contain a rectangular grid of cells. The cells' values are specified by formulas that can refer to the values of other cells. @end display @end ifnottex To report bugs, send email to @email{jyavner@@member.fsf.org}. @menu * Sales Pitch:: Why use SES? * The Basics:: Basic spreadsheet commands * Advanced Features:: Want to know more? * For Gurus:: Want to know @emph{even more}? * Index:: Concept, Function and Variable Index * Acknowledgements:: Acknowledgements * GNU Free Documentation License:: The license for this documentation. @end menu @c =================================================================== @node Sales Pitch, The Basics, Top, Top @comment node-name, next, previous, up @chapter Sales Pitch @cindex features @itemize @bullet @item Create and edit simple spreadsheets with a minimum of fuss. @item Full undo/redo/autosave. @item Immune to viruses in spreadsheet files. @item Cell formulas are straight Emacs Lisp. @item Printer functions for control of cell appearance. @item Intuitive keystroke commands: C-o = insert row, M-o = insert column, etc. @item ``Spillover'' of lengthy cell values into following blank cells. @item Header line shows column letters or a selected row. @item Completing-read for entering symbols as cell values. @item Cut, copy, and paste can transfer formulas and printer functions. @item Import and export of tab-separated values or tab-separated formulas. @item Plaintext, easily-hacked file format. @end itemize @c =================================================================== @node The Basics, Advanced Features, Sales Pitch, Top @comment node-name, next, previous, up @chapter The Basics @cindex basic commands @findex ses-jump @findex ses-mark-row @findex ses-mark-column @findex ses-mark-whole-buffer @findex set-mark-command @findex keyboard-quit A @dfn{cell identifier} is a symbol with a column letter and a row number. Cell B7 is the 2nd column of the 7th row. For very wide spreadsheets, there are two column letters: cell AB7 is the 28th column of the 7th row. @table @kbd @item j Moves point to cell, specified by identifier (@code{ses-jump}). @end table Point is always at the left edge of a cell, or at the empty endline. When mark is inactive, the current cell is underlined. When mark is active, the range is the highlighted rectangle of cells (SES always uses transient mark mode). Drag the mouse from A1 to A3 to create the range A1-A2. Many SES commands operate only on single cells, not ranges. @table @kbd @item C-SPC @itemx C-@@ Set mark at point (@code{set-mark-command}). @item C-g Turn off the mark (@code{keyboard-quit}). @item M-h Highlight current row (@code{ses-mark-row}). @item S-M-h Highlight current column (@code{ses-mark-column}). @item C-x h Highlight all cells (@code{mark-whole-buffer}). @end table @menu * Formulas:: * Resizing:: * Printer functions:: * Clearing cells:: * Copy/cut/paste:: * Customizing SES:: @end menu @node Formulas, Resizing, The Basics, The Basics @section Cell formulas @cindex formulas @cindex formulas, entering @findex ses-read-cell @findex ses-read-symbol @findex ses-edit-cell @findex ses-recalculate-cell @findex ses-recalculate-all To enter a number into the current cell, just start typing: @table @kbd @item 0..9 Self-insert a digit (@code{ses-read-cell}). @item - Self-insert a negative number (@code{ses-read-cell}). @item . Self-insert a fractional number (@code{ses-read-cell}). @item " Self-insert a quoted string. The ending double-quote is inserted for you (@code{ses-read-cell}). @item ( Self-insert an expression. The right-parenthesis is inserted for you (@code{ses-read-cell}). To access another cell's value, just use its identifier in your expression. Whenever the other cell is changed, this cell's formula will be reevaluated. While typing in the expression, you can use @kbd{M-@key{TAB}} to complete symbol names. @item ' @r{(apostrophe)} Enter a symbol (ses-read-symbol). SES remembers all symbols that have been used as formulas, so you can type just the beginning of a symbol and use @kbd{@key{SPC}}, @kbd{@key{TAB}}, and @kbd{?} to complete it. @end table To enter something else (e.g., a vector), begin with a digit, then erase the digit and type whatever you want. @table @kbd @item RET Edit the existing formula in the current cell (@code{ses-edit-cell}). @item C-c C-c Force recalculation of the current cell or range (@code{ses-recalculate-cell}). @item C-c C-l Recalculate the entire spreadsheet (@code{ses-recalculate-all}). @end table @node Resizing, Printer functions, Formulas, The Basics @section Resizing the spreadsheet @cindex resizing spreadsheets @findex ses-insert-row @findex ses-insert-column @findex ses-delete-row @findex ses-delete-column @findex ses-set-column-width @findex ses-forward-or-insert @findex ses-append-row-jump-first-column Basic commands: @table @kbd @item C-o (@code{ses-insert-row}) @item M-o (@code{ses-insert-column}) @item C-k (@code{ses-delete-row}) @item M-k (@code{ses-delete-column}) @item w (@code{ses-set-column-width}) @item TAB Moves point to the next rightward cell, or inserts a new column if already at last cell on line, or inserts a new row if at endline (@code{ses-forward-or-insert}). @item C-j Linefeed inserts below the current row and moves to column A (@code{ses-append-row-jump-first-column}). @end table Resizing the spreadsheet (unless you're just changing a column width) relocates all the cell-references in formulas so they still refer to the same cells. If a formula mentioned B1 and you insert a new first row, the formula will now mention B2. If you delete a cell that a formula refers to, the cell-symbol is deleted from the formula, so @code{(+ A1 B1 C1)} after deleting the third column becomes @code{(+ A1 B1)}. In case this is not what you wanted: @table @kbd @item C-_ @itemx C-x u Undo previous action (@code{(undo)}). @end table @node Printer functions, Clearing cells, Resizing, The Basics @section Printer functions @cindex printer functions @findex ses-read-cell-printer @findex ses-read-column-printer @findex ses-read-default-printer @findex ses-center @findex ses-center-span @findex ses-dashfill @findex ses-dashfill-span @findex ses-tildefill-span 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 @samp{"$%.2f"}. The result string is right-aligned within the print cell. To get left-alignment, use parentheses: @samp{("$%.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 @kbd{M-@key{TAB}} to complete the names of symbols. Each cell has a printer. If @code{nil}, the column-printer for the cell's column is used. If that is also @code{nil}, the default-printer for the spreadsheet is used. @table @kbd @item p Enter a printer for current cell or range (@code{ses-read-cell-printer}). @item M-p Enter a printer for the current column (@code{ses-read-column-printer}). @item C-c C-p Enter the default printer for the spreadsheet (@code{ses-read-default-printer}). @end table The @code{ses-read-@r{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 @code{nil}) and then center the result: @table @code @item ses-center Just centering. @item ses-center-span Centering with spill-over to following blank cells. @item ses-dashfill Centering using dashes (-) instead of spaces. @item ses-dashfill-span Centering with dashes and spill-over. @item ses-tildefill-span Centering with tildes (~) and spill-over. @end table @node Clearing cells, Copy/cut/paste, Printer functions, The Basics @section Clearing cells @cindex clearing commands @findex ses-clear-cell-backward @findex ses-clear-cell-forward These commands set both formula and printer to @code{nil}: @table @kbd @item DEL Clear cell and move left (@code{ses-clear-cell-backward}). @item C-d Clear cell and move right (@code{ses-clear-cell-forward}). @end table @node Copy/cut/paste, Customizing SES, Clearing cells, The Basics @section Copy, cut, and paste @cindex copy @cindex cut @cindex paste @findex kill-ring-save @findex mouse-set-region @findex mouse-set-secondary @findex ses-kill-override @findex yank @findex clipboard-yank @findex mouse-yank-at-click @findex mouse-yank-at-secondary @findex ses-yank-pop The copy functions work on rectangular regions of cells. You can paste the copies into non-SES buffers to export the print text. @table @kbd @item M-w @itemx [copy] @itemx [C-insert] Copy the highlighted cells to kill ring and primary clipboard (@code{kill-ring-save}). @item [drag-mouse-1] Mark a region and copy it to kill ring and primary clipboard (@code{mouse-set-region}). @item [M-drag-mouse-1] Mark a region and copy it to kill ring and secondary clipboard (@code{mouse-set-secondary}). @item C-w @itemx [cut] @itemx [S-delete] The cut functions do not actually delete rows or columns---they copy and then clear (@code{ses-kill-override}). @item C-y @itemx [S-insert] Paste from kill ring (@code{yank}). The paste functions behave differently depending on the format of the text being inserted: @itemize @bullet @item When pasting cells that were cut from a SES buffer, the print text is ignored and only the attached formula and printer are inserted; cell references in the formula are relocated unless you use @kbd{C-u}. @item The pasted text overwrites a rectangle of cells whose top left corner is the current cell. If part of the rectangle is beyond the edges of the spreadsheet, you must confirm the increase in spreadsheet size. @item Non-SES text is usually inserted as a replacement formula for the current cell. If the formula would be a symbol, it's treated as a string unless you use @kbd{C-u}. Pasted formulas with syntax errors are always treated as strings. @end itemize @item [paste] Paste from primary clipboard or kill ring (@code{clipboard-yank}). @item [mouse-2] Set point and paste from primary clipboard (@code{mouse-yank-at-click}). @item [M-mouse-2] Set point and paste from secondary clipboard (@code{mouse-yank-secondary}). @item M-y Immediately after a paste, you can replace the text with a preceding element from the kill ring (@code{ses-yank-pop}). Unlike the standard Emacs yank-pop, the SES version uses @code{undo} to delete the old yank. This doesn't make any difference? @end table @node Customizing SES, , Copy/cut/paste, The Basics @section Customizing SES @cindex customizing @vindex enable-local-eval @vindex ses-mode-hook @vindex safe-functions @vindex enable-local-eval By default, a newly-created spreadsheet has 1 row and 1 column. The column width is 7 and the default printer is @samp{"%.7g"}. Each of these can be customized. Look in group ``ses''. After entering a cell value, point normally moves right to the next cell. You can customize @code{ses-after-entry-functions} to move left or up or down. For diagonal movement, select two functions from the list. @code{ses-mode-hook} is a normal mode hook (list of functions to execute when starting SES mode for a buffer). The variable @code{safe-functions} is a list of possibly-unsafe functions to be treated as safe when analysing formulas and printers. @xref{Virus protection}. Before customizing @code{safe-functions}, think about how much you trust the person who's suggesting this change. The value @code{t} turns off all anti-virus protection. A list-of-functions value might enable a ``gee whiz'' spreadsheet, but it also creates trapdoors in your anti-virus armor. In order for virus protection to work, you must always press @kbd{n} when presented with a virus warning, unless you understand what the questionable code is trying to do. Do not listen to those who tell you to customize @code{enable-local-eval}---this variable is for people who don't wear safety belts! @c =================================================================== @node Advanced Features, For Gurus, The Basics, Top @chapter Advanced Features @cindex advanced features @findex ses-read-header-row @table @kbd @item C-c M-C-h (@code{ses-set-header-row}). The header line at the top of the SES window normally shows the column letter for each column. You can set it to show a copy of some row, such as a row of column titles, so that row will always be visible. Default is to set the current row as the header; use C-u to prompt for header row. Set the header to row 0 to show column letters again. @item [header-line mouse-3] Pops up a menu to set the current row as the header, or revert to column letters. @end table @menu * The print area:: * Ranges in formulas:: * Sorting by column:: * Standard formula functions:: * More on cell printing:: * Import and export:: * Virus protection:: * Spreadsheets with details and summary:: @end menu @node The print area, Ranges in formulas, Advanced Features, Advanced Features @section The print area @cindex print area @findex widen @findex ses-renarrow-buffer @findex ses-reprint-all A SES file consists of a print area and a data area. Normally the buffer is narrowed to show only the print area. The print area is read-only except for special SES commands; it contains cell values formatted by printer functions. The data area records the formula and printer functions, etc. @table @kbd @item C-x n w Show print and data areas (@code{widen}). @item C-c C-n Show only print area (@code{ses-renarrow-buffer}). @item S-C-l @itemx M-C-l Recreate print area by reevaluating printer functions for all cells (@code{ses-reprint-all}). @end table @node Ranges in formulas, Sorting by column, The print area, Advanced Features @section Ranges in formulas @cindex ranges @findex ses-insert-range-click @findex ses-insert-range @findex ses-insert-ses-range-click @findex ses-insert-ses-range @vindex from @vindex to A formula like @lisp (+ A1 A2 A3) @end lisp is the sum of three specific cells. If you insert a new second row, the formula becomes @lisp (+ A1 A3 A4) @end lisp and the new row is not included in the sum. The macro @code{(ses-range @var{from} @var{to})} evaluates to a list of the values in a rectangle of cells. If your formula is @lisp (apply '+ (ses-range A1 A3)) @end lisp and you insert a new second row, it becomes @lisp (apply '+ (ses-range A1 A4)) @end lisp and the new row is included in the sum. While entering or editing a formula in the minibuffer, you can select a range in the spreadsheet (using mouse or keyboard), then paste a representation of that range into your formula. Suppose you select A1-C1: @table @kbd @item [S-mouse-3] Inserts "A1 B1 C1" @code{(ses-insert-range-click}) @item C-c C-r Keyboard version (@code{ses-insert-range}). @item [C-S-mouse-3] Inserts "(ses-range A1 C1)" (@code{ses-insert-ses-range-click}). @item C-c C-s Keyboard version (@code{ses-insert-ses-range}). @end table If you delete the @var{from} or @var{to} cell for a range, the nearest still-existing cell is used instead. If you delete the entire range, the formula relocator will delete the ses-range from the formula. If you insert a new row just beyond the end of a one-column range, or a new column just beyond a one-row range, the new cell is included in the range. New cells inserted just before a range are not included. @node Sorting by column, Standard formula functions, Ranges in formulas, Advanced Features @section Sorting by column @cindex sorting @findex ses-sort-column @findex ses-sort-column-click @table @kbd @item C-c M-C-s Sort the cells of a range using one of the columns (@code{ses-sort-column}). The rows (or partial rows if the range doesn't include all columns) are rearranged so the chosen column will be in order. @item [header-line mouse-2] The easiest way to sort is to click mouse-2 on the chosen column's header row (@code{ses-sort-column-click}). @end table The sort comparison uses @code{string<}, which works well for right-justified numbers and left-justified strings. With prefix arg, sort is in descending order. Rows are moved one at a time, with relocation of formulas. This works well if formulas refer to other cells in their row, not so well for formulas that refer to other rows in the range or to cells outside the range. @node Standard formula functions, More on cell printing, Sorting by column, Advanced Features @section Standard formula functions @cindex standard formula functions @cindex *skip* @cindex *error* @findex ses-delete-blanks @findex ses-average @findex ses+ Oftentimes you want a calculation to exclude the blank cells. Here are some useful functions to call from your formulas: @table @code @item (ses-delete-blanks &rest @var{args}) Returns a list from which all blank cells (value is either @code{nil} or '*skip*) have been deleted. @item (ses+ &rest @var{args}) Sum of non-blank arguments. @item (ses-average @var{list}) Average of non-blank elements in @var{list}. Here the list is passed as a single argument, since you'll probably use it with @code{ses-range}. @end table @node More on cell printing, Import and export, Standard formula functions, Advanced Features @section More on cell printing @cindex cell printing, more @findex ses-truncate-cell @findex ses-recalculate-cell Special cell values: @itemize @item nil prints the same as "", but allows previous cell to spill over. @item '*skip* replaces nil when the previous cell actually does spill over; nothing is printed for it. @item '*error* indicates that the formula signaled an error instead of producing a value: the print cell is filled with hash marks (#). @end itemize If the result from the printer function is too wide for the cell and the following cell is @code{nil}, the result will spill over into the following cell. Very wide results can spill over several cells. If the result is too wide for the available space (up to the end of the row or the next non-@code{nil} cell), the result is truncated if the cell's value is a string, or replaced with hash marks otherwise. SES could get confused by printer results that contain newlines or tabs, so these are replaced with question marks. @table @kbd @item C-c C-t Confine a cell to its own column (@code{ses-truncate-cell}). This allows you to move point to a rightward cell that would otherwise be covered by a spill-over. If you don't change the rightward cell, the confined cell will spill over again the next time it is reprinted. @item C-c C-c When applied to a single cell, this command displays in the echo area any formula error or printer error that occurred during recalculation/reprinting (@code{ses-recalculate-cell}). @end table When a printer function signals an error, the default printer @samp{"%s"} is substituted. This is useful when your column printer is numeric-only and you use a string as a cell value. @node Import and export, Virus protection, More on cell printing, Advanced Features @section Import and export @cindex import and export @cindex export, and import @findex ses-export-tsv @findex ses-export-tsf @table @kbd @item x t Export a range of cells as tab-separated values (@code{ses-export-tsv}). @item x T Export a range of cells as tab-separated formulas (@code{ses-export-tsf}). @end table The exported text goes to the kill ring --- you can paste it into another buffer. Columns are separated by tabs, rows by newlines. To import text, use any of the yank commands where the text to paste contains tabs and/or newlines. Imported formulas are not relocated. @node Virus protection, Spreadsheets with details and summary, Import and export, Advanced Features @section Virus protection @cindex virus protection Whenever a formula or printer is read from a file or is pasted into the spreadsheet, it receives a ``needs safety check'' marking. Later, when the formula or printer is evaluated for the first time, it is checked for safety using the @code{unsafep} predicate; if found to be ``possibly unsafe'', the questionable formula or printer is displayed and you must press Y to approve it or N to use a substitute. The substitute always signals an error. Formulas or printers that you type in are checked immediately for safety. If found to be possibly unsafe and you press N to disapprove, the action is canceled and the old formula or printer will remain. Besides viruses (which try to copy themselves to other files), @code{unsafep} can also detect all other kinds of Trojan horses, such as spreadsheets that delete files, send email, flood Web sites, alter your Emacs settings, etc. Generally, spreadsheet formulas and printers are simple things that don't need to do any fancy computing, so all potentially-dangerous parts of the Emacs Lisp environment can be excluded without cramping your style as a formula-writer. See the documentation in @file{unsafep.el} for more info on how Lisp forms are classified as safe or unsafe. @node Spreadsheets with details and summary, , Virus protection, Advanced Features @section Spreadsheets with details and summary @cindex details and summary @cindex summary, and details A common organization for spreadsheets is to have a bunch of ``detail'' rows, each perhaps describing a transaction, and then a set of ``summary'' rows that each show reduced data for some subset of the details. SES supports this organization via the @code{ses-select} function. @table @code @item (ses-select @var{fromrange} @var{test} @var{torange}) Returns a subset of @var{torange}. For each member in @var{fromrange} that is equal to @var{test}, the corresponding member of @var{torange} is included in the result. @end table Example of use: @lisp (ses-average (ses-select (ses-range A1 A5) 'Smith (ses-range B1 B5))) @end lisp This computes the average of the B column values for those rows whose A column value is the symbol 'Smith. Arguably one could specify only @var{fromrange} plus @var{to-row-offset} and @var{to-column-offset}. The @var{torange} is stated explicitly to ensure that the formula will be recalculated if any cell in either range is changed. File @file{etc/ses-example.el} in the Emacs distribution is an example of a details-and-summary spreadsheet. @c =================================================================== @node For Gurus, Index, Advanced Features, Top @chapter For Gurus @cindex advanced features @menu * Deferred updates:: * Nonrelocatable references:: * The data area:: * Buffer-local variables in spreadsheets:: * Uses of defadvice in SES:: @end menu @node Deferred updates, Nonrelocatable references, For Gurus, For Gurus @section Deferred updates @cindex deferred updates @cindex updates, deferred @vindex run-with-idle-timer To save time by avoiding redundant computations, cells that need recalculation due to changes in other cells are added to a set. At the end of the command, each cell in the set is recalculated once. This can create a new set of cells that need recalculation. The process is repeated until either the set is empty or it stops changing (due to circular references among the cells). In extreme cases, you might see progress messages of the form ``Recalculating... (@var{nnn} cells left)''. If you interrupt the calculation using @kbd{C-g}, the spreadsheet will be left in an inconsistent state, so use @kbd{C-_} or @kbd{C-c C-l} to fix it. To save even more time by avoiding redundant writes, cells that have changes are added to a set instead of being written immediately to the data area. Each cell in the set is written once, at the end of the command. If you change vast quantities of cells, you might see a progress message of the form ``Writing... (@var{nnn} cells left)''. These deferred cell-writes cannot be interrupted by @kbd{C-g}, so you'll just have to wait. SES uses @code{run-with-idle-timer} to move the cell underline when Emacs will be scrolling the buffer after the end of a command, and also to narrow and underline after @kbd{C-x C-v}. This is visible as a momentary glitch after C-x C-v and certain scrolling commands. You can type ahead without worrying about the glitch. @node Nonrelocatable references, The data area, Deferred updates, For Gurus @section Nonrelocatable references @cindex nonrelocatable references @cindex references, nonrelocatable @kbd{C-y} relocates all cell-references in a pasted formula, while @kbd{C-u C-y} relocates none of the cell-references. What about mixed cases? You can use @lisp (symbol-value 'B3) @end lisp to make an @dfn{absolute reference}. The formula relocator skips over quoted things, so this will not be relocated when pasted or when rows/columns are inserted/deleted. However, B3 will not be recorded as a dependency of this cell, so this cell will not be updated automatically when B3 is changed. The variables @code{row} and @code{col} are dynamically bound while a cell formula is being evaluated. You can use @lisp (ses-cell-value row 0) @end lisp to get the value from the leftmost column in the current row. This kind of dependency is also not recorded. @node The data area, Buffer-local variables in spreadsheets, Nonrelocatable references, For Gurus @section The data area @cindex data area @findex ses-reconstruct-all Begins with an 014 character, followed by sets of cell-definition macros for each row, followed by column-widths, column-printers, default-printer, and header-row. Then there's the global parameters (file-format ID, numrows, numcols) and the local variables (specifying SES mode for the buffer, etc.) When a SES file is loaded, first the numrows and numcols values are loaded, then the entire data area is @code{eval}ed, and finally the local variables are processed. You can edit the data area, but don't insert or delete any newlines except in the local-variables part, since SES locates things by counting newlines. Use @kbd{C-x C-e} at the end of a line to install your edits into the spreadsheet data structures (this does not update the print area, use e.g. @kbd{C-c C-l} for that). The data area is maintained as an image of spreadsheet data structures that area stored in buffer-local variables. If the data area gets messed up, you can try reconstructing the data area from the data structures: @table @kbd @item C-c M-C-l (@code{ses-reconstruct-all}). @end table @node Buffer-local variables in spreadsheets, Uses of defadvice in SES, The data area, For Gurus @section Buffer-local variables in spreadsheets @cindex buffer-local variables @cindex variables, buffer-local You can add additional local variables to the list at the bottom of the data area, such as hidden constants you want to refer to in your formulas. You can override the variable @code{symbolic-formulas} to be a list of symbols (as parenthesized strings) to show as completions for the ' command. This initial completions list is used instead of the actual set of symbols-as-formulas in the spreadsheet. For examples of these, see file @file{etc/ses-example.ses}. If (for some reason) you want your formulas or printers to save data into variables, you must declare these variables as buffer-locals in order to avoid a virus warning. You can define functions by making them values for the fake local variable @code{eval}. Such functions can then be used in your formulas and printers, but usually each @code{eval} is presented to the user during file loading as a potential virus --- this can get annoying. You can define functions in your @file{.emacs} file. Other people can still read the print area of your spreadsheet, but they won't be able to recalculate or reprint anything that depends on your functions. To avoid virus warnings, each function used in a formula needs @lisp (put 'your-function-name 'safe-function t) @end lisp @node Uses of defadvice in SES, , Buffer-local variables in spreadsheets, For Gurus @section Uses of defadvice in SES @cindex defadvice @cindex undo-more @cindex copy-region-as-kill @cindex yank @table @code @item undo-more Defines a new undo element format (@var{fun} . @var{args}), which means ``undo by applying @var{fun} to @var{args}''. For spreadsheet buffers, it allows undos in the data area even though that's outside the narrowing. @item copy-region-as-kill When copying from the print area of a spreadsheet, treat the region as a rectangle and attach each cell's formula and printer as 'ses properties. @item yank When yanking into the print area of a spreadsheet, first try to yank as cells (if the yank text has 'ses properties), then as tab-separated formulas, then (if all else fails) as a single formula for the current cell. @end table @c =================================================================== @node Index, Acknowledgements, For Gurus, Top @unnumbered Index @printindex cp @c =================================================================== @node Acknowledgements, GNU Free Documentation License, Index, Top @chapter Acknowledgements Coding by: @quotation Jonathan Yavner @email{jyavner@@member.fsf.org}@* Stefan Monnier @email{monnier@@gnu.org} @end quotation @noindent Texinfo manual by: @quotation Jonathan Yavner @email{jyavner@@member.fsf.org}@* Brad Collins <brad@@chenla.org> @end quotation @noindent Ideas from: @quotation Christoph Conrad @email{christoph.conrad@@gmx.de}@* CyberBob @email{cyberbob@@redneck.gacracker.org}@* Syver Enstad @email{syver-en@@online.no}@* Ami Fischman @email{fischman@@zion.bpnetworks.com}@* Thomas Gehrlein @email{Thomas.Gehrlein@@t-online.de}@* Chris F.A. Johnson @email{c.f.a.johnson@@rogers.com}@* Yusong Li @email{lyusong@@hotmail.com}@* Juri Linkov @email{juri@@jurta.org}@* Harald Maier @email{maierh@@myself.com}@* Alan Nash @email{anash@@san.rr.com}@* François Pinard @email{pinard@@iro.umontreal.ca}@* Pedro Pinto @email{ppinto@@cs.cmu.edu}@* Stefan Reichör @email{xsteve@@riic.at}@* Oliver Scholz @email{epameinondas@@gmx.de}@* Richard M. Stallman @email{rms@@gnu.org}@* Luc Teirlinck @email{teirllm@@dms.auburn.edu}@* J. Otto Tennant @email{jotto@@pobox.com}@* Jean-Philippe Theberge @email{jphil@@acs.pagesjaunes.fr} @end quotation @c =================================================================== @node GNU Free Documentation License, , Acknowledgements, Top @appendix GNU Free Documentation License @include doclicense.texi @bye @ignore arch-tag: 10a4ee1c-7ef4-4c06-8b7a-f975e39f0dec @end ignore