org-mode.git
21 months agoMake `org-extend-today-until' variable affect log notes, and CLOSED: line.
Max Mikhanosha [Thu, 21 Jul 2011 17:20:01 +0000]
Make `org-extend-today-until' variable affect log notes, and CLOSED: line.

(org-done-yesterday), (org-agenda-done-yesterday): new functions

21 months agoorg-html: put the title back in the content div.
Bastien Guerry [Wed, 27 Jul 2011 17:23:24 +0000]
org-html: put the title back in the content div.

This is needed for the HTML file to interact correctly with
org-info.js.  On the long term, the title should be part of
the preamble, but this requires work on org-info.js.

* org-html.el (org-export-html-preamble-format): New default
for the HTML preamble: don't include the title.  Also improve
the docstring.
(org-export-html-postamble-format): Improve the docstring.
(org-export-as-html): Add the title within the "content" div.
This is necessary for interaction with the org-info.js script.

21 months agoTable editor: Display coordinates of current field
Michael Brand [Sat, 23 Jul 2011 16:48:52 +0000]
Table editor: Display coordinates of current field

* lisp/org-table.el (org-table-edit-field): Display field coordinates.

21 months ago(org-agenda-set-effort): Refresh changed lines
Max Mikhanosha [Fri, 22 Jul 2011 17:35:51 +0000]
(org-agenda-set-effort): Refresh changed lines

21 months ago(org-agenda-change-all-lines): Change to item's buffer and use original column format...
Max Mikhanosha [Fri, 22 Jul 2011 17:31:05 +0000]
(org-agenda-change-all-lines): Change to item's buffer and use original column format that item was generated with

21 months agoFix error with %e agenda prefix format when there is no effort set
Max Mikhanosha [Thu, 7 Jul 2011 00:05:06 +0000]
Fix error with %e agenda prefix format when there is no effort set

21 months agoorg-odt: Emit OD compatible date string in the default case
Jambunathan K [Wed, 27 Jul 2011 05:57:23 +0000]
org-odt: Emit OD compatible date string in the default case

* contrib/lisp/org-odt.el (org-odt-format-date): New
(org-odt-update-meta-file): Use the above routine

Knocks off an error reported by
http://tools.services.openoffice.org/odfvalidator/

21 months agoorg-odt: Include mimetype in the exported odt file
Jambunathan K [Tue, 26 Jul 2011 21:20:48 +0000]
org-odt: Include mimetype in the exported odt file

* contrib/lisp/org-odt.el (org-export-odt-save-list): Add the
file "mimetype".
(org-odt-init-outfile): Write contents of "mimetype".
(org-odt-save-as-outfile): Include "mimetype" file in the
exported file.
(org-export-odt-mimetype-lines): Removed.

This change knocks of an error while validating against
http://tools.services.openoffice.org/odfvalidator/.

21 months agoorg-publish: delete .orgx and temporary buffers.
Bastien Guerry [Wed, 27 Jul 2011 12:36:54 +0000]
org-publish: delete .orgx and temporary buffers.

Also add the org- prefix to some variable.

* org-publish.el (org-publish-find-title): bugfix: kill
buffers unless they were already visited.
(org-sitemap-sort-files, org-sitemap-sort-folders)
(org-sitemap-ignore-case, org-sitemap-requested)
(org-sitemap-date-format, org-sitemap-file-entry-format): use
a correct prefix.
(org-publish-projects): Make sure to delete .orgx files.
(org-publish-index-generate-theindex.inc): Small docstring
fix.

21 months agocontrib/lisp/org-depend.el: delete trailing whitespaces.
Bastien Guerry [Wed, 27 Jul 2011 11:29:09 +0000]
contrib/lisp/org-depend.el: delete trailing whitespaces.

21 months agoAdd chain-find-next trigger option.
Max Mikhanosha [Sun, 24 Jul 2011 18:44:44 +0000]
Add chain-find-next trigger option.

21 months agoorg-table: new defcustom `org-table-duration-custom-format'.
Bastien Guerry [Wed, 27 Jul 2011 11:14:37 +0000]
org-table: new defcustom `org-table-duration-custom-format'.

This allows to display the output of duration computations
as a fraction of days, hours, minutes or seconds.

Thanks to Daniel E. Doherty for bringing up this need.

* org-table.el (org-table-duration-custom-format): New
defcustom to select output format of durations computations.
(org-table-time-seconds-to-string): Use the new variable.
(org-table-eval-formula): Allow `t' as a flag, on top of `T'.
`t' will use the custom output format defined in
`org-table-duration-custom-format.

22 months agoorg-list: fix a small error when guessing blank lines before items
Nicolas Goaziou [Tue, 26 Jul 2011 15:46:24 +0000]
org-list: fix a small error when guessing blank lines before items

* lisp/org-list.el: search blank lines down to the end of the item
  instead of stopping at the item, in order to possibly match such
  lines within the item.

22 months agoorg-mac-ical: Update for MacOSX Lion
Don Roberts [Mon, 25 Jul 2011 13:30:36 +0000]
org-mac-ical: Update for MacOSX Lion

22 months agoorg-latex: allow `org-export-latex-href-format' to have only one "%s"
Bastien Guerry [Tue, 26 Jul 2011 11:22:38 +0000]
org-latex: allow `org-export-latex-href-format' to have only one "%s"

This is useful when you want to use \url{link} instead of the default
\href{link}{path}.

Thanks to Henri-Paul Indiogine for bringing this up.

* org-latex.el (org-export-latex-href-format): docstring fix
to reflect the fact that you can use only one "%s".
(org-export-latex-links): allow `org-export-latex-href-format'
to have only one "%s".

22 months agoAdd key and documentation for `org-copy-visible'.
Carsten Dominik [Tue, 26 Jul 2011 10:09:50 +0000]
Add key and documentation for `org-copy-visible'.

* lisp/org.el (org-org-menu): Add `org-copy-visible' to the menu.
* doc/org.texi (Visibility cycling): Document `org-copy-visible'.
* doc/orgcard.tex: Document `org-copy-visible'.

22 months agoAdd `org-copy-visible' command proposed by Florian Beck
Carsten Dominik [Tue, 26 Jul 2011 09:53:13 +0000]
Add `org-copy-visible' command proposed by Florian Beck

* lisp/org.el (org-copy-visible): New command.

22 months agoorg-capture: Fix order of template sequences.
Bastien Guerry [Mon, 25 Jul 2011 21:08:45 +0000]
org-capture: Fix order of template sequences.

* org-capture.el (org-capture-templates): docstring fix.
* org.texi (Template expansion): order template sequences in
the proper order.

Thanks to Philipp Möller for this fix.

22 months agoadding a function for inspecting code block information e.g., header arguments
Eric Schulte [Mon, 25 Jul 2011 16:45:37 +0000]
adding a function for inspecting code block information e.g., header arguments

* lisp/ob.el (org-babel-view-src-block-info): New function to inspect code blocks.
* lisp/ob-keys.el (org-babel-key-bindings): Key bindings for org-babel-view-src-block-info.
* doc/orgcard.tex: Documentation of new Babel function.

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 25 Jul 2011 13:45:01 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoorg-exp: Handle recursively included setup files correctly.
Bastien Guerry [Mon, 25 Jul 2011 13:32:52 +0000]
org-exp: Handle recursively included setup files correctly.

* org-exp.el (org-infile-export-plist): Handle recursively
included setup files.  The value of the last included file
always takes precedence over previous values.

Thanks to Stefan Vollmar for signaling this bug.

22 months agoKeep point in the same category when updating a time-stamp
Nicolas Goaziou [Fri, 22 Jul 2011 20:05:44 +0000]
Keep point in the same category when updating a time-stamp

* lisp/org.el (org-timestamp-change): keep point in the same category
  when updating a time-stamp. This requires to be careful, as,
  depending on the locale, name of day might change of length during
  the process.

22 months agoorg-footnote: fix bug when inserting a footnote in a non-Org buffer
Nicolas Goaziou [Mon, 25 Jul 2011 09:24:57 +0000]
org-footnote: fix bug when inserting a footnote in a non-Org buffer

* lisp/org-footnote.el (org-footnote-create-definition): when skipping
  already written footnotes definition, the algorithme would assume
  each one was only one-line long.

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sun, 24 Jul 2011 22:55:18 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoorg-table: fix another bug in duration computation.
Bastien Guerry [Sun, 24 Jul 2011 22:55:04 +0000]
org-table: fix another bug in duration computation.

* org-table.el (org-table-eval-formula): Fix bug when a
formula "range" is just one cell.
(org-table-time-string-to-seconds): don't check whether
we manipulate a string.

22 months agoAwk can be called with no in-file: and no :stdin
Litvinov Sergey [Sun, 24 Jul 2011 10:28:35 +0000]
Awk can be called with no in-file: and no :stdin

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sun, 24 Jul 2011 18:44:01 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoFix handling of duration for complex range formulas.
Bastien Guerry [Sun, 24 Jul 2011 18:31:38 +0000]
Fix handling of duration for complex range formulas.

Thanks to Christian Moe for signaling this bug.

22 months agoDo not add an extraneous blank lines when parsing lists
Nicolas Goaziou [Sun, 24 Jul 2011 18:03:30 +0000]
Do not add an extraneous blank lines when parsing lists

* lisp/org-exp.el (org-export-mark-list-end,
  org-export-mark-list-properties): don't remove the ending regexp
  when it consists in blank lines.
* lisp/org-list.el (org-list-parse-list): ditto, but remove it
  completely when it isn't made of blank lines (i.e. during export process).

22 months agoorg.texi: small update on durations computation.
Bastien Guerry [Sun, 24 Jul 2011 16:44:23 +0000]
org.texi: small update on durations computation.

22 months agoorg-table: use HH:MM:SS as the standard display of durations.
Bastien Guerry [Sun, 24 Jul 2011 16:40:30 +0000]
org-table: use HH:MM:SS as the standard display of durations.

(org-table-time-seconds-to-string): Uniformize the display of
durations, always return HH:MM:SS.  Also display negative time
correctly.

22 months ago(org-table-time-string-to-seconds): also match negative time values.
Bastien Guerry [Sun, 24 Jul 2011 16:32:51 +0000]
(org-table-time-string-to-seconds): also match negative time values.

22 months agoorg-table: match either HH:MM:SS or HH:MM (instead of MM:SS).
Bastien Guerry [Sun, 24 Jul 2011 16:19:17 +0000]
org-table: match either HH:MM:SS or HH:MM (instead of MM:SS).

* org-table.el (org-table-time-string-to-seconds): match
either HH:MM:SS or HH:MM (instead of MM:SS).

Thanks to Gustav Wikström for suggesting this change.

22 months agoorg: allow relative time in `org-add-planning-info'.
Bastien Guerry [Sun, 24 Jul 2011 16:04:19 +0000]
org: allow relative time in `org-add-planning-info'.

(org-deadline, org-schedule): Improve docstrings.
(org-add-planning-info): Allow relative time like "-2d" or
"++2w" for the TIME argument.

The user can now call `org-schedule' and `org-deadline'
and use "+1d" to say that the task must be scheduled one
day later than today, or "++1d" to say that the task must
be scheduled one day later than the current SCHEDULED date,
if any.

This also works in agenda: you can select several entries
and reschedule them to +2d.

Thanks to Memnon Anon for insisting an finding a solution
for this!

22 months agoorg-agenda: fix two minor docstring typos.
Bastien Guerry [Sun, 24 Jul 2011 15:17:10 +0000]
org-agenda: fix two minor docstring typos.

22 months agoorg.el: tiny typo in docstring.
Bastien Guerry [Sun, 24 Jul 2011 14:44:48 +0000]
org.el: tiny typo in docstring.

22 months agoNew hook `org-ctrl-c-ctrl-c-final-hook'.
Bastien Guerry [Sun, 24 Jul 2011 14:12:47 +0000]
New hook `org-ctrl-c-ctrl-c-final-hook'.

* org.el (org-ctrl-c-ctrl-c-final-hook): New hook to be run
when `org-ctrl-c-ctrl-c' cannot do anything useful in the
given context.

Thanks to Paul Sexton for this idea.

22 months agoorg-html: add divs for pre/postamble defined in a new variable.
Bastien Guerry [Sat, 23 Jul 2011 17:09:07 +0000]
org-html: add divs for pre/postamble defined in a new variable.

`org-export-html-divs' contains '("preamble" "content" "postamble")
and is used to define the <div "%s"> for this parts of the HTML file.

This commit also obsolete some variables that are not useful anymore
as the file time-stamp can (should) be inserted through the postamble
or the preamble instead.

Thanks to Sébastian Vauban for a preliminary version of this patch!

* org-html.el (org-export-html-with-timestamp)
(org-export-html-html-helper-timestamp): These are obsolete
variables as of Org version 7.7 as you can already export the
timestamp from the preamble or the postamble.
(org-export-html-before-content-div): Delete variable.
(org-export-html-content-div): obsolete variable as of 7.7.
(org-export-html-divs): New variable to define divs used in
HTML export.
(org-export-as-html): Now the preamble and the postamble are
surrounded by a <div ...>.  The name of the div is defined
through `org-export-html-divs'.

22 months agoorg-exp-blocks: minor fix: use <br/> instead of </br>.
Bastien Guerry [Sat, 23 Jul 2011 15:35:36 +0000]
org-exp-blocks: minor fix: use <br/> instead of </br>.

22 months agoorg-table: Throw an error when replacing invalid references.
Bastien Guerry [Sat, 23 Jul 2011 15:23:19 +0000]
org-table: Throw an error when replacing invalid references.

* org-table.el (org-table-eval-formula): Throw an error when
trying to replace complex range with invalid references.

Thanks to Ken Williams for pointing this out.

22 months agoorg-macs: macro `org-with-limited-levels' also sets `outline-regexp'
Nicolas Goaziou [Sat, 23 Jul 2011 08:13:07 +0000]
org-macs: macro `org-with-limited-levels' also sets `outline-regexp'

* lisp/org-macs.el (org-with-limited-levels): some functions, like
  `org-back-to-heading', being deeply based on outline-mode, still
  refer to `outline-regexp' instead of `org-outline-regexp'.

22 months agoorg-odt: Check for zip early during export
Jambunathan K [Fri, 22 Jul 2011 11:24:40 +0000]
org-odt: Check for zip early during export

* contrib/lisp/org-odt.el (org-odt-init-outfile): Abort export
if zip utility is not available.

22 months agoorg-odt: Improve customization of org-export-odt-styles-file
Jambunathan K [Fri, 22 Jul 2011 11:07:33 +0000]
org-odt: Improve customization of org-export-odt-styles-file

* contrib/lisp/org-odt.el (org-odt-data-dir)
(org-export-odt-automatic-styles-file): Update docstring.
(org-export-odt-use-bookmarks-for-internal-links): Update
docstring. Improve customization interface.

22 months agoorg.el: remove one trailing whitespace.
Bastien Guerry [Fri, 22 Jul 2011 09:21:29 +0000]
org.el: remove one trailing whitespace.

22 months agoorg-refile: exclude current (sub)heading(s) even if they start with a TODO keyword.
Bastien Guerry [Thu, 21 Jul 2011 14:51:12 +0000]
org-refile: exclude current (sub)heading(s) even if they start with a TODO keyword.

(org-get-heading): New optional argument to return heading
with no TODO keyword.
(org-refile-get-location): Use this new argument.

22 months agoorg-refile: exclude current heading and subheadings from targets
Bastien Guerry [Thu, 21 Jul 2011 13:03:59 +0000]
org-refile: exclude current heading and subheadings from targets

* org.el (org-refile-get-targets): new optional argument
`excluded-entries' to exclude entries from the targets.
(org-refile-get-location): From an org-mode buffer, exclude
current heading and subheadings from the list of targets when
org-refile-use-cache is nil.

Also remove some trailing whitespaces.

Thanks to Jason Dunsmore for this idea.

22 months agoRevert "Fix bug with TODO states changes modifying scheduling of next headline"
Bastien Guerry [Fri, 22 Jul 2011 07:24:28 +0000]
Revert "Fix bug with TODO states changes modifying scheduling of next headline"

This reverts commit fd0f8e10d1d3a339da9460d6c71283e85897c455.

22 months agoFix small mistake
Nicolas Goaziou [Thu, 21 Jul 2011 18:40:58 +0000]
Fix small mistake

* lisp/org.el (org-imenu-get-tree): note to self: headlines start at bol.

22 months agofixed self-proclaimed file name in ob-maxima
Eric Schulte [Thu, 21 Jul 2011 17:11:33 +0000]
fixed self-proclaimed file name in ob-maxima

* lisp/ob-maxima.el: Fixed self-proclaimed file name.

22 months agoob: only call copy-seq on proper lists
Eric Schulte [Thu, 21 Jul 2011 17:05:19 +0000]
ob: only call copy-seq on proper lists

* lisp/ob.el (org-babel-sha1-hash): Only call copy-seq on proper
  lists.

22 months agoFix archiving bug introduced by last commit
Nicolas Goaziou [Thu, 21 Jul 2011 14:53:50 +0000]
Fix archiving bug introduced by last commit

* lisp/org.el (org-kill-is-subtree-p): matched string needs to start
  at bol.

22 months agoRemove inline tasks from subtrees yanking
Nicolas Goaziou [Thu, 21 Jul 2011 11:45:01 +0000]
Remove inline tasks from subtrees yanking

* lisp/org.el (org-paste-subtree, org-kill-is-subtree-p,
  org-yank-folding-would-swallow-text, org-yank-generic): use
  `org-with-limited-levels' macro.

22 months agoorg-macs: org-with-limited-levels also change org-outline-regexp-at-bol
Nicolas Goaziou [Thu, 21 Jul 2011 11:45:48 +0000]
org-macs: org-with-limited-levels also change org-outline-regexp-at-bol

* lisp/org-macs.el (org-with-limited-levels): also modify, when
  appropriate, `org-outline-regexp-at-bol'

22 months agoRevert "org.el: exclude current heading from the refile table."
Bastien Guerry [Thu, 21 Jul 2011 10:28:57 +0000]
Revert "org.el: exclude current heading from the refile table."

This reverts commit 651a537e49495b283602d7ef8979d364ef8dfbf9.

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Thu, 21 Jul 2011 10:28:43 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoorg-agenda.el (org-agenda-prefix-format): improve docstring.
Bastien Guerry [Thu, 21 Jul 2011 10:16:36 +0000]
org-agenda.el (org-agenda-prefix-format): improve docstring.

Thanks to Tassilo for pointing at this.

22 months agoFix bug with TODO states changes modifying scheduling of next headline
Nicolas Goaziou [Thu, 21 Jul 2011 09:48:35 +0000]
Fix bug with TODO states changes modifying scheduling of next headline

* lisp/org.el (org-timestamp-change): some locales don't use the same
  length for date abbreviations. Set a marker at origin in case length
  of new timestamp is different.

Thanks to Tom for analyzing this.

22 months agoob-fortran.el: fix bug with string input, add ob-fortran tests with ert
Litvinov Sergey [Wed, 20 Jul 2011 22:44:50 +0000]
ob-fortran.el: fix bug with string input, add ob-fortran tests with ert

22 months agoorg-odt: Use lang specific value for "Table Of Contents"
Jambunathan K [Wed, 20 Jul 2011 13:37:23 +0000]
org-odt: Use lang specific value for "Table Of Contents"

* contrib/lisp/org-odt.el (org-odt-begin-toc): Use lang
specific value for "Table Of Contents".

22 months agoorg-odt: Simplify org-odt-format-org-entity
Jambunathan K [Wed, 20 Jul 2011 10:14:12 +0000]
org-odt: Simplify org-odt-format-org-entity

* contrib/lisp/org-odt.el (org-odt-format-org-entity):
Simplify.  Component xml files in odt document are always
utf-8 encoded. As a result, emitting of numeric character
references based on utf-8 value is superfluous.

22 months agoorg-lparse: Update docstring of org-lparse-debug
Jambunathan K [Wed, 20 Jul 2011 09:32:53 +0000]
org-lparse: Update docstring of org-lparse-debug

* contrib/lisp/org-lparse.el (org-lparse-debug): Improve
docstring.

22 months agoAvoid getting inline tasks when using imenu
Nicolas Goaziou [Wed, 20 Jul 2011 23:43:29 +0000]
Avoid getting inline tasks when using imenu

* lisp/org.el (org-imenu-get-tree): browse only true headlines.

22 months agoorg-archive: error when buffer isn't visiting a file
Nicolas Goaziou [Wed, 20 Jul 2011 22:43:52 +0000]
org-archive: error when buffer isn't visiting a file

* lisp/org-archive.el (org-archive-subtree): while it might be
  possible to archive an headline of a temporary buffer (i.e. not
  visiting a file), it wouldn't be really sensical.

22 months agoorg-archive: fix archiving from an indirect buffer
Nicolas Goaziou [Wed, 20 Jul 2011 22:23:23 +0000]
org-archive: fix archiving from an indirect buffer

* lisp/org-archive.el (org-extract-archive-file,
  org-extract-archive-heading, org-archive-subtree): buffer-file-name
  is nil in an indirect buffer. Thus,
  use (buffer-file-name (buffer-base-buffer)), which will, in any
  case, return the file-name.

Thanks to Ilya Shlyakhter for reporting and analyzing this.

22 months agoorg.texi: minor typo.
Bastien Guerry [Tue, 19 Jul 2011 18:21:34 +0000]
org.texi: minor typo.

22 months agoRevert "org-capture: require dired since org-capture might use `dired-buffers'"
Bastien Guerry [Tue, 19 Jul 2011 16:41:21 +0000]
Revert "org-capture: require dired since org-capture might use `dired-buffers'"

This reverts commit f3e563476b452f297bf1b0e466b0b75fb9bb7a23.

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 19 Jul 2011 16:34:02 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoMake sure :html-pre/postamble can insert the output of a custom function.
Bastien Guerry [Tue, 19 Jul 2011 16:33:53 +0000]
Make sure :html-pre/postamble can insert the output of a custom function.

This function must have no argument and must output a string to be inserted
in the HTML export.

Thanks to Sander Boer for pointing at this.

22 months agoorg-capture: require dired since org-capture might use `dired-buffers'
Bastien Guerry [Tue, 19 Jul 2011 16:27:11 +0000]
org-capture: require dired since org-capture might use `dired-buffers'

22 months agoorg-capture: fix error with %F and dired not loaded
Nicolas Goaziou [Tue, 19 Jul 2011 15:49:37 +0000]
org-capture: fix error with %F and dired not loaded

* lisp/org-capture.el (org-capture): if dired isn't loaded,
  `dired-buffers' isn't defined, and %F will fail.

Thanks to Puneeth Chaganti for reporting this.

22 months agoob-java: don't create empty package directories
Eric Schulte [Tue, 19 Jul 2011 14:45:49 +0000]
ob-java: don't create empty package directories

* lisp/ob-java.el (org-babel-execute:java): Don't create empty package
  directories.

22 months agoob: replaced call to defunct function `org-babel-result-hash'
Eric Schulte [Tue, 19 Jul 2011 13:25:23 +0000]
ob: replaced call to defunct function `org-babel-result-hash'

* lisp/ob.el (org-babel-execute-src-block): Replaced call to defunct
  function `org-babel-result-hash'.

22 months agoFix documentation typo
Nicolas Goaziou [Tue, 19 Jul 2011 12:58:33 +0000]
Fix documentation typo

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Tue, 19 Jul 2011 12:48:43 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoorg-footnote: in Message mode, do not allow footnotes in headers
Nicolas Goaziou [Tue, 19 Jul 2011 10:51:23 +0000]
org-footnote: in Message mode, do not allow footnotes in headers

* lisp/org-footnote.el (org-footnote-in-valid-context-p): avoid cited
  lines and headers in message-mode.
(org-footnote-at-reference-p): remove check for cited lines, this is
now handled by the previous function. Refactor.

22 months agoorg-agenda.el (org-agenda-bulk-custom-functions): minor docstring fix.
Bastien Guerry [Tue, 19 Jul 2011 09:35:41 +0000]
org-agenda.el (org-agenda-bulk-custom-functions): minor docstring fix.

22 months agoorg.el: (org-do-emphasis-faces): docstring fix.
Bastien Guerry [Tue, 19 Jul 2011 09:25:45 +0000]
org.el: (org-do-emphasis-faces): docstring fix.

22 months agoAdded documentation for the extended %F capture template element
Nicolas Goaziou [Tue, 19 Jul 2011 06:54:22 +0000]
Added documentation for the extended %F capture template element

22 months agoorg-capture: %F is directory when capture starts in a dired buffer
Nicolas Goaziou [Mon, 18 Jul 2011 15:42:01 +0000]
org-capture: %F is directory when capture starts in a dired buffer

* lisp/org-capture.el (org-capture): if no file is associated to
  current buffer, check dired buffer and try to retreive a possibly
  directory associated.

22 months agoorg.el (org-outline-regexp): Turn into a defvar.
Bastien Guerry [Tue, 19 Jul 2011 00:00:50 +0000]
org.el (org-outline-regexp): Turn into a defvar.

`org-outline-regexp' ought to be a defconst but is let-binded
in some places -- e.g. see the macro `org-with-limited-levels'
and this produces misleading warnings.

Thanks to Matthew Sauer for reporting this.

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 18 Jul 2011 23:25:47 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoNew experimental exporter from Org to MoinMoin by Puneeth Chaganti.
Bastien Guerry [Mon, 18 Jul 2011 23:25:35 +0000]
New experimental exporter from Org to MoinMoin by Puneeth Chaganti.

Thanks to Puneeth Chaganti for this contribution!

22 months agoob-exp: on export resolve hashes in the current (not original) file buffer
Eric Schulte [Mon, 18 Jul 2011 23:08:37 +0000]
ob-exp: on export resolve hashes in the current (not original) file buffer

* lisp/ob-exp.el (org-babel-exp-results): Resolve hashes in the
  current (not original) file buffer.
* lisp/ob.el (org-babel-current-result-hash): More informative name,
  and remove useless optional argument.

22 months agomoving ob-fortran from core to contrib until FSF assignment is complete
Eric Schulte [Mon, 18 Jul 2011 21:47:32 +0000]
moving ob-fortran from core to contrib until FSF assignment is complete

22 months agoorg.el: exclude current heading from the refile table.
Bastien Guerry [Mon, 18 Jul 2011 20:57:53 +0000]
org.el: exclude current heading from the refile table.

* org.el (org-refile-get-location): exclude current heading
from the refile table.

Thanks to Jason Dunsmore for this idea.

22 months agoorg-footnote: add more checks to avoid false-positives
Nicolas Goaziou [Mon, 18 Jul 2011 19:54:24 +0000]
org-footnote: add more checks to avoid false-positives

* lisp/org-footnote.el (org-footnote-at-reference-p): test if match is
  in cited text, when replying to a message.
(org-footnote-new): do not create a new footnote at bol, as it might
be seen as a definition.
(org-footnote-at-definition-p): ignore definitions in forbidden
blocks, as it is already the case for references.

22 months agomoving ob-fortran into core, and cleaning up the code
Eric Schulte [Mon, 18 Jul 2011 18:17:02 +0000]
moving ob-fortran into core, and cleaning up the code

22 months agoAdd fortran to babel
Litvinov Sergey [Mon, 18 Jul 2011 07:44:07 +0000]
Add fortran to babel

22 months agoFix argument to org-toggle-tag.
Matt Lundin [Mon, 18 Jul 2011 17:37:20 +0000]
Fix argument to org-toggle-tag.

* lisp/org-bibtex.el: (org-bibtex-create, org-bibtex-write): Change
  argument of org-toggle-tag to 'on. (Other arguments, e.g., t, have
  no effect).

22 months agoorg-bibtex: don't let trimming turn nils into empty strings
Eric Schulte [Mon, 18 Jul 2011 17:26:41 +0000]
org-bibtex: don't let trimming turn nils into empty strings

* lisp/org-bibtex.el (org-bibtex-get): Don't let trimming turn nils
  into empty strings.

22 months agoFix (a lot of) compiler warnings.
Bastien Guerry [Mon, 18 Jul 2011 17:25:10 +0000]
Fix (a lot of) compiler warnings.

Also introduce `org-pop-to-buffer-same-window' as a compatibility
function for Emacs =>24.1.

22 months agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Mon, 18 Jul 2011 16:14:58 +0000]
Merge branch 'master' of orgmode.org:org-mode

22 months agoUse `org-loop-over-siblings-in-active-region' for `org-archive-set-tag'.
Bastien Guerry [Mon, 18 Jul 2011 16:14:35 +0000]
Use `org-loop-over-siblings-in-active-region' for `org-archive-set-tag'.

22 months agoob-java: minimal support for evaluation of java code blocks
Eric Schulte [Mon, 18 Jul 2011 16:07:49 +0000]
ob-java: minimal support for evaluation of java code blocks

22 months agoComment some code for posterity
Nicolas Goaziou [Mon, 18 Jul 2011 13:10:42 +0000]
Comment some code for posterity

22 months agoorg-list: move point after asking for new term when inserting an item
Nicolas Goaziou [Mon, 18 Jul 2011 11:51:15 +0000]
org-list: move point after asking for new term when inserting an item

* lisp/org-list.el (org-list-insert-item): actualize code comments.
(org-insert-item): for consistency, point cannot be moved at
a surprising place when the user is being asked to choose a new
description term to insert in the list. Point should stay where the
user called the command.

22 months agoorg-odt: Correctly export iso-8859-1 files with non-ascii chars
Jambunathan K [Sun, 17 Jul 2011 18:56:41 +0000]
org-odt: Correctly export iso-8859-1 files with non-ascii chars

* contrib/lisp/org-odt.el (org-odt-get): Set
CODING-SYSTEM-FOR-WRITE and CODING-SYSTEM-FOR-SAVE to 'utf-8
irrespective of buffer-file-coding-system.

Fixes issue reported by Renzo Been in the following post.
http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00795.html

22 months agoNew feature: allow some commands to loop over siblings.
Bastien Guerry [Mon, 18 Jul 2011 08:09:53 +0000]
New feature: allow some commands to loop over siblings.

This commit introduce `org-loop-over-siblings-within-active-region-p'
as a new defcustom that you can turn on (`non-nil') to allow commands
to loop over siblings in the active region.

The list of commands is this:

- org-archive-subtree
- org-archive-to-archive-sibling
- org-toggle-archive-tag
- org-deadline
- org-schedule

When `org-loop-over-siblings-within-active-region-p' is `non-nil' and
you run one of the command above on a region containing several headlines,
then Org will apply the command to each headline.

This can be particularily useful for archiving several headlines, or to
add a deadline or schedule several entries.

* org.el (org-loop-over-siblings-within-active-region-p): New
defcustom so that `org-loop-over-siblings-in-active-region'
can be turned on and off.
(org-deadline, org-schedule): Use the new macro.

* org-macs.el (org-loop-over-siblings-in-active-region): New
macro to let some commands act upon several siblings in the
active region.

* org-archive.el (org-archive-subtree)
(org-archive-to-archive-sibling, org-toggle-archive-tag): Use
`org-loop-over-siblings-in-active-region'.

22 months agocontrib/lisp: don't use `outline-regexp'.
Bastien Guerry [Mon, 18 Jul 2011 06:45:41 +0000]
contrib/lisp: don't use `outline-regexp'.

Use `org-outline-regexp' or `org-outline-regexp-bol' instead.

* org-toc.el (org-toc-before-first-heading-p, org-toc-show)
(org-toc-get-headlines-status): Use `org-outline-regexp-bol'.

* org-lparse.el (org-do-lparse): Use `org-outline-regexp-bol'.

* org-export-generic.el (org-export-generic): Use
`org-outline-regexp'.

22 months agoDon't use `outline-regexp' anymore.
Bastien Guerry [Sun, 17 Jul 2011 19:17:08 +0000]
Don't use `outline-regexp' anymore.

Use `org-outline-regexp' instead or `outline-regexp'.  Also use the
new defconst `org-outline-regexp-bol' to match `org-outline-regexp'
at the beginning of line.

* org.el (org-outline-regexp-bol): New defconst.
(org-outline-level, org-set-font-lock-defaults, org-cycle)
(org-overview, org-content, org-flag-drawer)
(org-first-headline-recenter, org-insert-todo-heading)
(org-map-region, org-move-subtree-down, org-paste-subtree)
(org-kill-is-subtree-p, org-context-p, org-refile)
(org-refile-new-child, org-toggle-comment, org-todo)
(org-add-planning-info, org-add-log-setup, org-scan-tags)
(org-set-tags, org-insert-property-drawer)
(org-prepare-agenda-buffers, org-preview-latex-fragment)
(org-speed-command-default-hook, org-check-for-hidden)
(org-toggle-item, org-toggle-heading)
(org-indent-line-function, org-set-autofill-regexps)
(org-fill-paragraph, org-toggle-fixed-width-section)
(org-yank-generic, org-yank-folding-would-swallow-text)
(org-first-sibling-p, org-goto-sibling)
(org-goto-first-child, org-show-entry): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-remember.el (org-remember-handler): Use
`org-outline-regexp-bol'.

* org-mouse.el (org-mouse-match-todo-keyword, org-mode-hook)
(org-mouse-move-tree, org-mouse-transform-to-outline): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-macs.el (org-with-limited-levels)
(org-get-limited-outline-regexp): Use `org-outline-regexp'.

* org-indent.el (org-indent-outline-re)
(org-indent-refresh-section, org-indent-refresh-to): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-html.el (org-export-as-html): Use
`org-outline-regexp-bol'.

* org-footnote.el (org-footnote-at-definition-p)
(org-footnote-normalize): Use `org-outline-regexp' and
`org-outline-regexp-bol'.

* org-exp.el (org-export-preprocess-string): Don't redefine
`outline-regexp'.

* org-docbook.el (org-export-as-docbook): Use
`org-outline-regexp-bol'.

* org-colview.el (org-columns, org-columns-compute): Use
`org-outline-regexp' and `org-outline-regexp-bol'.

* org-colview-xemacs.el (org-columns, org-columns-compute):
Use `org-outline-regexp-bol'.

* org-clock.el (org-clock-insert-selection-line)
(org-clock-in, org-clock-out, org-dblock-write:clocktable):
Use `org-outline-regexp' and `org-outline-regexp-bol'.

* org-ascii.el (org-export-as-ascii)
(org-export-ascii-push-links): Use `org-outline-regexp' and
`org-outline-regexp-bol'.

* org-archive.el (org-archive-to-archive-sibling)
(org-archive-all-done): Use `org-outline-regexp' and
`org-outline-regexp-bol'.

* org-agenda.el (org-agenda, org-search-view)
(org-agenda-list-stuck-projects, org-agenda-get-timestamps)
(org-agenda-get-progress, org-agenda-get-blocks): Use
`org-outline-regexp' and `org-outline-regexp-bol'.