2012-12-12 Bastien Guerry * org-latex.el (org-export-latex-links): Escape raw path when exporting links to files. * org-src.el (org-src-native-tab-command-maybe): Fix bug: the S-TAB key should not trigger a native TAB command. * org.el (org-open-at-point): Allow to open any link within footnotes definition, not only bracket links. * org.el (org-sort-entries): Bugfix: keep track of the clock marker when sorting entries. Enhance the docstring. * org-clock.el (org-clock-out): Use `user-error' when the user tries to clock out while there is no running clock. * org-table.el (org-table-sort-lines): Ensure coordinates are correctly displayed when sorting. * org.el (org-do-sort): Enhance prompt. * org-agenda.el (org-agenda-finalize): Also activate plain links. * org-timer.el (org-timer-stop): Add message. * org-agenda.el (org-agenda-schedule, org-agenda-deadline): Fix redundant messages. * org-agenda.el (org-agenda-finalize): Fix clock highlighting. * org.el (org-additional-option-like-keywords): Add "INDEX:". * org-install.el: Enhance warning. 2012-12-12 Erik Hetzner (tiny change) * org.el (org-log-into-drawer): Honor the nil value for the :LOG_INTO_DRAWER: property. 2012-12-12 Le Wang (tiny change) * org-src.el (org-edit-src-exit): Fix editing source section with blank lines. 2012-12-12 Le Wang * org-src.el (org-edit-src-code): Use marker with insertion type t to track end and remove hack requiring delete from beg to (1- end). 2012-12-12 Nicolas Goaziou * org-element.el (org-element-context): When point is between two objects, be sure to return the second one. * org-list.el (org-list-separating-blank-lines-number): When computing number of blank lines separating items, also count those in unparsed blocks, like example blocks. * org.el (org-end-of-line): When visual line mode is on, really move by visual lines. Small refactoring. * org.el (org-end-of-line): On a hidden block make sure to delegate motion to `end-of-line' instead of `move-end-of-line' in order to stay on the current line. 2012-12-12 Rafael Laboissiere (tiny change) * org-bibtex.el: In the documentation section of the file, fix the broken URL to Andrew Roberts' document on BibTeX entries. * org-remember.el (org-remember-handler): Correctly strip the comment lines in the temporary buffer *Remember* when handling a remember note. * org-remember.el (org-remember-apply-template): Start the commented lines in the Remember temporary buffer with the appropriate characters. 2012-12-12 Toby S. Cubitt * org.el (org-beginning-of-line): Check `visual-line-mode' instead of `line-visual-mode' to determine whether to move by visual lines. * org.el (org-kill-line): Use the `org-bound-and-true-p' macro. 2012-10-26 Achim Gratz * ob-ditaa.el: Needs to (require 'org-compat) for org-find-library-dir. * org.el: Remove utf-8 codepoints in docstrings, bytecode doesn't work when loaded from compressed files. * org-compat.el: Make sure that file-name-directory is getting a stringp. This avoids a possible " (wrong-type-argument stringp nil)" error when the library in question does not exist. * org-odt.el: Replace arc-mode.el by arc-mode. * org.el: Replace org-macs.el by org-macs. * org-install.el: Provide an empty file that prints a warning about an outdated configuration. 2012-10-26 Bastien Guerry * org-latex.el (org-export-as-latex): Remove obsolete argument `hidden'. Also fix the docstring: using 'string as the value for `to-buffer' outputs a string with no LaTeX header. (org-export-as-latex-batch) (org-export-as-latex-to-buffer, org-export-region-as-latex) (org-export-as-pdf): Don't use the obsoleted argument. * ob-haskell.el (org-export-as-latex): Don't use the obsoleted argument `hidden'. * org.el (org-refile): Run within `with-demoted-errors' so that a corrupted bookmark file does not stop the refile process. * org-capture.el (org-capture-bookmark-last-stored-position): Ditto for the capture process. * org-src.el (org-edit-src-exit): Fix bug when saving an empty source buffer. * org-lparse.el (org-lparse): Fix bug by returning the output of `org-do-lparse'. * org.el (org-refile-check-position): Throw an error when the refile target is the current buffer and is not a file. (org-agenda-file-to-front, org-remove-file): Throw an error when the current buffer is not a file. (org-check-agenda-file): Enhance the message. (org-element-type): Autoload. (org-element-context, org-element-paragraph-parser): Don't declare as these two functions are not used in org.el. * org-lparse.el (browse-url-file-url): Declare. * org.el (org-refile-check-position): Fix typo in docstring. * org-clock.el (org-clock-modeline-total): Make obsolete. (org-clock-mode-line-total): Rename from `org-clock-modeline-total'. (org-clock-get-sum-start): Fix references to `org-clock-modeline-total'. * org-faces.el (org-agenda-filter-tags) (org-agenda-filter-category, mode-line): Use the 'mode-line face instead of the obsolete 'modeline. * org-odt.el (org-odt-styles-dir): Try more directories. Don't throw an error, just send a message. * org-odt.el (org-odt-lib-dir, org-odt-data-dir) (org-odt-schema-dir-list, org-odt-styles-dir-list): Delete. (org-export-odt-schema-dir, org-odt-styles-dir): Infer the correct directories without requiring other variables. * org-fixup.el (org-make-org-version, org-make-autoloads): Don't define `org-odt-data-dir' in org-version.el. * org-loaddefs.el: New file. * org.el ("org-loaddefs.el"): Don't throw an error if the file cannot be fund. (org-version): Use org-loaddefs.el instead of org-install.el. * org.el: Don't dynamically autoload already autoloaded functions. (org-clock-update-time-maybe): Move to org-clock.el. * org-exp.el (org-insert-export-options-template): Remove autoload cookie. * org-clock.el (org-resolve-clocks, org-clock-in) (org-clock-out, org-clock-cancel, org-clock-goto) (org-clock-sum, org-clock-display, org-clock-report) (org-dblock-write:clocktable): Add autoload cookie. (org-clock-update-time-maybe): Moved from org.el. * org-beamer.el (org-beamer-sectioning, org-beamer-mode): Ditto. * org-ascii.el (org-export-ascii-preprocess): Ditto. * org-archive.el (org-archive-subtree) (org-archive-to-archive-sibling, org-toggle-archive-tag): Add autoload cookie. * org-colview.el (org-columns, org-dblock-write:columnview) (org-insert-columns-dblock, org-agenda-columns): Ditto. * org-table.el (org-table-create-with-table.el) (org-table-create-or-convert-from-region, org-table-create) (org-table-convert-region, org-table-import) (org-table-export, org-table-align) (org-table-justify-field-maybe, org-table-next-field) (org-table-previous-field, org-table-next-row) (org-table-copy-down, org-table-field-info) (org-table-current-dline, org-table-goto-column) (org-table-insert-column, org-table-delete-column) (org-table-move-column-right, org-table-move-column-left) (org-table-move-column, org-table-move-row-down) (org-table-move-row-up, org-table-move-row) (org-table-insert-row, org-table-insert-hline) (org-table-hline-and-move, org-table-kill-row) (org-table-sort-lines, org-table-cut-region) (org-table-copy-region, org-table-paste-rectangle) (org-table-convert, org-table-wrap-region) (org-table-edit-field, org-table-sum) (org-table-get-stored-formulas) (org-table-maybe-eval-formula) (org-table-rotate-recalc-marks) (org-table-maybe-recalculate-line, org-table-eval-formula) (org-table-recalculate, org-table-iterate) (org-table-edit-formulas) (org-table-toggle-coordinate-overlays) (org-table-toggle-formula-debugger, orgtbl-to-generic) (orgtbl-to-tsv, orgtbl-to-csv, orgtbl-to-latex) (orgtbl-to-html, orgtbl-to-texinfo, orgtbl-to-orgtbl): Ditto. * org.el (turn-on-orgtbl): Moved here from org-table.el. (org-clock-persistence-insinuate): Moved here from org-clock.el. (org-update-all-dblocks, org-map-entries) (org-require-autoloaded-modules, org-forward-element) (org-backward-element, org-up-element) (org-element-greater-elements, org-drag-element-backward) (org-drag-element-forward, org-mark-element) (org-narrow-to-element, org-transpose-element) (org-unindent-buffer): Don't autoload. * org-clock.el (org-clock-get-clocktable): Rename from `org-get-clocktable'. (org-clock-persistence-insinuate): Move to org.el. * org-capture.el: Do no set `generated-autoload-file' locally. Minor code clean up. * org-agenda.el (org-agenda-list): Use `org-clock-get-clocktable'. Do no set `generated-autoload-file' locally. * org-table.el (org-table-iterate-buffer-tables): Minor reformatting. (turn-on-orgtbl): Move to org.el. * org-html.el (org-export-htmlize-generate-css): Don't autoload. * org-timer.el (org-timer-pause-or-continue, org-timer-stop): Ditto. * ob-tangle.el (org-babel-tangle-lang-exts): Ditto. * ob-lob.el (org-babel-lob-ingest): Ditto. * org-id.el (org-id-copy) (org-id-get-with-outline-path-completion) (org-id-get-with-outline-drilling): Ditto. * org-lparse.el (org-lparse-and-open, org-lparse-batch) (org-lparse-to-buffer, org-replace-region-by) (org-lparse-region): Ditto. * org-mobile.el (org-mobile-create-sumo-agenda): Ditto. * org.el (org-cycle): Fix misplaced autoload cookie. * org-agenda.el (org-agenda-get-timestamps): Check if the item is an habit when formatting it with `org-agenda-format-item'. (org-agenda-get-blocks): Fix bug: don't assume the item is an habit when formatting with `org-agenda-format-item'. * org.el (org-calendar-agenda-action-key): Delete an option. (org-mode-map): Delete its keybinding. (org-agenda-action-marker, org-mark-entry-for-agenda-action): Delete. * org-agenda.el (org-agenda-diary-entry): Don't prevent from being used outside of Org agendas, as it can be used in calendar buffers too. 2012-10-26 Caio Tiago Oliveira (tiny change) * ob-scala.el (org-babel-scala-wrapper-method): Use a Scala block enclosing the submitted code. 2012-10-26 Myles English (tiny change) * org-clock.el (org-clock-in): Moved the call to org-clock-in-prepare-hook until the task's properties can be accessed. 2012-10-26 Nicolas Goaziou * org.el (org-auto-fill-function): Make sure `adaptive-fill-mode' mode is nil when pre-computed `fill-prefix' is the empty string. Otherwise filling functions from fill.el think it has to be computed again and overwrite it. * org.el: Make `org-closest-date' aware of hours repeaters. * org.el (org-end-of-line): Do not call `end-of-visual-line' when moving to the end of line. Also improve behaviour on elements that can be hidden. * org.el (org-sparse-tree): Allow to call `org-show-todo-tree' with an argument. * org-element.el (org-element--get-next-object-candidates): Fix parsing of objects of the same type in a single paragraph. * org-element.el (org-element-sub/superscript-successor): Fix parsing of sub/superscript at beginning of item. (org-element-latex-or-entity-successor): Fix parsing of latex fragments at beginning of item. * org-agenda.el (org-agenda-later): Fix function when span is a number and an argument was provided. Also fix typo in docstring. * org.el (org-read-date-analyze): Fix analyzing for dates like "29.03 16:40". * org-element.el (org-element-center-block-parser) (org-element-drawer-parser, , org-element-footnote-definition-parser) (org-element-inlinetask-parser, org-element-plain-list-parser) (org-element-quote-block-parser, org-element-special-block-parser) (org-element-babel-call-parser, org-element-clock-parser) (org-element-comment-parser, org-element-comment-block-parser) (org-element-example-block-parser, org-element-export-block-parser) (org-element-fixed-width-parser, org-element-horizontal-rule-parser) (org-element-keyword-parser, org-element-latex-environment-parser) (org-element-paragraph-parser, org-element-planning-parser) (org-element-property-drawer-parser, org-element-src-block-parser) (org-element-table-parser) (org-element-verse-block-parserorg-element-dynamic-block-parser): Make sure element never ends at the end of a blank non-empty line. * org-element.el (org-element-context) (org-element--get-next-object-candidates): Fix `org-element-context'. In particular, the restrictions for an object may be different from those of its container (i.e. table rows and table cells). * org-element.el (org-element-example-block-parser) (org-element-src-block-parser): Store value of example-blocks and src-blocks unescaped. (org-element-example-block-interpreter) (org-element-src-block-interpreter): Escape value again when storing it. * org-src.el (org-escape-code-in-string) (org-unescape-code-in-string, org-escape-code-in-region) (org-unescape-code-in-region): New functions. (org-edit-src-code, org-edit-src-exit): Use new functions. * org.el (org-strip-protective-commas): Removed function. * org-exp.el (org-export-select-backend-specific-text): Use new function. * ob.el (org-babel-parse-src-block-match) (org-babel-parse-inline-src-block-match, org-babel-insert-result): Always escape produced blocks, independently on the language of the block, if any. Use new functions. * org-element.el (org-element-paragraph-parser): Fix regexp starting a block. * org-element.el (org-element-center-block-parser): (org-element-drawer-parser, org-element-dynamic-block-parser) (org-element-example-block-parser, org-element-export-block-parser) (org-element-latex-environment-parser, org-element-paragraph-parser) (org-element-property-drawer-parser, org-element-src-block-parser) (org-element-verse-block-parser): Use stricter regexps for boundaries of elements. 2012-10-26 Toby S. Cubitt * org-agenda.el (org-agenda-get-sexps): Reset `extra' to nil at beginning of re-search-forward loop, otherwise next iteration picks up `extra' value from previous entry. 2012-09-30 Abdó Roig-Maranges * org-html.el (org-export-html-preprocess) (org-export-html-format-image): Use `org-latex-preview-ltxpng-directory'. * org-odt.el (org-export-odt-do-preprocess-latex-fragments): Ditto. * org.el (org-latex-preview-ltxpng-directory): New option. (org-preview-latex-fragment): Store LaTeX preview images in `org-latex-preview-ltxpng-directory'. 2012-09-30 Achim Gratz * ob-R.el (org-babel-R-initiate-session): Protect against use of unbound variable `ess-ask-for-ess-directory´. The default for this variable is true, so act accordingly if it is found unbound. * ob-R.el: Remove initialization with `nil´ from `ess-ask-for-ess-directory´ and `ess-local-process-name´. Remove second declaration for `ess-local-process-name´. * org-gnus.el: Add a missing require for gnus-util. * org-compat.el: Rename utils to make throughout. * org.el: Move check for outline-mode-keymap after (require 'outline). * org-element.el: New file. Do not (require 'org). * org-agenda.el: Remove duplicate requires. * org.el (org-mode-map): Add keybindings to `org-element-transpose' and `org-narrow-to-element'. (org-metaup): Fall back on `org-element-drag-backward'. (org-metadown): Fall back on `org-element-drag-forward'. Also move chunks of declarations and require statements to get rid of compiler warnings. * org-exp-blocks.el (org): Don't require org. Add declarations. * org-clock.el (org): Don't require org. * ob-exp.el (org-list-forbidden-blocks): Add declarations. * ob.el (org-babel-exeext): New defconst to hold extension for executables or nil if none. Should be ".exe" for both Windows and Cygwin. * ob-C.el (org-babel-C-execute): Use org-babel-exeext when constructing the target file name for the compiled executable. * ob-fortran.el (org-babel-execute:fortran): Add org-babel-exeext when constructing the target file name for the compiled executable. * org-version.el: New file. * org-compat.el (org-check-version): New macro. Check if org-version.el exists and provide autoloads to that. Otherwise check if org-fixup.el exists and use it to provide definitions. Finally if nothing worked, complain about a botched installation and provide fallback definitions. * org.el: Use org-check-version. * org.el: Fix a subtle error resulting in version functions sometimes not being defined and byte-compiling failing. Always compile in fallback definitions into org.elc -- org-fixup either provides re-definitions at compile-time or checks org-version.el and then the git work tree when run uncompiled. So the fallback definitions will only come into effect when org-fixup is not available. * org.el (org-version): Make org-version more robust, e.g. when byte-compiling single files with 'make compile-dirty'. * org.el (org-reload): Revert an undesirable change in org-reload. Do not prepend org-dir to babel-files, which prevents the files from being found in load-path. * org.el (org-version): Add optional parameters 'full and 'message to optionally return the full version string and echo to message area in non-interactive calls. * org.el (org-submit-bug-report): Add optional parameter 'full to call of (org-version) so that the bug report has all version information. * org.el (org-reload): Simplify file-re (orgtbl-*.el files do not exist anymore). Keep org-*.el at the end of the files list. Explicitely load org-version.el (since it doesn't provide feature 'org-version) at the very end, but ignore errors when it doesn't exist. Add parameters 'full and 'message to the call of (org-version) so that after reload the full version information is displayed in the message area again. * org-agenda.el: Replace with-no-warnings with org-no-warnings (defined in org-macs.el). * org-bbdb.el: Replace with-no-warnings with org-no-warnings (defined in org-macs.el). * org-clock.el: Replace with-no-warnings with org-no-warnings (defined in org-macs.el). * org.el: Replace with-no-warnings with org-no-warnings (defined in org-macs.el). * org.el: Add with-not-warnings around call of (org-fixup). * org-compat.el (org-find-library-dir): Rename org-find-library-name (misleading) and implement with a function that exists identically in Emacs/XEmacs. * org-exp-blocks.el: Change calls to org-find-library-dir. * org.el: change calls to org-find-library-dir. Make require for noutline fail silently because it is missing from XEmacs. * org.el (org-version): Use functions instead of global variables to get the version strings and remove the defvaralias to org-version. Warn when encountering a mixed installation (org and org-install.el should be found in the same directory). * org.el: Add with-no-warning to defvar for two unprefixed global variables from calendar.el (there's nothing else we can do inside org until it is fixed in calendar.el). * org.el: Require find-func and remove declare-function for find-library-name, otherwise autoloaded org-version doesn't show all info correctly. * org.el (org-version): Show the full path to org-install.el in the version string to avoid confusion if multiple installations exist or a previously loaded org-install.el has already defined a version string that is now out of date. * org.el (org-version): Remove determination of version information, show "N/A" if the information is not provided via org-install.el. * org.el (org-git-version): Placeholder for recording the Git version of org during install * org.el (org-version): Initialize local git-version with placeholder and fall through using it when org is not installed in a Git repository 2012-09-30 Adam Spiers (tiny change) * org-html.el: Add hyperlink to http://orgmode.org/ from export footer. * org-clock.el (org-clock-modify-effort-estimate): Display a message when no clock is currently active. 2012-09-30 Andrew Hyatt (tiny change) * org-archive.el (org-archive-subtree): Allow archiving to a datetree. * org.el (org-archive-location): Ditto. 2012-09-30 Bastien Guerry * ob-io.el: New file. * ob-scala.el: New file. * org.el (org-url-hexify-p, org-doi-server-url) (org-latex-preview-ltxpng-directory, org-custom-properties) (org-sparse-tree-default-date-type): Add :version "24.3". * org-agenda.el (org-agenda-sticky) (org-agenda-custom-commands-contexts): Ditto. * org-capture.el (org-capture-bookmark) (org-capture-templates-contexts) (org-capture-use-agenda-date): Ditto. * org-latex.el (org-export-latex-hyperref-options-format) (org-export-latex-link-with-unknown-path-format): Ditto. * org-id.el (org-id-link-to-org-use-id): Ditto. * org-datetree.el (org-datetree-add-timestamp): Ditto. * org.el (org-make-link-description-function): Enhance docstring. (org-insert-link): Fall back on interactive prompt when `org-make-link-description-function' fails. * org-agenda.el (org-todo-list): Fix redoing of todo agenda when `org-agenda-sticky' is non-nil. * org-agenda.el (org-agenda-quit): Delete last indirect buffer. (org-agenda-pre-follow-window-conf): New variable. (org-agenda-tree-to-indirect-buffer): Fix bug: don't split agenda window when there an indirect buffer is already displayed. * org-agenda.el (org-agenda-manipulate-query) (org-agenda-goto-date, org-agenda-goto-today) (org-agenda-find-same-or-today-or-agenda, ) (org-agenda-later, org-agenda-change-time-span) (org-agenda-change-all-lines) (org-agenda-execute-calendar-command) (org-agenda-goto-calendar, org-agenda-convert-date): Make sure to get a property from (1- (point-max)), not (point-max)). * ob-dot.el (org-babel-execute:dot): Throw an error when there is no :file parameter. * org-table.el (org-table-eval-formula): Convert time-stamps to inactive time-stamp so that Calc can handle them correctly. * org-table.el (org-table-fix-formulas): Warn with a message when formulas have been updated. * org-publish.el (org-publish-cache-ctime-of-src): Delete the base-dir argument and use (file-name-directory file) to get the file's directory. (org-publish-update-timestamp) (org-publish-cache-file-needs-publishing): Call `org-publish-cache-ctime-of-src' with only one argument. * org.el (org-follow-timestamp-link): Fix bug when using sticky agenda. Add a docstring. * org-agenda.el (org-agenda-sticky): Don't use a function to set. Add a :version string. * org.el (org-priority): Use a new argument to show priority instead of setting it. (org-show-priority): New function to show priority both in normal Org buffers and in Org Agenda buffers. (org-speed-commands-default): Use "," as a speed command for setting priority. * org-agenda.el (org-agenda-mode-map): Bind `org-agenda-priority' to `C-c ,' as it was before. (org-agenda-show-priority): Delete. (org-agenda-priority): Use a new argument to show priority instead of setting it. * org.el (org-font-lock-hook, org-set-font-lock-defaults): Add a docstring. (org-display-inline-remove-overlay): Rename from `org-display-inline-modification-hook'. (org-speed-command-activate): Rename from `org-speed-command-default-hook'. (org-babel-speed-command-hook): Rename from `org-babel-speed-command-activate'. * org-agenda.el (org-agenda-update-agenda-type): Rename from `org-agenda-post-command-hook'. (org-agenda-mode): Use the new name. (org-agenda-post-command-hook): Define as obsolete function. * org-lparse.el (org-lparse): Temporarily activate the hooks needed for the ODT conversion. (org-lparse-preprocess-after-blockquote): Rename from `org-lparse-preprocess-after-blockquote-hook'. (org-lparse-strip-experimental-blocks-maybe): Rename from `org-lparse-strip-experimental-blocks-maybe'. (org-lparse-preprocess-after-blockquote-hook) (org-lparse-strip-experimental-blocks-maybe-hook): Define as obsolete functions. * ob.el (org-babel-insert-result): Comma-escape results inserted with ":results org". * org-src.el (org-edit-src-code, org-edit-src-exit): Fix bug about saving the source editing window with the default value for `org-src-window-setup' (i.e. 'reorganize-frame). * org-src.el (org-src-font-lock-fontify-block): Fix bug: don't fontify the last character. * org.el (org-open-at-point): Don't follow timestamp within bracket links. * org-capture.el (org-capture-templates): Fix typo in docstring. * org-agenda.el (org-agenda-skip): Skip information retrieved from a source block. * ob.el (org-babel-common-header-args-w-values) (org-babel-insert-result): Reintroduce ":results org" but using "#+BEGIN_SRC org", not "#+BEGIN_ORG". * ob.el (org-babel-common-header-args-w-values): Remove "org" the list of predefined values for the ":results" parameter. * ob.el (org-babel-insert-result): Remove support for ":results org". * ob.el (org-babel-common-header-args-w-values) (org-babel-insert-result): Deprecate ":results wrap" in favor of ":results drawer". * org-crypt.el (org-at-encrypted-entry-p): Fix bug when the check happens before the first headline. * org-capture.el (org-at-encrypted-entry-p) (org-encrypt-entry, org-decrypt-entry): Declare. (org-capture-set-target-location): Check whether `org-crypt' has been loaded. * org-agenda.el (org-agenda-todo-custom-ignore-p): Fix typo in docstring. * org-capture.el (org-capture-finalize): Maybe re-encrypt the target headline if it was decrypted. (org-capture-set-target-location): Maybe decrypt the target headline. * org-crypt.el (org-at-encrypted-entry-p): New function. * org.el (org-options-keywords): Add "STYLE:". * org-agenda.el (org-agenda-ndays): Don't make an alias, as `org-agenda-span' is defined separately. * org.el (org-in-subtree-not-table-p): New utility function for building the menu. (org-org-menu): Add an item for refiling. Check more contexts when activating items. (org-tree-to-indirect-buffer): Use `org-up-heading-safe'. * org-agenda.el (org-agenda-tree-to-indirect-buffer) (org-agenda-do-tree-to-indirect-buffer): Use argument `arg'. * org-capture.el (org-capture-set-target-location): Set a correct time value when storing a note in a datetree and prompting the user for a date. * org-capture.el (org-capture-mode): Fix bug: don't run the mode's hook twice. * org-agenda.el (org-agenda-menu-two-column) (org-finalize-agenda-hook, org-agenda-ndays): Use `define-obsolete-variable-alias' instead of `make-obsolete-variable'. * org.el (org-link-to-org-use-id): Move to org-id.el. * org-id.el (org-id-link-to-org-use-id): Rename from `org-link-to-org-use-id'. Use `nil' as the default value. (org-link-to-org-use-id): Alias and define as obsolete. * org-agenda.el (org-search-view, org-agenda-get-todos) (org-agenda-get-timestamps, org-agenda-get-blocks): Use the dotime parameter of `org-agenda-format-item' so that 'time-up and 'time-down agenda sorting strategies are handled correctly. * org-capture.el (org-capture-fill-template): Fix checking of protected template entries. * org.el (org-cycle-global-at-bob): Fix typo in docstring. * org.el (org-insert-drawer): Deactivate the mark before trying to indent the :END: of the drawer. * org-agenda.el (org-agenda-export-html-style): Default to nil as any string value will replace the htmlize style. * org.el (org-cycle-hook): Fix tiny typo in docstring. * org.el (org-time-string-to-time) (org-time-string-to-seconds, org-end-of-subtree): Add a dosctring. * org-freemind.el (org-freemind-write-node): Enhance links conversion in nodes. * org-freemind.el (org-freemind-write-node): Convert links in nodes. * org.el (org-link-to-org-use-id, org-directory) (org-default-notes-file, org-reverse-note-order) (org-extend-today-until, org-finish-function) (org-store-link-functions): Use "capture" instead of "remember" in docstrings. Also use the `org-capture' group when it makes sense. * org-agenda.el (org-agenda-tree-to-indirect-buffer): Find the correct agenda buffer. Don't split the agenda window when the indirect buffer is displayed in another frame. * org.el (org-mode): Try to set the org-hide face correctly. * org-exp.el (org-export): Set the mark correctly when exporting a subtree. * org-agenda.el (org-agenda-get-restriction-and-command): Fix the display of the number of commands for block agendas. * org-agenda.el (org-agenda-before-write-hook) (org-agenda-add-entry-text-maxlines): Enhance phrasing. (org-agenda-finalize-hook, org-agenda-mode-hook): Tell that the buffer is writable when the hook is called. (org-agenda-finalize): Allow org-agenda-finalize-hook to modify the buffer. * org-agenda.el (org-habit-show-all-today): Only use defvar to silent the byte-compiler. (org-agenda-get-scheduled): Check whether some org-habit.el options have been defined. * org-capture.el (org-capture-entry): New variable. (org-capture-string, org-capture): Use it to possibly skip the interactive prompt for a capture template. * org.el (org-activate-plain-links): Don't try to check if we are in a bracket link already. * org.el (org-read-date-analyze): Fix bug introduced in commit cc5f9f: adding a time should not prevent relative answers to be parsed correctly. * org-agenda.el (org-agenda-bulk-action): Always read the date through `org-read-date'. When possible, use the date at point as the default date. * org-agenda.el (org-agenda-bulk-action): Fix bug when bulk-shifting timestamps. * org.el (org-version): New constant. * org-compat.el (org-random): New compatibility function. * org-id.el (org-id-uuid): Use it. * org-capture.el (org-capture-use-agenda-date): New option. (org-capture): Use it. * org-agenda.el (org-agenda-capture): New command. (org-agenda-mode-map): Bind it to `k'. (org-agenda-menu): Add it to the menu. * org-capture.el (org-capture): Update docstring. * org-capture.el (org-capture): When called from an agenda buffer, use the cursor date at the default date. * org-agenda.el (org-agenda-bulk-action): Use the let-bound `entries' instead the variable. * org-agenda.el (org-agenda-bulk-action): Fix bug: don't remove persistent marks too early. * org-agenda.el (org-agenda-bulk-action): Possibly use the day at point to reset the scheduled or deadline cookie. On date headers, use it without prompting the user. On an item, use the item's date as the default prompt for `org-read-date'. * org.el (org-read-date): Docstring fix. * org-agenda.el (org-agenda-bulk-action): Reorder possible actions in the message. * org-agenda.el (org-agenda-action, org-agenda-do-action): Delete. (org-agenda-mode-map): Delete related keys. * org-agenda.el (org-agenda-menu): Fix a keybinding. * org-colview.el (org-columns-goto-top-level): Correctly move the marker `org-columns-top-level-marker'. (org-agenda-columns): Don't set `org-agenda-overriding-columns-format' as a buffer variable, as we only need it dynamically. (org-agenda-colview-summarize): Fix a bug in returning the match string. * org-agenda.el (org-agenda-span-to-ndays): Make the second argument `starting-day' optional. (org-agenda-goto-date): Keep parameters of custom agendas. * org-agenda.el (org-agenda-list): Allow setting the agenda buffer name through a temporary variable. (org-agenda-buffer-tmp-name): New variable to temporary store the agenda buffer name. * org-agenda.el (org-agenda-goto-date): Fix behavior when using sticky agendas. * org-agenda.el (org-diary): Don't check whether there is an agenda buffer when trying to compile the prefix format. (org-compile-prefix-format): Check if there is an agenda buffer. If not, use the current buffer. * org-agenda.el (org-agenda-get-day-entries): Set the agenda buffer inconditionnally. * ob.el (org-babel-named-src-block-regexp-for-name): Generate a more general regexp. * ob.el (org-babel-where-is-src-block-head): Find a src block head correctly when #+header(s) is before #+name. * org-agenda.el (org-agenda-finalize-hook) (org-agenda-finalize, org-agenda-finalize-entries): Rename from org-finalize-agenda-*. (org-agenda-run-series, org-agenda-finalize, org-timeline) (org-agenda-list, org-search-view, org-todo-list) (org-tags-view, org-diary, org-agenda-finalize-entries) (org-agenda-change-all-lines): Use the new names. * org-agenda.el (org-agenda-local-vars): Remove ̀org-agenda-last-arguments' from the list of local variables. (org-agenda-mode-map): `g' does the same than `r' in buffers with only one agenda view, but its behavior differs when there are several views. In manually appended agendas (with `A'), `g' displays only the agenda under the point. With multiple agenda blocks, `g' reinitializes the view by discarding any temporary changes (e.g. with ̀f' or `w'), while ̀r' keeps those temporary changes for the agenda view under the point. (org-agenda-run-series, org-agenda-redo): Implement the above changes. (org-agenda-mark-header-line): Don't set useless properties. (org-agenda-list, org-todo-only, org-search-view) (org-todo-list, org-tags-view, org-agenda-list-stuck-projects) (org-agenda-manipulate-query, org-agenda-goto-today) (org-agenda-later, org-agenda-change-time-span): Use text properties for storing the last command and the last arguments for each agenda block. (org-unhighlight-once): Delete. * org-agenda.el (org-agenda-append-agenda): Fit agenda window to buffer. * org-agenda.el (org-agenda-append-agenda): Bugfix: correctly check whether we are in org-agenda-mode. * org-agenda.el (org-agenda-pre-window-conf): Rename from `org-pre-agenda-window-conf'. (org-agenda-local-vars, org-agenda-prepare-window) (org-agenda-Quit, org-agenda-quit): Use the new name. * org-agenda.el (org-keys, org-match): New variable, dynamically scoped in `org-agenda'. (org-agenda, org-agenda-list, org-search-view, org-todo-list) (org-tags-view): Use the new variables. (org-batch-store-agenda-views): Let-bind `match'. * org-agenda.el (org-search-view, org-todo-list) (org-tags-view): Do not let `org-agenda-sticky' prevent the use of these functions programmatically. Also use the sticky agenda function correctly. * org-agenda.el (org-agenda): Set `org-agenda-buffer-name' correctly with sticky agendas and non-custom commands. * org-agenda.el (org-agenda-fit-window-to-buffer): Rename from `org-fit-agenda-window'. (org-agenda-run-series, org-agenda-prepare, org-agenda-list) (org-search-view, org-todo-list, org-tags-view): Use the new name. * org-agenda.el (org-agenda-prepare): Let `throw' display an error. * org-agenda.el (org-agenda-list): Fix bug: don't throw an error when called from programs as (org-agenda-list). * org-agenda.el (org-todo-list): Make arg optional. * org.el (org-agenda-prepare-buffers): Rename from `org-prepare-agenda-buffers'. (org-match-sparse-tree, org-map-entries): Use the new names. * org-agenda.el (org-agenda-prepare-window): Rename from `org-prepare-agenda-window'. (org-agenda-prepare): Rename from `org-prepare-agenda'. (org-agenda-run-series, org-agenda-prepare, org-timeline) (org-agenda-list, org-search-view, org-todo-list) (org-tags-view, org-agenda-list-stuck-projects, org-diary) (org-agenda-to-appt): Use the new names. * org-mobile.el (org-mobile-create-index-file): Ditto. * org-icalendar.el (org-export-icalendar): Ditto. * org-clock.el (org-dblock-write:clocktable) (org-dblock-write:clocktable): Ditto. * org2rem.el (org2rem): Ditto. * org-agenda.el (org-agenda): In sticky agendas, use the current command's match to set the buffer name. This gives more information to the user and allows to distinguish various agendas triggered by the same key. (org-batch-store-agenda-views): Handle the new sticky agenda buffer name. * org-agenda.el (org-agenda) (org-agenda-get-restriction-and-command): Use `S' as a key for searching words in TODO-only entries. * org-agenda.el (org-prepare-agenda): Fit agenda window when displaying a sticky agenda. * org-table.el (org-table-number-regexp): Allow the user to set it to a new regexp, which allows commas as decimal mark. The default is to not use this setting, but the one before commit 7ff8c1, which has ben reverted. * org-agenda.el (org-agenda-overriding-cmd) (org-agenda-multi-current-cmd) (org-agenda-multi-overriding-arguments): New variables. (org-agenda-run-series): `org-agenda-overriding-arguments' defaults to the last agenda block arguments, so don't use it globally. (org-agenda-mark-header-line): Add properties needed so that `org-agenda-overriding-arguments', `org-agenda-current-span' and `org-agenda-last-arguments' can be set to their correct contextual value. (org-agenda-multi-back-to-pos): New variable. (org-agenda-later): Retrieve `org-agenda-current-span' and `org-agenda-overriding-arguments' from text properties. Also handle numeric span. (org-agenda-later, org-agenda-change-time-span): Set `org-agenda-overriding-cmd' so that we to take overriding arguments into account for this command only. * org-agenda.el (org-agenda-kill, org-agenda-archive-with): Fix bug when called with a non-nil value of `org-agenda-stick'. * org-agenda.el (org-agenda-refile): Fix bug when refiling an entry from a sticky agenda. * org-agenda.el (org-prepare-agenda-window): Use `org-pre-agenda-window-conf' if already set. (org-agenda-Quit): Set `org-pre-agenda-window-conf' to nil when quitting. (org-agenda-quit): Ditto. * org-capture.el (org-capture-fill-template): Protect the text used for replacement from being further replaced. * org.el (org-contextualize-validate-key): Fix the check against a function. * org.el (org-contextualize-keys): Rename from `org-contextualize-agenda-or-capture'. Fix normalization to handle empty key replacement string. (org-contextualize-validate-key): Rename from `org-contexts-validate'. Allow checking against a custom function. * org-agenda.el (org-agenda-custom-commands-contexts): Update. (org-agenda): Use `org-contextualize-keys'. * org-capture.el (org-capture-templates-contexts): Ditto. * org.el (org-contextualize-agenda-or-capture): Normalize contexts. * org.el (org-contextualize-agenda-or-capture): Handle key replacement depending on the contexts. * org-capture.el (org-capture-templates-contexts): Allow to use the context as a way to replace one capture template by another one. * org-agenda.el (org-agenda-custom-commands-contexts): Allow to use the context as a way to replace one agenda custom command by another one. * org.el (org-contextualize-agenda-or-capture) (org-rule-validate): New functions, implement context filtering for agenda commands and capture templates. * org-agenda.el (org-agenda-custom-commands-contexts): New option. (org-agenda): Use it. * org-capture.el (org-capture-templates-contexts): New option. (org-capture-select-template): Use it. * org.el (org-beginning-of-defun, org-end-of-defun): Delete. (org-mode): Set `beginning-of-defun-function' and `end-of-defun-function' directly. * org.el (org-insert-link): Fix bug: include links abbreviations when completing. * org-icalendar.el (org-icalendar-print-entries): Fix bug: when `org-icalendar-use-plain-timestamp' is nil, scheduled and deadline items should not be ignored. * org.el (org-ds-keyword-length, org-make-tags-matcher): Docstring clean-up. * org-freemind.el (org-freemind-convert-links-from-org): Replace literally to prevent errors when replacing with string containing backslashes. * org-pcomplete.el (org-thing-at-point): Allow to match (and then complete) a "thing" containing dashes. * org-table.el (org-table-toggle-coordinate-overlays): Better message when interactively toggling. * org-table.el (org-table-number-regexp): Update the docstring to show an example of a decimal number using the comma as a separation mark. * org-agenda.el (org-prepare-agenda): Minor code clean-up. (org-agenda-filter-by-category): Filtering must be turned off only when a category filter has been set and this filter is not empty. * org-agenda.el (org-search-view, org-agenda-get-todos) (org-agenda-get-timestamps, org-agenda-get-sexps) (org-agenda-get-progress, org-agenda-get-deadlines) (org-agenda-get-scheduled, org-agenda-get-blocks): Use `category-pos' instead of `org-category-pos'. * ob-fortran.el (org-babel-fortran-transform-list): Rename from `ob-fortran-transform-list'. (org-babel-fortran-var-to-fortran): Use the new function's name. * ob-calc.el (org-babel-calc-maybe-resolve-var): Rename from `ob-calc-maybe-resolve-var'. (org-babel-execute:calc): Use the new function's name. * org-jsinfo.el (org-infojs-template): Add a license. (org-infojs-handle-options): Replace all template elements. * org-html.el (org-export-html-scripts): Add a license. (org-export-html-mathjax-config): Replace all template elements. (org-export-html-mathjax-template): Add a license. (org-export-as-html): Minor code clean-up. * org.el (org-options-keywords): Add "#+MATHJAX" and "#+INFOJS_OPT" to the list of keywords for completion. * org.el (org-src-prevent-auto-filling): Remove unused and useless option. * org.el (org-element-at-point): Autoload. (org-element-up): Remove useless declaration. (org-fill-context-prefix, org-fill-paragraph) (org-mark-element, org-narrow-to-element) (org-transpose-element, org-unindent-buffer): Do not require org-element. * org.el (org-fill-paragraph): Require org-element. * org-agenda.el (org-agenda-persistent-marks): Minor docstring enhancement. * org.el (org-create-math-formula): Use the compatibility function `org-region-active-p'. * org-odt.el (org-export-as-odf): Ditto. * ob.el (org-babel-demarcate-block): Ditto. * org.el (org-mark-subtree): Maybe call `org-mark-element' interactively. (org-mark-element): Only mark further elements when called interactively. * org.el (org-mark-element, org-narrow-to-element) (org-transpose-element): Require org-element. * org-agenda.el (org-agenda-get-timestamps) (org-agenda-get-sexps, org-agenda-get-deadlines) (org-agenda-get-scheduled): Add the 'warntime as a text property, getting its value from the APPT_WARNTIME property. (org-agenda-to-appt): Use the 'warntime text property. * org-capture.el (org-capture-place-table-line): Fix bug. * org.el (org-activate-plain-links): Don't activate a plain link when it is part of a bracketed link, unless bracketed links are not enlisted in `org-activate-links'. (org-open-at-point): Don't consider the text immediately after a bracketed link is part of a plain link. * org.el (org-compute-latex-and-specials-regexp) (org-paste-subtree, org-sort-entries, org-store-link) (org-open-at-point, org-file-remote-p, org-add-log-setup) (org-set-tags-to, org-fast-tag-selection) (org-diary-sexp-entry): Ditto. * org-agenda.el (org-agenda-get-blocks, org-cmp-priority) (org-cmp-effort, org-cmp-todo-state, org-cmp-alpha) (org-cmp-tag, org-cmp-time): Remove useless (t nil) sexps at the end of (cond ...) constructs. * org-mobile.el (org-mobile-create-index-file): Ditto. * org-lparse.el (org-lparse-format-table-row): Ditto. * org-list.el (org-sort-list): Ditto. * org-id.el (org-id-get): Ditto. * org-html.el (org-export-html-preprocess): Ditto. * org-exp.el (org-default-export-plist) (org-table-clean-before-export): Ditto. * org.el (org-options-keywords): Add "TODO". (org-make-options-regexp): Make the hashtag mandatory for options and don't allow whitespaces between the hashtag and the plus sign. * org.el (org-refresh-category-properties) (org-find-dblock, org-dblock-start-re, org-dblock-end-re): Allow lowercase "#+category" and "#+begin:" dynamic blocks. * org.el (org-context): Use case-folding when trying to match clocktables and source blocks contexts. * org-clock.el (org-clock-put-overlay): Put the overlay on the whole headline, not only on the last character. This fixes a bug with overlays on headlines ending with a bracketed link. * org-html.el (org-export-as-html): Make sure we always process a string. * org-exp.el (org-export-cleanup-toc-line): Always return a string. * org.el (org-fontify-meta-lines-and-blocks-1): Correctly handle metalines with #+results[...]:. * org-exp.el (org-export-handle-metalines): Rename from `org-export-handle-table-metalines'. Now also handle source block metalines. (org-export-res/src-name-cleanup): Delete. (org-export-preprocess-string): Use `org-export-handle-metalines'. Don't use `org-export-res/src-name-cleanup' anymore. * org-html.el (org-format-org-table-html): Don't include the caption tag for empty captions in HTML export. Keep it in the DocBook export so that it produces valid DocBook XML. * org.el (org-read-date-analyze): Allow both "8am Wed" and "Wed 8am" to be parsed correctly with respect to possible values of `org-read-date-prefer-future'. (org-read-date-prefer-future): Update docstring to remove the restriction about inserting only the time. The user can now insert the time and the day. * org-icalendar.el (org-icalendar-print-entries): Rename from `org-print-icalendar-entries'. (org-icalendar-start-file): Rename from `org-start-icalendar-file'. (org-icalendar-finish-file): Rename from `org-finish-icalendar-file'. (org-icalendar-ts-to-string): Rename from `org-ical-ts-to-string'. (org-export-icalendar): Use the correct functions. * ob-ref.el (org-babel-ref-index-list): Fix bug introduced by commit e85479. * org.el (org-fill-context-prefix): Require org-element. (org-timestamp-change): Fix bug by saving excursion when adjusting another clock. * org.el (org-read-date-prefer-future): Fix docstring formatting. (org-read-date-analyze): Fix the interpretation of `org-read-date-prefer-future'. * org-agenda.el (org-agenda-menu-two-column): Rename to `org-agenda-menu-two-columns'. * ob.el (org-babel-sha1-hash, org-babel-noweb-p): Replace `org-labels' by `let*'. * org-bibtex.el (org-bibtex-headline): Ditto. * org-compat.el: Delete `org-labels'. * ob.el (org-babel-get-src-block-info) (org-babel-check-src-block, org-babel-current-result-hash) (org-babel-parse-src-block-match, org-babel-read-link) (org-babel-insert-result, org-babel-clean-text-properties): Use ̀org-no-properties' instead of `org-babel-clean-text-properties'. (org-babel-clean-text-properties): Delete redundant function `org-babel-clean-text-properties'. * ob-tangle.el (org-babel-tangle-collect-blocks) (org-babel-tangle-comment-links): Ditto. * ob-table.el (sbe): Ditto. * ob-lob.el (org-babel-lob-get-info) (org-babel-lob-execute): Ditto. * ob-exp.el (org-babel-exp-non-block-elements): Ditto. * org-macs.el (org-no-properties): Allow a new parameter `restricted' to restrict the properties removal to those in `org-rm-props'. The default is now to remove all properties. * org-compat.el (org-substring-no-properties): Remove unused defun. * org-remember.el (org-remember-apply-template): Remove redundant removal of text properties. (org-remember-apply-template): Use `org-no-properties'. * org-capture.el (org-capture-fill-template): Remove redundant removal of text properties. (org-capture-fill-template): Use `org-no-properties'. * org-gnus.el (org-gnus-open, org-gnus-follow-link): Use `org-no-properties'. * org-colview.el (org-columns-display-here): Ditto. * org-table.el (org-table-eval-formula): Ditto. * org.el (org-entry-properties): Ditto. * org-icalendar.el (org-print-icalendar-entries): Fix bug about handling `alarm-time'. * ob-R.el (org-babel-edit-prep:R): Don't set the session. * org.el (org-store-log-note): Only skip comments starting with "# " when storing a note. * org.el (org-custom-properties): New option. (org-custom-properties-overlays): New variable. (org-toggle-custom-properties-visibility): New command to toggle the visibility of custom properties. (org-check-before-invisible-edit): Also prevent errors when trying to edit invisible properties. * org-datetree.el (org-datetree-add-timestamp): New option. (org-datetree-insert-line): Use it. * org.el (org-fill-template): Fix bug when filling template for a key associated to the nil value. * org-agenda.el (org-diary): Fix tiny typo. * org.el (message-in-body-p): Move declaration up to fix compiler warning. * org.el (org-fill-context-prefix): Fix auto-filling in `message-mode'. * org.el (org-fill-paragraph): Correctly fill paragraph in message-mode. (org-indent-line): Correctly indent according to mode when `orgstruct++-mode' is on. (orgstruct++-mode): Add `fill-prefix' to the variable temporarily stored in `org-fb-vars'. * org.el (org-fill-paragraph): Make a command. Fix bug about filling message headers and citations. * org.el (org-redisplay-inline-images): New command. (org-mode-map): Bind it to C-c C-x C-M-v. * org-colview.el (org-columns-get-format-and-top-level): Fix bug. (org-columns-get-format): Fix compiler warning. * org-feed.el: Add declarations. * org-agenda.el (org-agenda-get-sexps): Use `org-get-tags-at' to allow tag inheritance. * org-capture.el (org-capture): Fix bug introduced by commit 1737d3. * org-publish.el (org-publish-needed-p) (org-publish-update-timestamp, org-publish-file) (org-publish-cache-file-needs-publishing): New argument `base-dir'. (org-publish-cache-ctime-of-src): Use the new argument to make sure we find the file according to :base-directory. * org-capture.el (org-capture-string): New command to prompt for the interactive text interactively. This can also be used in Elisp programs to use ̀org-capture' with some initial text. (org-capture-initial): New variable to store the initial text. (org-capture): Use `org-capture-initial'. * org.el (org-emph-re): Tiny docstring formatting fix. * org-compat.el (org-labels): Remove. * org-bibtex.el (org-bibtex-headline): Don't use `org-labels'. * ob.el (org-babel-sha1-hash, org-babel-noweb-p): Ditto. * org.el (org-emph-re): Tiny formatting fix. * org.el (orgstruct-setup): Require `org-element'. * org.el (org-store-link, org-open-at-point): New link type "help". * org-compat.el (org-flet): Remove alias. * ob.el (org-babel-edit-distance, org-babel-sha1-hash) (org-babel-get-rownames, org-babel-insert-result) (org-babel-merge-params) (org-babel-expand-noweb-references): Don't use `org-flet'. Also indent some functions correctly. * ob.el (org-babel-execute-src-block) (org-babel-join-splits-near-ch, org-babel-format-result) (org-babel-examplize-region): Don't use `org-flet'. (org-babel-tramp-handle-call-process-region): Fix typo. * ob-awk.el (org-babel-awk-var-to-awk): Don't use `org-flet'. * ob-sh.el (org-babel-sh-var-to-string): Ditto. * ob-tangle.el (org-babel-tangle, org-babel-spec-to-string): Don't use `org-flet'. * org-pcomplete.el (org-compat): Require. * ob-tangle.el (org-babel-load-file): Don't use `org-flet'. * org-bibtex.el (org-bibtex-write): Use let*. * org-plot.el (org-plot/gnuplot-script): Don't use `org-flet'. * org-bibtex.el (org-bibtex-headline, org-bibtex-fleshout) (org-bibtex-read, org-bibtex-write): Don't use `org-flet'. * org-clock.el (org-clock-cancel): Use `org-looking-back'. * org-pcomplete.el (org-thing-at-point): Ditto. * org.el (org-timestamp-change): Ditto. * org-mouse.el (org-mouse-timestamp-today) (org-mouse-set-priority, org-mouse-popup-global-menu) (org-mouse-context-menu): Don't use ̀org-flet'. * org.el (org-priority): Fix docstring. * org-publish.el (org-publish-write-cache-file) (org-publish-initialize-cache) (org-publish-cache-file-needs-publishing) (org-publish-cache-get): Small code clean-up. * org-publish.el (org-publish-cache-ctime-of-src): Simplify. * org-agenda.el (org-agenda-get-sexps): Add a 'tags property for agenda entries created from sexps. * org-capture.el (org-capture-templates): Docstring clean up. (org-capture-place-entry, org-capture-place-item) (org-capture-place-plain-text, org-capture-place-table-line): Ensure to always position the point according to %?. * org-table.el (org-table-convert-refs-to-rc): Fix bug when converting remote table references. * org-agenda.el (org-agenda-switch-to): Run hooks in ̀org-agenda-after-show-hook'. * ob-ref.el (org-babel-ref-index-list): Use let* and rename the variable `length' to `lgth'. * org-plot.el (org-plot/gnuplot-to-grid-data): Don't use ̀org-flet'. * org-exp.el (org-export-format-source-code-or-example): Ditto. * org-exp-blocks.el (org-export-blocks-preprocess): Ditto. * ob.el (org-babel-view-src-block-info) (org-babel-execute-src-block, org-babel-edit-distance) (org-babel-switch-to-session-with-code) (org-babel-balanced-split, org-babel-insert-result): Ditto. * ob-ref.el (org-babel-ref-index-list): Ditto. * ob-python.el (org-babel-python-evaluate-session): Ditto. * ob-lob.el (org-babel-lob-get-info): Ditto. * ob-gnuplot.el (org-babel-expand-body:gnuplot): Ditto. * ob-exp.el (org-babel-exp-do-export): Ditto. * org-table.el (orgtbl-to-generic): Fix docstring. * org-clock.el (org-clock-in): Call `org-clock-out' with the new argument `switch-to-state' set to nil. Fix docstring. (org-clock-in-last): Prompt for a todo state to switch to when called with three universal prefix arguments. Don't display a message when the clock is already running. Update docstring. (org-clock-out): New argument `switch-to-state'. When this argument is non-nil, prompt for a state to switch the clocked out task to, overriding `org-clock-out-switch-to-state'. * org.el (org-entry-get): Don't use `org-flet'. * org.el (org-forward-heading-same-level): Rename from `org-forward-same-level'. (org-backward-heading-same-level): Rename from `org-backward-same-level'. * org.el (org-forward-element): Rename from `org-element-forward'. (org-backward-element): Rename from `org-element-backward'. (org-up-element): Rename from `org-element-up'. (org-down-element): Rename from `org-element-down'. (org-drag-element-backward): Rename from `org-element-drag-backward'. (org-drag-element-forward): Rename from `org-element-drag-forward'. (org-mark-element): Rename from `org-element-mark-element'. (org-transpose-element): Rename from `org-element-transpose'. (org-unindent-buffer): Rename from `org-element-unindent-buffer'. (org-mode-map): Update the names of a commands. Remove useless declarations. * org-element.el (org-element-forward, org-element-backward) (org-element-up, org-element-down) (org-element-drag-backward, org-element-drag-forward) (org-element-mark-element, org-narrow-to-element) (org-element-transpose, org-element-unindent-buffer): Move to org.el. * org.el (org-forward-same-level): Fix typo in docstring. * org-agenda.el (org-agenda-mode-map): Bind `org-agenda-show-priority' to `C-c,' instead of `P'. (org-agenda-next-item, org-agenda-previous-item): New commands to move by one item down/up in the agenda. (org-agenda-mode-map): Bind `org-agenda-next-item' and `org-agenda-previous-item' to `N' and `P' respectively. * org-rmail.el (org-rmail-store-link, org-rmail-follow-link): Toggle headers when necessary. * org-element.el (org-narrow-to-element): Autoload. * org.el (org-mode-map): Use `M-h' for `org-element-mark-element'. (org-mark-subtree): Allow a numeric prefix argument to move up into the hierarchy of headlines. * org-element.el (org-element-up, org-element-down): Autoload. * org.el: Declare functions and don't require org-element. * org-element.el (org-element-at-point, org-element-forward) (org-element-backward, org-element-drag-backward) (org-element-drag-forward, org-element-mark-element) (org-element-transpose, org-element-unindent-buffer): Autoload. Require 'org and remove all declarations. * org.el (org-outline-regexp-bol, org-heading-regexp): Use variables instead of constants. * org-archive.el (org-datetree-find-date-create): Declare. * org.el (org-open-at-point): Only set `clean-buffer-list-kill-buffer-names' when the feature 'midnight has been loaded. * org-icalendar.el (org-print-icalendar-entries): Let APPT_WARNTIME take precedence over ̀org-icalendar-alarm-time'. * org.el (org-special-properties): New special property CLOCKSUM_T. (org-entry-properties): Handle the new special property. * org-colview.el (org-columns): Handle a new special property CLOCKSUM_T. (org-agenda-colview-summarize, org-agenda-colview-compute): Ditto. * org-clock.el (org-clock-sum-today): New function. (org-clock-sum): New argument PROPNAME to set a custom text property instead of :org-clock-minutes. * org-agenda.el (org-agenda-check-type): Throw a more appropriate error message when no agenda is currently being displayed. * org.el (org-get-property-block): Find blocks before the first headline. (org-entry-properties): Minor code cleanup. (org-entry-get, org-entry-get-with-inheritance): Get property before the first headline. * org-mobile.el (org-mobile-create-index-file): Use `files-alist'. * org.el (org-make-link): Delete. (org-store-link, org-insert-link) (org-file-complete-link): Don't use `org-make-link'. * org-wl.el (org-wl-store-link-folder) (org-wl-store-link-message): Ditto. * org-vm.el (org-vm-store-link): Ditto. * org-rmail.el (org-rmail-store-link): Ditto. * org-mhe.el (org-mhe-store-link): Ditto. * org-mew.el (org-mew-store-link): Ditto. * org-irc.el (org-irc-erc-store-link): Ditto. * org-info.el (org-info-store-link): Ditto. * org-id.el (org-id-store-link): Ditto. * org-gnus.el (org-gnus-group-link, org-gnus-article-link): Ditto. * org-eshell.el (org-eshell-store-link): Ditto. * org-bbdb.el (org-bbdb-store-link): Ditto. * org.el (org-url-hexify-p): New option. When non-nil (the default), hexify URLs when creating a link. * org.el (org-insert-link): Make sure point is at the beginning of the buffer. * org.el (clean-buffer-list-kill-buffer-names): Declare. (org-open-at-point): Allow opening multiple shell links by creating a new output buffer for each shell process. The new buffer is added to `clean-buffer-list-kill-buffer-names'. * org-mobile.el (org-mobile-create-index-file): Use `org-global-tags-completion-table' instead of `org-tag-alist-for-agenda' to get the tags for the index file. * org.el (org-global-tags-completion-table): Fix typo in docstring. * org.el (org-link-to-org-use-id): Use `org-capture' instead of `org-remember' in the docstring. (org-link-fontify-links-to-this-file): New function to fontify links to the current buffer in `org-stored-links'. (org-store-link): Small code simplification. (org-link-prettify): Enclose literal links into <...> instead of [[...]]. (org-insert-link): Use `org-link-fontify-links-to-this-file'. Also allow completion over links' descriptions, as well as links destinations. When the user uses the description for completion, don't prompt again for a description. * org-capture.el (org-capture-templates): Fix docstring by adding Gnus to the list of mail clients. * org.el (org-log-repeat): Enhance docstring. * org.el (org-mode-map): Don't bind C- and C- to `org-element-backward/forward' as these functions stops when there is no element of the same type before/after point. It is useful to navigate with `forward/backward-paragraph' with no stop in most cases. * org-capture.el (org-capture-templates): New template %l to insert the literal link pointing at the current buffer. * org.el (org-todo-keywords): Ditto. * org.el (org-fill-paragraph): Falls back on `message-fill-paragraph' if required in `message-mode'. * org-pcomplete.el (pcomplete/org-mode/file-option/x): New macro. (pcomplete/org-mode/file-option/options) (pcomplete/org-mode/file-option/title) (pcomplete/org-mode/file-option/author) (pcomplete/org-mode/file-option/email) (pcomplete/org-mode/file-option/date): Use the new macro to offer completion over default values for #+OPTIONS, #+TITLE, #+AUTHOR, #+EMAIL and #+DATE. * org-agenda.el (org-agenda-write): Fix bug when writing agenda to an external file while `org-agenda-sticky' is non-nil. * org.el (org-speed-commands-default): New speedy command to quickly add the :APPT_WARNTIME: property. * org-agenda.el (org-agenda-to-appt): Use the :APPT_WARNTIME: property to override `appt-message-warning-time' when adding an appointment from an entry. * org.el (org-version): Improve docstring. (org-self-insert-cluster-for-undo): The default value should be nil for Emacs >=24.1. See bug#11774. * org.el (org-fontify-meta-lines-and-blocks-1): Fix previous commit. * org.el (org-options-keywords): New constant. (org-additional-option-like-keywords): Remove duplicates with keywords in the new constant. (org-additional-option-like-keywords-for-flyspell): Use the new constant. (org-mode-flyspell-verify): Exclude keywords from the new constant. * org-pcomplete.el (pcomplete/org-mode/file-option): Use `org-options-keywords'. * org.el (org-toggle-heading): Bugfix: use `org-element-mark-element' instead of `org-mark-list'. * org-list.el (org-mark-list): Delete. * org.el: Update a few keybindings. * org-element.el (org-element-down): Throw an error when the element has no content. * org-table.el (orgtbl-radio-table-templates): Add a template for org-mode. (orgtbl-to-orgtbl): Complete and align the table created with orgtbl-to-orgtbl, in case the user use the function for radio tables. (orgtbl-to-table.el): New function to export a table to another one using the table.el format. (orgtbl-to-unicode): New function to export a table using unicode characters. * org-exp.el (org-export-language-setup): Use "Sommaire" for the french translation of "Table of contents", to avoid a possible bug when exporting to ODT. * org.el (org-additional-option-like-keywords): Add keywords. (org-additional-option-like-keywords-for-flyspell): New constant to use with flyspell. (org-mode-flyspell-verify): Use the dedicated constant and don't check `org-startup-options'. * org-agenda.el (org-batch-store-agenda-views): Use the sticky agenda buffer name, if required. (org-agenda-write): New parameter `agenda-bufname' to allow setting the agenda buffer name. * org.el (org-mode-map): Add keybindings for `org-element-forward', `org-element-backward', `org-element-up' and `org-element-down'. * org.el (org-auto-fill-function): Don't call `do-auto-fill' within (org-let org-fb-vars ...) as `do-auto-fill' should do the right thing whether orgstruct++-mode is turned on or off. * org.el (org-sparse-tree-default-date-type): New option. (org-ts-type): New variable. (org-sparse-tree): New argument `type'. Use the new option `org-sparse-tree-default-date-type' as the default value for `type'. Fix docstring. (org-re-timestamp): New function. (org-check-before-date, org-check-after-date) (org-check-dates-range): Use `org-ts-type' and `org-re-timestamp' to tell compute the date regexp. * org.el (orgstruct++-mode, org-get-local-variables): Also set `normal-auto-fill-function' when turning on/off orgstruct++-mode. * org-agenda.el (org-agenda-start-with-log-mode): Add relevant customization types. * org-faces.el (org-document-title): Use the normal height. * org-clock.el (org-x11idle-exists-p): New variable. (org-user-idle-seconds): Use it. * org.el (org-mode-map): Rebind `org-insert-all-links' to `C-c C-M-l'. * org.el (org-insert-all-links): New command. (org-insert-link): `org-keep-stored-link-after-insertion' is now checked when the link to insert has been defined, regardless on how it has been defined. Also don't read the description interactively when the `default-description' parameter was given. (org-mode-map): Bind `org-insert-all-links' to `C-c C-L'. * org.el (org-inc-effort): New command to increment the effort property. (org-set-effort): Use it. (org-mode-map): Bind it to `C-c C-x E'. (org-speed-commands-default): Use `E' as a speed command for it. * org.el (org-re-property-keyword): New function. (org-entry-put): Use it to fix a bug with respect to setting the value of a property when a property line with no value already exists. * org.el (org-timestamp-change): Adjust clock in other org files correctly. * org-clock.el (org-user-idle-seconds): Simplify. * org.el (org-mode-map): Bind `org-resolve-clocks' to `C-c C-x C-z'. * org.el (org-mode-map): Add keybindings to `org-element-transpose' and `org-narrow-to-element'. (org-metaup): Fall back on `org-element-drag-backward'. (org-metadown): Fall back on `org-element-drag-forward'. Also move chunks of declarations and require statements to get rid of compiler warnings. * org-exp-blocks.el (org): Don't require org. Add declarations. * org-clock.el (org): Don't require org. * ob-exp.el (org-list-forbidden-blocks): Add declarations. * org.el (org-timestamp-change): Don't use the `position'. * org.el (org-clock-history, org-clock-adjust-closest): New variables. (org-timestamp-change): Maybe adjust the next or previous clock in `org-clock-history'. (org-shiftmetaup, org-shiftmetadown): On clock logs, update the timestamp at point and adjust the next or previous clock in `org-clock-history', when possible. * org-clock.el (org-clock-in): Set the marker for `org-clock-history' at a safer position. * org-timer.el (org-timer-pause-or-continue, org-timer-stop): Autoload. * org-mobile.el (org-mobile-post-pull-hook): Fix docstring. * org.el (org-indent-line): Fix indentation of a property line starting at the beginning of a line. * org-odt.el (org-odt-cleanup-xml-buffers): Use the new alias. * org-compat.el: Alias `org-condition-case-unless-debug' to `condition-case-unless-debug' or `condition-case-no-debug'. * org.el (org-todo-keywords): Ditto. * org.el (org-use-fast-todo-selection): Reformat docstring. * org.el (org-flag-drawer): Add a docstring. (org-mode-map): Bind ̀org-clock-cancel' to "C-cC-xC-q" and `org-clock-in-last' to "C-cC-xC-x". This fixes a bug in the previous keybinding for `org-clock-in-last', which would override the one for `org-clock-in'. * org-clock.el (org-clock-in-last): Prevent errors when there is no clocking history. (org-clock-cancel): Fix bug when checking against a clock log in a folded drawer. * org.el (org-link-expand-abbrev): Implement "%(my-function)" as a new specifier. Update the docstring. * org.el (org-startup-options): Fix docstring formatting. * org.el (org-use-sub-superscripts): Fix typo in docstring. * org.el (org-refile): Fix bug: prevent looping when calling `org-set-tags' internally. * org.el (org-mode-map): Add `C-c C-x C-I' as a keybinding for `org-clock-in-last'. * org-clock.el (org-clock-continuously): New option. (org-clock-in): Three universal prefix arguments set `org-clock-continuously' to `t' temporarily. (org-clock-in-last): Fix call to `org-clock-select-task' and support continuous clocking. (org-clock-out-time): New variable. (org-clock-out): Set `org-clock-out-time' when clocking out. Small docstring rewriting. (org-clock-remove-empty-clock-drawer): Fix "invalid search bound" bug when trying to delete empty logbook drawer. (org-clock-cancel): If the clock log is gone, send a warning instead of deleting the region that is supposed to contain it. * org.el (org-move-line-down, org-move-line-up): Remove. (org-metaup, org-metadown): When the region is active, move it up/down by one line, with no regard to the context. * org-odt.el (org-odt-cleanup-xml-buffers): Use the new alias. * org-compat.el: Alias `org-condition-case-unless-debug' to `condition-case-unless-debug' or `condition-case-no-debug'. * org-pcomplete.el (org-thing-at-point): Ignore trailing whitespaces while looking-back at properties. * org.el (org-mode): Set `indent-region-function'. (org-indent-region): New function. (org-fill-paragraph): When in a src block, use `indent-region' to indent the whole source code instead of falling back on `fill-paragraph', as this function messes up the code. * org-src.el (org-edit-src-code): Fix docstring formatting. * ob.el (org-babel-do-key-sequence-in-edit-buffer): Ditto. * org.el (org-mode, org-add-log-setup) (org-get-property-block, org-entry-put) (org-property-next-allowed-value, org-return) (org-indent-line): Rename `org-indent-line-function' to `org-indent-line'. * org-timer.el (org-timer-item): Ditto. * org-table.el (org-table-store-formulas): Ditto. * org-clock.el (org-clock-in, org-clock-find-position): Ditto. * org-src.el (org-src-font-lock-fontify-block) (org-src-strip-leading-and-trailing-blank-lines) (org-src-ask-before-returning-to-edit-buffer) (org-edit-src-code, org-edit-src-continue) (org-edit-fixed-width-region) (org-src-do-key-sequence-at-code-block) (org-src-font-lock-fontify-block, org-src-fontify-buffer): Fix typos in docstrings. * org-docbook.el (org-export-docbook-emphasis-alist): Fix typo: use "format string" instead of "formatting string". * org-latex.el (org-export-latex-emphasis-alist) (org-export-latex-title-command, org-export-latex-tables): Ditto. * org-html.el (org-export-html-postamble): Ditto. * org-latex.el (org-export-latex-hyperref-options-format): New option. (org-export-latex-make-header): Use it. * ob.el (org-babel-confirm-evaluate): Prevent errors when `org-current-export-file' is void. * org-table.el (org-table-export): Use the file name extension to suggest the right conversion format. Also amend the docstring. * org.el (org-speed-commands-default): Two new speed commands. Use `:' for `org-columns' and ̀#' for `org-toggle-comment'. * org.el (org-time-stamp): With two universal arguments, insert an active timestamp with the current time without prompting the user. * org-clock.el (org-clock-in-last): New command. * org-clock.el (org-clock-in): Fix typo in docstring. * org-mobile.el (org-mobile-edit): Fix reference to a free variable. * org.el (org-doi-server-url): Update :group. * ob-lob.el (org-babel-lob-execute): Fix reference to non-existent variable. * org.el (org-doi-server-url): New option. (org-open-at-point): Use it. * org.el (org-at-comment-p): New function. (org-toggle-heading): Use `org-at-comment-p' to skip comments. * org-html.el (org-export-as-html): Add links to the Org mode and GNU Emacs websites When :html-postamble is set to 't. * org-export.el (org-export-creator-string): Add links to the Org mode and GNU Emacs websites. * org-special-blocks.el (org-special-blocks-convert-html-special-cookies): Prevent errors by first checking `org-line' is not nil. * org-clock.el (org-clock-string-limit) (org-clock-modeline-total, org-clock-task-overrun-text) (org-clock-mode-line-entry): Doc fix, "modeline" -> "mode line". * org.el (org-at-timestamp-p): Set ̀org-ts-what' to 'after when the point is right after the timestamp. `org-at-timestamp-p' still returns `t' in this case, as this is more practical. (org-return): Check against ̀org-ts-what' to verify that point is really within the timestamp (if any). * org.el (org-return): Follow time-stamp links when point is an a time-stamp. * org-capture.el (org-capture-bookmark): New option. (org-capture-finalize): Use it. * org-publish.el (org-publish-cache-file-needs-publishing): Make the column mandatory after #+include:. * org-exp.el (org-export-handle-include-files): Ditto. * org-bibtex.el (org-bibtex-entries): Rename from (org-bibtex-read, org-bibtex-write): Use the new name. * org-exp.el (org-export-handle-include-files): Allow to use #+include with no column. * org-publish.el (org-publish-cache-file-needs-publishing): Make quotes mandatory around the file name and allow spaces in it. * org-html.el (org-export-as-html): Add link to Org's and Emacs's websites. * org-latex.el (org-export-latex-link-with-unknown-path-format): New option. (org-export-latex-links): Use it. * org-agenda.el (org-agenda-get-timestamps): Remove any active timestamp from the headline text, not only those for the current date. * org.el (org-set-tags): Allow setting tags for headlines in the region when `org-loop-over-headlines-in-active-region' is non-nil. * org.el (org-allow-promoting-top-level-subtree): New option to allow promoting a top-level subtree. (org-called-with-limited-levels): New variable, dynamically bound within the `org-with-limited-levels' macro. (org-promote): Use the new option to allow promoting a top-level subtree. * org-macs.el (org-with-limited-levels): Let-bind `org-called-interactively-p' to t. * org.el (org-create-formula-image-with-dvipng) (org-create-formula-image-with-imagemagick): Make sure a file exists before trying to delete it. * org.el (org-scan-tags): Correctly match TODO keywords. * org-agenda.el (org-agenda-bulk-action): Fix bug: use `org-agenda-bulk-unmark-all'. * org.el (orgstruct++-mode): Fix docstring. (org-fill-paragraph): Use the 'justify parameter when falling back on `fill-paragraph'. * org.el (org-indent-line-function): Use `org-let' instead of `orgstruct++-ignore-org-filling'. (org-fill-paragraph, org-auto-fill-function): Ditto. * org-macs.el (orgstruct++-ignore-org-filling): Delete. * org-table.el (org-table-time-string-to-seconds): Return the empty string if provided. (org-table-eval-formula): When assigning a duration string, handle it correctly -- i.e. don't make any computation on it, except the one to insert it using the correct duration format. * org.el (org-indent-line-function): Fix bug. * org-clock.el (org-frame-title-format-backup): New variable to store the value of `frame-title-format' before `org-clock' might replace it by `org-clock-frame-title-format'. (org-clock-frame-title-format): New option. (org-frame-title-string): Delete. (org-clock-update-mode-line): Minor code reformatting. (org-clock-in, org-clock-out, org-clock-cancel): Use `org-clock-frame-title-format'. * org-clock.el (org-clock-get-clock-string): Add a space. * org-list.el (org-mark-list): Return an error when there is no list at point. * org.el (org-toggle-heading): Allow `C-u C-c *' to mark the list at point before converting items to headings. With a simple universal-argument, set `current-prefix-arg' to 1, otherwise keep the numeric value. * org-agenda.el (org-agenda-view-mode-dispatch): Make the message more readable. * org-agenda.el (org-agenda-mode-map): New keybinding ̀*' to mark all entries for bulk action. (org-agenda-menu): New menu item for marking all entries. (org-agenda-bulk-mark-all): New function to mark all entries. (org-agenda-bulk-mark-regexp): Minor docstring fix. (org-agenda-bulk-unmark): With a prefix argument, unmark all. Also send a better message. (org-agenda-bulk-remove-all-marks): Rename to `org-agenda-bulk-unmark-all'. Check against `org-agenda-bulk-marked-entries' before trying to unmark entries. Minor docstring fix. (org-agenda-bulk-unmark-all): Renamed from ̀org-agenda-bulk-remove-all-marks'. * org-agenda.el (org-agenda-bulk-mark-char): New option. (org-agenda-bulk-mark): Use the new option. * org.el (org-src-prevent-auto-filling): New option to prevent auto-filling in src blocks. This defaults to nil to avoid people being surprised that no auto-fill occurs in Org buffers where they use `auto-fill-mode'. (org-auto-fill-function): Use the new option. * org.el (org-properties-postprocess-alist): Better customization type. (org-set-property): Fix the check against `org-properties-postprocess-alist'. * org-macs.el (orgstruct++-ignore-org-filling): Set `def-edebug-spec' correctly. * org-colview.el (org-columns-string-to-number): When computing the values for the colview, match durations and convert them to HH:MM values. * org.el (org-duration-string-to-minutes): Match non-round numbers. Add a new optional parameter to allow returning the output as a string. * org.el (org-auto-fill-fallback-function) (org-indent-line-fallback-function) (org-fill-paragraph-fallback-function) (org-auto-fill-fallback-function) (org-indent-line-fallback-function) (org-fill-paragraph-fallback-function): Remove. (org-fb-vars): New buffer-local variable. (orgstruct++-mode): Use the fallback variable `org-fb-vars' to store, use and restore variables if needed. (org-fill-paragraph): Ignore `orgstruct++-mode' filling variables when needed. (org-auto-fill-function, org-indent-line-function): Ditto. * org-macs.el (orgstruct++-ignore-org-filling): New macro. * org-exp-block.el: Use `org-find-library-name' instead of `find-library-name'. * org-compat.el (org-find-library-name): Convert into a macro to avoid compilation of a function from XEmacs in Emacs and vice versa. * org-table.el (org-table-store-formulas): Fix typo. (org-table-maybe-eval-formula): Fix the regexp to only match formulas, which never end with the `=' character. If the field only contain this character, don't eval either. * org.el (org-set-property): Perform the correct check against `org-properties-postprocess-alist'. * org-bbdb.el (org-bbdb-anniversary-format-alist): Update the customization type. (name): Suppress (defvar 'name) as name is not eval'ed when setting `org-bbdb-anniversary-format-alist'. * org.el (org-version): When called non-interactively, insert the short version string, otherwise send a message with the complete version string. * org-odt.el (org-odt-update-meta-file): Use (org-version) and delegate checking whether `org-version' is known as a variable there. * org-html.el (org-export-as-html): Use (org-version). * org-docbook.el (org-export-as-docbook): Ditto. * org-latex.el (org-export-latex-make-header): Ditto. * org-clock.el (org-clocktable-write-default): Temporarily disable `delete-active-region' so that we don't accidently delete an active region when exporting a subtree/region. * org-clock.el (org-program-exists): Remove. (org-show-notification, org-clock-play-sound): Use `executable-find' instead of `org-program-exists'. * org-agenda.el (org-diary): Prevent failure from `org-compile-prefix-format' when there is no agenda buffer. * org-agenda.el (org-agenda-mode): Replace obsolete variable `buffer-substring-filters'. * org-indent.el (org-indent-mode): Ditto. * org-compat.el (org-find-library-name): Silent the byte-compiler about a warning related to XEmacs support. * org-special-blocks.el (org-special-blocks-convert-html-special-cookies): Use `org-line' instead of `line'. * org-html.el (org-html-handle-links, org-export-as-html) (org-format-org-table-html, org-format-table-table-html) (org-html-export-list-line): Use `org-line' instead of `line' as the free variable name. * org-latex.el (org-export-latex-tables): Let-bind `hfmt'. * org-faces.el (org-list-dt): New face. * org.el (org-set-font-lock-defaults): Use `org-list-dt' as the face for definition terms in definition lists. * org.el (org-fill-paragraph): Pass the `justify' argument to `org-fill-paragraph-fallback-function'. * org.el (org-eval-in-calendar): Fix docstring to mention the KEEPDATE parameter. * org.el (org-refresh-category-properties): Let-bind `inhibit-read-only' to t. * org.el (org-auto-fill-fallback-function) (org-indent-line-fallback-function) (org-fill-paragraph-fallback-function): New variables to store some fall-back functions when turning `orgstruct++-mode' on. (orgstruct++-mode): Set the new variables. (org-indent-line-function, org-fill-paragraph) (org-auto-fill-function): Use them. * org.el (org-read-date): Bugfix: call `org-eval-in-calendar' with the 'keepdate parameter set to t when setting the cursor type. * org-agenda.el (org-agenda-persistent-marks): New option to keep marks after a bulk action. The option defaults to nil. (org-agenda-bulk-action): Use the new option. * org-capture.el (org-capture-fill-template): Use %\n instead of %n as a template element to be replaced with the nth prompted string. (org-capture-templates): Update docstring. * org.el (org-goto): Fix docstring and document what C-u does. * org-publish.el (org-publish-cache-file-needs-publishing): Use (case-fold-search t) when looking for #+INCLUDE:. * org.el: Use (case-fold-search t). (org-edit-special, org-ctrl-c-ctrl-c): Ditto. * org-table.el: (org-table-store-formulas, org-table-get-stored-formulas) (org-table-fix-formulas, org-table-edit-formulas) (org-old-auto-fill-inhibit-regexp, orgtbl-ctrl-c-ctrl-c) (orgtbl-toggle-comment, org-table-get-remote-range): Ditto. * org-footnote.el: (org-footnote-goto-local-insertion-point): Ditto. * org-exp.el: Ditto. * org-colview.el: (org-dblock-write:columnview, org-dblock-write:columnview): Ditto. * org-clock.el (org-clocktable-write-default): Ditto. * org-capture.el (org-capture-place-table-line): Ditto. * ob.el (org-babel-data-names, org-babel-goto-named-src-block) (org-babel-src-block-names) (org-babel-where-is-src-block-result, org-babel-result-end) (org-babel-where-is-src-block-head) (org-babel-find-named-result, org-babel-result-names): Ditto. * org-table.el (orgtbl-send-table): Escape special characters. Introduce a new parameter :no-escape to prevent escaping. * org-agenda.el (org-toggle-sticky-agenda): Only shout a message when called interactively. (org-agenda-get-restriction-and-command): Call `org-toggle-sticky-agenda' interactively. * org-agenda.el (org-agenda-top-category-filter): New variable for storing the current top-category filter. (org-agenda-redo): Apply a top-category filter, if any. (org-agenda-filter-by-top-category) (org-agenda-filter-top-category-apply): Set `org-agenda-top-category-filter' to the right value. * org-clock.el (org-clock-out, org-clock-cancel) (org-clock-in): Don't modify `frame-title-format' if it is a string. * org-latex.el (org-export-latex-special-chars): Fix bug when escaping special characters in a table. * org.el (org-read-date): Set cursor-type to nil in the calendar. * org-faces.el (org-date-selected): Use inverse video. Don't explicitely set bold to nil as it causes `customize-face' to show the weight property and thus encourage the user to change it. Warn in the docstring that using bold might cause problems when displaying the calendar. * org-id.el (org-id-update-id-locations): New parameter to silent `org-id-find'. (org-id-find): Use the new parameter. * org.el (org-show-hierarchy-above, org-cycle) (org-global-cycle, org-files-list, org-store-link) (org-link-search, org-open-file, org-display-outline-path) (org-refile-get-location, org-update-all-dblocks) (org-change-tag-in-region, org-entry-properties) (org-save-all-org-buffers, org-revert-all-org-buffers) (org-buffer-list, org-cdlatex-mode) (org-install-agenda-files-menu, org-end-of-subtree) (org-speedbar-set-agenda-restriction): Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode). * org-timer.el (org-timer-set-timer): Ditto. * org-table.el (orgtbl-mode, org-table-align, orgtbl-mode): Ditto. * org-src.el (org-edit-src-exit, org-edit-src-code) (org-edit-fixed-width-region, org-edit-src-exit): Ditto. * org-remember.el (org-remember-handler): Ditto. * org-mouse.el (dnd-open-file, org-mouse-insert-item): Ditto. * org-macs.el (org-get-limited-outline-regexp): Ditto. * org-lparse.el (org-replace-region-by): Ditto. * org-latex.el (org-latex-to-pdf-process) (org-replace-region-by-latex): Ditto. * org-indent.el (org-indent-indent-buffer): Ditto. * org-id.el (org-id-store-link, org-id-update-id-locations) (org-id-store-link): Ditto. * org-html.el (org-export-html-preprocess) (org-replace-region-by-html): Ditto. * org-footnote.el (org-footnote-normalize) (org-footnote-goto-definition) (org-footnote-create-definition, org-footnote-normalize): Ditto. * org-docbook.el (org-replace-region-by-docbook): Ditto. * org-ctags.el (find-tag): Ditto. * org-colview.el (org-columns-redo) (org-columns-display-here, org-columns-edit-value) (org-columns-redo): Ditto. * org-capture.el (org-capture-insert-template-here) (org-capture, org-capture-finalize) (org-capture-set-target-location) (org-capture-insert-template-here): Ditto. * org-ascii.el (org-replace-region-by-ascii): Ditto. * org-archive.el (org-archive-subtree): Ditto. * org-agenda.el (org-agenda) (org-agenda-get-restriction-and-command) (org-agenda-get-some-entry-text, org-search-view) (org-tags-view, org-agenda-get-day-entries) (org-agenda-format-item, org-agenda-goto, org-agenda-kill) (org-agenda-archive-with, org-agenda-switch-to): Ditto. * org.el (org-repeat-re) (org-clone-subtree-with-time-shift, org-auto-repeat-maybe) (org-deadline, org-schedule, org-matcher-time) (org-time-stamp, org-read-date, org-read-date-get-relative) (org-display-custom-time, org-get-wdays) (org-time-string-to-absolute, org-closest-date) (org-timestamp-change): Allow to set hourly repeat cookie. Send an error when an hourly repeat cookie is set and no hour is specified in the timestamp. * org-icalendar.el (org-print-icalendar-entries): Handle hourly repeat cookies. * org-clock.el (org-program-exists): Fix docstring. * org-clock.el (org-clock-file-time-cell-format): New option. (org-clocktable-write-default): Use it. * org-faces.el (org-date-selected): New face. * org.el (org-date-ovl): Use `org-date-selected'. * org.el (org-mode): Don't use `buffer-face-mode' by default. * org-agenda.el (org-agenda-mode-map): Bind `^' to `org-agenda-filter-by-top-category'. * org-ascii.el (org-export-ascii-underline): Change the default underlining characters for headlines of level 1 and 2. Also introduce \. as the underline character for headlines of level 5. * org-table.el (org-table-recalculate-buffer-tables) (org-table-iterate-buffer-tables): Add autoload cookie. * org.el (org-table-map-tables): Exclude tables in src and example blocks. * org.el (org-fill-paragraph): Leave scheduled/deadline lines untouched when filling an adjacent paragraph. * org-html.el (org-export-html-preamble-format) (org-export-html-postamble-format): Improve the docstring. * org.el (org-todo): Fix regression: rename `state' to `org-state'. * org-clock.el (org-show-notification): Use `fboundp' instead of `featurep' and the additional `require'. * org-clock.el (org-clock-in-prepare-hook): New option to format the total time cells. (org-clocktable-write-default): Use the new option. * org.el (org-open-at-point): Allow to open the agenda from an active or inactive timestamp in a headline. * org-html.el (org-export-html-date-format-string): Make a defcustom. * org-latex.el (org-export-as-latex): Fix TeX-master declaration. 2012-09-30 Carsten Dominik * org-table.el (org-table-expand-lhs-ranges): Allow hline references to be expanded correctly in LHS of formulas. * org-beamer.el (org-beamer-inherited-properties): New option. (org-beamer-after-initial-vars): Use new option to look for inherited properties. * org.el (org-ts-regexp0): Allow time stamps without name of day. * org-agenda.el (org-toggle-sticky-agenda): (org-agenda-sticky): Improve :set property. * org-agenda.el (org-agenda-local-vars): Clean up the variable list. (org-agenda-get-restriction-and-command): Add a key for toggling sticky agenda views. * org-agenda.el (org-agenda-local-vars): Final decisions about global/local * org-agenda.el (org-agenda-force-single-file): Variable removed. (org-prepare-agenda-window): Store pre-agenda window config locally. (org-timeline): Introduce a scoped version of `org-agenda-show-log'. (org-agenda-list): Introduce a scoped version of `org-agenda-show-log'. (org-agenda-get-progress): Use the scoped version of `org-agenda-show-log'. (org-agenda-local-vars): Write the analysis result as a comment - to be cleaned up in the next iteration. * org-agenda.el (org-toggle-sticky-agenda): Kill all agenda buffers when toggling sticky-agendas. (org-agenda-get-restriction-and-command): Add `C-c a C-k' as a key to explicitly kill all agenda buffers. (org-agenda-run-series): Remove any old agenda markers in the buffer that is going to take the new block agenda. (org-prepare-agenda): Reset markers before erasing the buffer anc running `org-agenda-mode', because after that hte local variable `org-agenda-markers' will have gone away. (org-agenda-Quit): (org-finalize-agenda): Install the marker resetter into the `kill-buffer-hook'. (org-agenda-save-markers-for-cut-and-paste): Look for markers in all agenda buffers. (org-agenda-kill-all-agenda-buffers): New function. 2012-09-30 Chris Gray * org-html.el (org-export-as-html): Remove the check for body-only in the code for generating tables of contents. 2012-09-30 Christoph Dittmann (tiny change) * org-beamer.el (org-beamer-auto-fragile-frames): Make [fragile] work with overlay specifications. 2012-09-30 Christophe Junke (tiny change) * org-agenda.el (org-agenda-list): Ensures that the list returned by `org-agenda-add-time-grid-maybe' is appended to ̀rtnall' before checking if the latter is empty. 2012-09-30 Christophe Rhodes (tiny change) * org-latex.el (org-export-latex-tables): Support setting the :hfmt parameter from #+ATTR_LaTeX. 2012-09-30 Daniel Dehennin (tiny change) * org-exp.el (org-export-handle-include-files) (org-get-file-contents): Handle new parameter :addlevel. 2012-09-30 Dave Abrahams (tiny change) * org.el (org-link-prettify): New function to prettify links while displaying them with `org-insert-link'. (org-insert-link): Use the new function. 2012-09-30 David Maus * org-exp.el (org-export-language-setup): Use numeric character entities for proper rendering of non-UTF8 documents. * org-exp.el (org-export-language-setup): Add japanese translation. 2012-09-30 Eric Schulte * ob-sh.el (org-babel-sh-evaluate): Don't could 0-length shebangs. * ob.el (org-babel-insert-result): Replace key sequence with function call. Use a more informative flag to the local function. (org-add-protective-commas): Declare a new external function. * org-src.el (org-add-protective-commas): This should be its own function. (org-edit-src-exit): Use the new function. * org-compat.el (org-labels): Remove. * org-bibtex.el (org-bibtex-headline): Don't use `org-labels'. * ob.el (org-babel-sha1-hash, org-babel-noweb-p): Ditto. * ob.el (org-babel-string-read): Don't automatically evaluate code block results which look like elisp. (org-babel-import-elisp-from-file): Raise a warning message when the process of reading code block results raises an error. * ob-tangle.el (org-babel-with-temp-filebuffer): Don't execute macro argument multiple times. * org.el (org-compat): Require org-compat before we first use one of its functions (a macro actually). * ob-comint.el (org-babel-comint-with-output): Don't name the filter function, but rather pass through the anonymous lambda directly. * org.el (org-babel-load-languages): Common lisp should be mentioned as a supported babel language. * org-clock.el (org-clock-special-range): "concat 'string" -> "concat" (org-clocktable-shift): "concat 'string" -> "concat" * org-bibtex.el (org-bibtex-headline): Replacing org-flet with org-labels. * ob-calc.el (org-babel-execute:calc): Strip single quotes from calc internal representations. * org-clock.el (org-clock-special-range): Replacing cl concatenate with concat. (org-clocktable-shift): Replacing cl concatenate with concat. * ob.el (org-babel-edit-distance): Remove use of map at runtime. * org-compat.el (org-flet): Compatibility function now that flet has been removed from cl-macs. (org-labels): Compatibility function now that labels has been removed from cl-macs. * ob-R.el (org-compat): Require org-compat. * ob-comint.el: Require org-compat. * ob-exp.el (org-babel-exp-do-export): Switch to compatibility function. * ob-gnuplot.el (org-babel-expand-body:gnuplot): Switch to compatibility function. * ob-lob.el (org-babel-lob-get-info): Switch to compatibility function. (org-babel-lob-execute): Switch to compatibility function. * ob-python.el (org-babel-python-evaluate-session): Switch to compatibility function. * ob-ref.el (org-babel-ref-index-list): Switch to compatibility function. * ob-sh.el (org-babel-sh-var-to-string): Switch to compatibility function. * ob-tangle.el (org-babel-load-file): Switch to compatibility function. (org-babel-tangle): Switch to compatibility function. (org-babel-spec-to-string): Switch to compatibility function. * ob.el (org-babel-view-src-block-info): Switch to compatibility function. (org-babel-execute-src-block): Switch to compatibility function. (org-babel-edit-distance): Switch to compatibility function. (org-babel-switch-to-session-with-code): Switch to compatibility function. (org-babel-sha1-hash): Switch to compatibility function. (org-babel-balanced-split): Switch to compatibility function. (org-babel-join-splits-near-ch): Switch to compatibility function. (org-babel-get-rownames): Switch to compatibility function. (org-babel-format-result): Switch to compatibility function. (org-babel-insert-result): Switch to compatibility function. (org-babel-examplize-region): Switch to compatibility function. (org-babel-merge-params): Switch to compatibility function. (org-babel-noweb-p): Switch to compatibility function. (org-babel-expand-noweb-references): Switch to compatibility function. * org-bibtex.el (org-bibtex-headline): Switch to compatibility function. (org-bibtex-fleshout): Switch to compatibility function. (org-bibtex-read): Switch to compatibility function. (org-bibtex-write): Switch to compatibility function. * org-exp-blocks.el (org-export-blocks-preprocess): Switch to compatibility function. * org-exp.el (org-export-format-source-code-or-example): Switch to compatibility function. * org-macs.el (org-called-interactively-p): Indentation fix. * org-mouse.el (org-mouse-timestamp-today): Switch to compatibility function. (org-mouse-set-priority): Switch to compatibility function. (org-mouse-popup-global-menu): Switch to compatibility function. (org-mouse-context-menu): Switch to compatibility function. * org-plot.el (org-plot/gnuplot-to-grid-data): Switch to compatibility function. (org-plot/gnuplot-script): Switch to compatibility function. * org.el (org-entry-get): Switch to compatibility function. (org-fill-paragraph): Switch to compatibility function. (org-auto-fill-function): Switch to compatibility function. * ob-lob.el (org-babel-lob-execute): Only try to insert extant hashes. * ob-R.el (org-babel-R-command): From a defvar to a defcustom. * ob.el (org-babel-set-current-result-hash): Change the hash of the results for the current code block. (org-babel-current-result-hash): Fix documentation. * ob-lob.el (org-babel-lob-execute): Don't re-execute the called function if the current call line hash matches that in its results. * ob-R.el (org-babel-R-assign-elisp): Can't assume every entry in a table is a sequence. * ob-R.el (org-babel-R-assign-elisp): Clean up the code implementing reads of irregular data into R. * ob.el (org-babel-header-arg-expand): In new buffers (char-before) may return nil so use equal rather than =. * ob-R.el (org-babel-header-args:R): Adding values. * ob-clojure.el (org-babel-header-args:clojure): Adding values. * ob-lisp.el (org-babel-header-args:lisp): Adding values. * ob-sql.el (org-babel-header-args:sql): Adding values. * ob-sqlite.el (org-babel-header-args:sqlite): Adding values. * ob.el (org-babel-combine-header-arg-lists): Combine lists of arguments and values. (org-babel-insert-header-arg): Use new combined header argument lists. (org-babel-header-arg-expand): Add support for completing-read insertion of header arguments after ":" (org-babel-enter-header-arg-w-completion): Completing read insertion of header arguments (org-tab-first-hook): Adding header argument completion. (org-babel-params-from-properties): Combining header argument lists. * ob-exp.el (org-babel-exp-results): Ensure noweb expanded body is used on export. * ob.el (org-babel-result-to-file): New optional description argument. (org-babel-insert-result): Moved description logic to another function. * ob.el (org-babel-insert-result): Change name of filelinkdescr to file-desc. (org-babel-common-header-args-w-values): Change name of filelinkdescr to file-desc. * ob-C.el (org-babel-C-execute): Add .exe to the end of compiled C files on windows. * ob-exp.el (org-babel-exp-code): Escape all lines when exporting Org-mode blocks. * ob.el (org-babel-parse-src-block-match): Make use of the new language argument to org-babel-strip-protective-commas. (org-babel-parse-inline-src-block-match): Make use of the new language argument to org-babel-strip-protective-commas. (org-babel-strip-protective-commas): Now accepts a language argument. 2012-09-30 Fabrice Niessen (tiny change) * org-agenda.el (org-agenda-write-buffer-name): Remove the test for the presence of