4 years agoorg-element: Fix macro parsing with protected commas 7.9.3e
Nicolas Goaziou [Thu, 31 Jan 2013 21:15:15 +0000 (22:15 +0100)]
org-element: Fix macro parsing with protected commas

* lisp/org-element.el (org-element-macro-parser): Fix error when last
  argument ends with a protected comma.
* testing/lisp/test-org-element.el (test-org-element/macro-parser):
  Add tests.

4 years agoorg-clock.el (org-clock-sum): Fix indentation
Bastien Guerry [Thu, 31 Jan 2013 13:18:14 +0000 (14:18 +0100)]
org-clock.el (org-clock-sum): Fix indentation

4 years agoorg-clock.el (org-clock-sum): Protect with `org-unmodified'
Francesco Pizzolante [Wed, 30 Jan 2013 16:21:42 +0000 (17:21 +0100)]
org-clock.el (org-clock-sum): Protect with `org-unmodified'

* org-clock.el (org-clock-sum): Protect with `org-unmodified'.


4 years agoorg-html.el: Enhance docstrings
Bastien Guerry [Thu, 31 Jan 2013 10:30:43 +0000 (11:30 +0100)]
org-html.el: Enhance docstrings

* org-html.el (org-export-html-preamble-format)
(org-export-html-postamble-format): Mention that
org-export-html-preamble/postamble need to be `t' in order for
these variables to have any effect.

4 years agoorg-html.el (org-html-handle-links): Fix bug in setting the attribute for link with...
Bastien Guerry [Thu, 31 Jan 2013 09:25:03 +0000 (10:25 +0100)]
org-html.el (org-html-handle-links): Fix bug in setting the attribute for link with images

* org-html.el (org-html-handle-links): When the link
description is an image and the attribute is "width",
pass the attribute to the <img ...> tag.

Thanks to John Hendy for reporting this.

4 years agoorg-macs.el (org-unmodified): Inhibit modification hooks
Francesco Pizzolante [Wed, 30 Jan 2013 15:09:22 +0000 (16:09 +0100)]
org-macs.el (org-unmodified): Inhibit modification hooks

* org-macs.el (org-unmodified): Inhibit modification hooks.


4 years agoorg.texi (References): Clarify an example
Bastien Guerry [Wed, 30 Jan 2013 16:46:35 +0000 (17:46 +0100)]
org.texi (References): Clarify an example

* org.texi (References): Clarify an example.

Thanks to Xue Fuqiao, Eric S Fraga and H. Dieter Wilhelm
for sorting this out.

4 years agoorg-bibtex.el (org-bibtex-search): Don't throw an error when `org-bibtex-prefix'...
racin [Wed, 30 Jan 2013 10:42:17 +0000 (11:42 +0100)]
org-bibtex.el (org-bibtex-search): Don't throw an error when `org-bibtex-prefix' is nil

* org-bibtex.el (org-bibtex-search): Don't throw an error when
`org-bibtex-prefix' is nil.


4 years agoorg.el: Always honor `org-startup-indented', even when `org-inhibit-startup' is non-nil
Bastien Guerry [Wed, 30 Jan 2013 10:18:24 +0000 (11:18 +0100)]
org.el: Always honor `org-startup-indented', even when `org-inhibit-startup' is non-nil

* org.el (org-mode): Always honor `org-startup-indented', even
when `org-inhibit-startup' is non-nil.

* org-indent.el (org-indent-mode): Don't check

Thanks to Carsten for suggesting this.

4 years agoorg-e-odt.el (org-e-odt--export-wrap): Use `condition-case'
Bastien Guerry [Wed, 30 Jan 2013 09:46:43 +0000 (10:46 +0100)]
org-e-odt.el (org-e-odt--export-wrap): Use `condition-case'

* org-e-odt.el (org-e-odt--export-wrap): Use `condition-case'.

4 years agoorg.el (org-fontify-meta-lines-and-blocks-1): Don't try to add text properties outsid...
Bastien Guerry [Sun, 27 Jan 2013 08:21:35 +0000 (09:21 +0100)]
org.el (org-fontify-meta-lines-and-blocks-1): Don't try to add text properties outside of the buffer

* org.el (org-fontify-meta-lines-and-blocks-1): Don't try to
add text properties outside of the buffer.

Thanks to Leo Liu for reporting this.

4 years agoorg.el (org-agenda-inhibit-startup): Rename from `org-agenda-inhibit-startup-visibili...
Bastien Guerry [Sat, 26 Jan 2013 14:10:43 +0000 (15:10 +0100)]
org.el (org-agenda-inhibit-startup): Rename from `org-agenda-inhibit-startup-visibility-cycling'

* org.el (org-agenda-inhibit-startup): Rename from
(org-agenda-prepare-buffers): Bind `org-inhibit-startup' to

4 years agoorg.el (org-mode): Don't initialize `org-beamer-mode' when `org-inhibit-startup'...
Bastien Guerry [Sat, 26 Jan 2013 14:03:21 +0000 (15:03 +0100)]
org.el (org-mode): Don't initialize `org-beamer-mode' when `org-inhibit-startup' is non-nil

* org.el (org-mode): Don't initialize `org-beamer-mode' when
`org-inhibit-startup' is non-nil.

4 years agoorg-footnote.el: Fix bug when using `electric-indent-mode'
Bastien Guerry [Sat, 26 Jan 2013 12:40:18 +0000 (13:40 +0100)]
org-footnote.el: Fix bug when using `electric-indent-mode'

* org-footnote.el (org-footnote-create-definition): Prevent
`electric-indent-mode' from inserting the definition at the
wrong place.

Thanks to Xue Fuqiao for reporting this bug.

4 years agoorg-agenda.el: Delete `org-agenda-no-heading-message'
Bastien Guerry [Sat, 26 Jan 2013 12:29:44 +0000 (13:29 +0100)]
org-agenda.el: Delete `org-agenda-no-heading-message'

* org-agenda.el (org-agenda-no-heading-message): Delete.
(org-agenda-get-timestamps, org-agenda-get-progress)
(org-agenda-get-deadlines, org-agenda-get-scheduled)
(org-agenda-get-blocks): Don't use
`org-agenda-no-heading-message', skip the entry.

4 years agoorg.el (org-agenda-inhibit-startup-visibility-cycling): New option
Bastien Guerry [Sat, 26 Jan 2013 09:57:47 +0000 (10:57 +0100)]
org.el (org-agenda-inhibit-startup-visibility-cycling): New option

* org.el (org-agenda-inhibit-startup-visibility-cycling): New
(org-agenda-prepare-buffers): Use it to speed up the agenda

This change will boost agenda creation *a lot*, especially for
people using many agenda files.  See the docstring of the new
option for details.

4 years agoorg-agenda.el (org-agenda-skip): Fix bug by correctly skipping commented scheduled...
Bastien Guerry [Sat, 26 Jan 2013 09:55:35 +0000 (10:55 +0100)]
org-agenda.el (org-agenda-skip): Fix bug by correctly skipping commented scheduled/deadline lines

* org-agenda.el (org-agenda-skip): Fix bug by correctly
skipping commented scheduled/deadline lines.

This fixes a bug introduced in

4 years agoFix compiler warning.
Bastien Guerry [Thu, 24 Jan 2013 15:31:08 +0000 (16:31 +0100)]
Fix compiler warning.

4 years agoorg.texi (Installation): Enhance instructions again
Bastien Guerry [Thu, 24 Jan 2013 11:27:55 +0000 (12:27 +0100)]
org.texi (Installation): Enhance instructions again

* org.texi (Installation): Enhance instructions again.

4 years agoorg.texi (Org-Plot): Update link
Bastien Guerry [Wed, 23 Jan 2013 13:58:29 +0000 (14:58 +0100)]
org.texi (Org-Plot): Update link

* org.texi (Org-Plot): Update link.

Thanks to Xue Fuqiao for reporting this.

4 years agoorg-clock.el (org-clock-in): Fix bug when fetching the effort value
Bastien Guerry [Wed, 23 Jan 2013 13:48:52 +0000 (14:48 +0100)]
org-clock.el (org-clock-in): Fix bug when fetching the effort value

* org-clock.el (org-clock-in): Fix bug when fetching the effort

Thanks to Vasil S. Diadov for reporting this bug and proposing a patch.

4 years agoob-python.el: Fix compatibility bug.
Bastien Guerry [Wed, 23 Jan 2013 12:58:20 +0000 (13:58 +0100)]
ob-python.el: Fix compatibility bug.

* ob-python.el (org-babel-python-command): Fix docstring.
(org-babel-python-initiate-session-by-key): Fix bug: `run-python'
from Emacs >24.1 requires a python command as an argument.

Thanks to Myles English for raising this issue.

4 years agoorg-element.el (org-element-at-point): Fix typo in docstring
Bastien Guerry [Wed, 23 Jan 2013 11:58:09 +0000 (12:58 +0100)]
org-element.el (org-element-at-point): Fix typo in docstring

* org-element.el (org-element-at-point): Fix typo in docstring.

4 years agoorg-agenda.el (org-agenda-get-deadlines): Fix bug: use `org-agenda-show-inherited...
Bastien Guerry [Tue, 22 Jan 2013 21:27:56 +0000 (22:27 +0100)]
org-agenda.el (org-agenda-get-deadlines): Fix bug: use `org-agenda-show-inherited-tags'

* org-agenda.el (org-agenda-get-deadlines): Fix bug: use

Thanks to Kiwon Um for reporting this.

4 years agoorg-agenda.el (org-agenda-skip): Correctly handle commented out scheduled/deadline...
Bastien Guerry [Tue, 22 Jan 2013 15:39:23 +0000 (16:39 +0100)]
org-agenda.el (org-agenda-skip): Correctly handle commented out scheduled/deadline lines

* org-agenda.el (org-agenda-skip): Correctly handle commented
out scheduled/deadline lines.  Refactor.

Thanks to Rainer Stengele for reporting this and to Nick Dokos for
investigating further.  This fix will not slow down the agenda as checking
for a text property seems equally fast (and perhaps even slightly faster)
than checking the character after.

4 years agoorg.texi (Checkboxes, Radio lists): Fix typos
Bastien Guerry [Tue, 22 Jan 2013 15:00:56 +0000 (16:00 +0100)]
org.texi (Checkboxes, Radio lists): Fix typos

* org.texi (Checkboxes, Radio lists): Fix typos.

4 years agoSmall typo correction
Samuel Loury [Mon, 14 Jan 2013 14:25:16 +0000 (15:25 +0100)]
Small typo correction


4 years agoorg-agenda.el (org-agenda-quit): Delete indirect buffer's window only when it exists
Muchenxuan Tong [Tue, 22 Jan 2013 13:14:08 +0000 (14:14 +0100)]
org-agenda.el (org-agenda-quit): Delete indirect buffer's window only when it exists

* org-agenda.el (org-agenda-quit): Delete indirect buffer's window
only when it exists.

When indirect buffer's window doesn't exist, the original logic will
delete the current window.


4 years agoorg-install.el: Do not warn users.
Bastien Guerry [Tue, 22 Jan 2013 13:08:39 +0000 (14:08 +0100)]
org-install.el: Do not warn users.

* org-install.el: Do not warn users.

4 years agoorg.el (org-adaptive-fill-function): Fix various bugs when filling in message-mode
Bastien Guerry [Tue, 22 Jan 2013 12:55:57 +0000 (13:55 +0100)]
org.el (org-adaptive-fill-function): Fix various bugs when filling in message-mode

* org.el (org-adaptive-fill-function): In message-mode, don't
lines in the message header, nor table lines in the body.
Correctly fill lines starting with `org-outline-regexp' in the

4 years agoorg-element: Improve some docstrings
Nicolas Goaziou [Sun, 20 Jan 2013 08:43:58 +0000 (09:43 +0100)]
org-element: Improve some docstrings

* lisp/org-element.el (org-element-parse-buffer, org-element-map,
  org-element-at-point, org-element-context): Be more verbose in
  docstrings.  Also fix typos.

4 years agoorg-list: Fix bug when repairing checkbox with an ORDERED property
Nicolas Goaziou [Sat, 19 Jan 2013 14:37:16 +0000 (15:37 +0100)]
org-list: Fix bug when repairing checkbox with an ORDERED property

* lisp/org-list.el (org-list-struct-fix-box): When a checkbox has to
  be resetted because of a non-nil ORDERED property value, make sure
  it had a checkbox already.

4 years agoorg-agenda.el (org-agenda-open-link): Fix bug with opening all links
Bastien Guerry [Wed, 16 Jan 2013 17:36:29 +0000 (18:36 +0100)]
org-agenda.el (org-agenda-open-link): Fix bug with opening all links

* org-agenda.el (org-agenda-open-link): Fix bug with opening
all links.

Thanks to Ingo Lohmar for pointing this.

4 years agoorg-agenda.el (org-search-view): Fix checking `org-agenda-show-inherited-tags'
Tokuya Kameshima [Mon, 14 Jan 2013 17:04:31 +0000 (18:04 +0100)]
org-agenda.el (org-search-view): Fix checking `org-agenda-show-inherited-tags'

* org-agenda.el (org-search-view): Fix checking


4 years agoDelete `org-condition-case-unless-debug' release_7.9.3d
Bastien Guerry [Sun, 13 Jan 2013 08:27:08 +0000 (09:27 +0100)]
Delete `org-condition-case-unless-debug'

* org-compat.el (org-condition-case-unless-debug): Delete.

* org-odt.el (org-odt-cleanup-xml-buffers): Use
`condition-case' instead of `org-condition-case-unless-debug',
which is now deleted.

4 years agoRevert "Backwards compatibility: don't defalias special forms"
Bastien Guerry [Sun, 13 Jan 2013 08:24:43 +0000 (09:24 +0100)]
Revert "Backwards compatibility: don't defalias special forms"

This reverts commit b63275350f524df5e33c2aa915de4415f312f409.

4 years agoRevert "Compatibility: Use org-define-obsolete-{function,variable}-alias"
Bastien Guerry [Sun, 13 Jan 2013 08:19:24 +0000 (09:19 +0100)]
Revert "Compatibility: Use org-define-obsolete-{function,variable}-alias"

This reverts commit 305f29776fba57cdd1566071e0e8a75270d095c6.

4 years ago* org-mobile.el (org-mobile-write-agenda-for-mobile): Fix bug release_7.9.3c
Bastien Guerry [Sat, 12 Jan 2013 14:43:53 +0000 (15:43 +0100)]
* org-mobile.el (org-mobile-write-agenda-for-mobile): Fix bug
when replacing the heading.

Thanks to Jeff Myer for reporting this.

4 years agoorg-depend.el (org-depend-trigger-todo): Fix bug
Bastien Guerry [Sat, 12 Jan 2013 14:07:40 +0000 (15:07 +0100)]
org-depend.el (org-depend-trigger-todo): Fix bug

* org-depend.el (org-depend-trigger-todo): Fix bug: use
`org-refresh-properties'.  Also fix some compiler warnings.

Thanks to Karl Voit for reporting this.

4 years agoDocstring fixes. release_7.9.3b
Bastien Guerry [Sat, 12 Jan 2013 08:20:17 +0000 (09:20 +0100)]
Docstring fixes.

* org-capture.el (org-capture-templates-contexts):
* org-agenda.el (org-agenda-custom-commands-contexts):
Docstring fix.

4 years agoRestore previous behavior for inherited tags, now just more flexible
Bastien Guerry [Fri, 11 Jan 2013 16:15:17 +0000 (17:15 +0100)]
Restore previous behavior for inherited tags, now just more flexible

* org.el (org-get-tags-at): Remove duplicate inherited tags.

* org-agenda.el (org-agenda-show-inherited-tags): Allow to be
set to 'always or to a list of agenda types.
(org-agenda-finalize): Rework conditions under which inherited
tags should be made available even when not displayed.
(org-search-view, org-agenda-get-todos)
(org-agenda-get-timestamps, org-agenda-get-sexps)
(org-agenda-get-progress, org-agenda-get-scheduled)
(org-agenda-get-blocks): Use new possible values of

Thanks to Karl Voit and Tassilo Horn who first reported this.

4 years agoorg.texi (Installation): Simplify
Bastien Guerry [Fri, 11 Jan 2013 12:32:34 +0000 (13:32 +0100)]
org.texi (Installation): Simplify

* org.texi (Installation): Simplify.

4 years agoorg.el (org-open-at-point): Fix opening all links at point
Bastien Guerry [Fri, 11 Jan 2013 11:11:09 +0000 (12:11 +0100)]
org.el (org-open-at-point): Fix opening all links at point

* org.el (org-open-at-point): Fix opening all links at point.

Thanks to Ingo Lohmar for reporting this.

4 years agoorg-agenda.el (org-get-entries-from-diary): Turn off `diary-file-name-prefix'
Bastien Guerry [Thu, 10 Jan 2013 11:15:24 +0000 (12:15 +0100)]
org-agenda.el (org-get-entries-from-diary): Turn off `diary-file-name-prefix'

* org-agenda.el (org-get-entries-from-diary): Turn off
`diary-file-name-prefix' instead of
`diary-file-name-prefix-function', the former is checked
before the latter.

Thanks to Andreas Merziger for reporting this as Emacs bug#13396.

4 years agoob-eval.el (org-babel-shell-command-on-region): Use `executable-find' for local ...
Michael Albinus [Wed, 9 Jan 2013 12:48:30 +0000 (13:48 +0100)]
ob-eval.el (org-babel-shell-command-on-region): Use `executable-find' for local `shell-file-name'

* ob-eval.el (org-babel-shell-command-on-region): Use
`executable-find' for local `shell-file-name'.

4 years agoorg.texi: Update documentation on internal link handling
François Allisson [Wed, 9 Jan 2013 11:32:09 +0000 (12:32 +0100)]
org.texi: Update documentation on internal link handling

* org.texi (Handling links): Update the mention to the
obsolete variable `org-link-to-org-use-id' with a mention to
the newer variable `org-id-link-to-org-use-id'.  Mention the
need to load the org-id library.


4 years agoorg.el (org-edit-special): Check for table.el before checking for Org tables
Bastien Guerry [Tue, 8 Jan 2013 22:44:54 +0000 (23:44 +0100)]
org.el (org-edit-special): Check for table.el before checking for Org tables

* org.el (org-edit-special): Check for table.el before
checking for Org tables.

Thanks to Jacobo de Vera for reporting this.

4 years agodoc/org.texi: Update copyright year.
Bastien Guerry [Tue, 8 Jan 2013 21:33:33 +0000 (22:33 +0100)]
doc/org.texi: Update copyright year.

4 years agoorg-agenda.el (org-agenda-finalize): Inhibit readonly for the whole function release_7.9.3a
Bastien Guerry [Tue, 8 Jan 2013 17:39:45 +0000 (18:39 +0100)]
org-agenda.el (org-agenda-finalize): Inhibit readonly for the whole function

* org-agenda.el (org-agenda-finalize): Inhibit readonly for
the whole function.

Thanks to J. David Boyd for hitting this bug and reporting it.

4 years agoorg-src.el (org-edit-src-find-region-and-lang): Try to find table.el tables first
Bastien Guerry [Tue, 8 Jan 2013 17:26:06 +0000 (18:26 +0100)]
org-src.el (org-edit-src-find-region-and-lang): Try to find table.el tables first

* org-src.el (org-edit-src-find-region-and-lang): Try to find
table.el tables first.

Thanks to Jacobo de Vera for insisting on this.

4 years agoorg-jsinfo.el (org-infojs-template): Fix copyright years
Bastien Guerry [Tue, 8 Jan 2013 15:34:31 +0000 (16:34 +0100)]
org-jsinfo.el (org-infojs-template): Fix copyright years

* org-jsinfo.el (org-infojs-template): Fix copyright years.

4 years agoorg.texi: Document `org-mark-element' and `org-mark-subtree'
Bastien Guerry [Tue, 8 Jan 2013 15:19:31 +0000 (16:19 +0100)]
org.texi: Document `org-mark-element' and `org-mark-subtree'

* org.texi (Structure editing): Document `org-mark-element'
and `org-mark-subtree'.
(Tag inheritance): Document `org-agenda-use-tag-inheritance'.

Thanks to Nathaniel Cunningham for requesting this.

4 years agoorg-src.el (org-edit-src-code): Fix bug when trying to edit a table.el table
Bastien Guerry [Tue, 8 Jan 2013 14:57:10 +0000 (15:57 +0100)]
org-src.el (org-edit-src-code): Fix bug when trying to edit a table.el table

* org-src.el (org-edit-src-code): Fix bug when trying to edit
a table.el table.

Thanks to Jacobo de Vera for reporting this regression.

4 years agoVarious small fixes
Bastien Guerry [Tue, 8 Jan 2013 14:26:04 +0000 (15:26 +0100)]
Various small fixes

4 years agoUpdate Copyright lines to match Emacs format.
Bastien Guerry [Tue, 8 Jan 2013 14:04:32 +0000 (15:04 +0100)]
Update Copyright lines to match Emacs format.

4 years agoorg-agenda (org-agenda-finalize): Don't remove tag alignment
Bastien Guerry [Tue, 8 Jan 2013 13:29:29 +0000 (14:29 +0100)]
org-agenda (org-agenda-finalize): Don't remove tag alignment

* org-agenda.el (org-agenda-finalize): Don't remove tag
alignment depending on `org-prefix-has-tag', this should
depend on `org-agenda-remove-tags'.

Thanks to Rainer Stengele for reporting this.

4 years agodoc/orgguide.texi: Update menu
Bastien Guerry [Tue, 8 Jan 2013 11:09:39 +0000 (12:09 +0100)]
doc/orgguide.texi: Update menu

4 years agoetc/ORG-NEWS: Update release_7.9.3
Bastien Guerry [Tue, 8 Jan 2013 10:46:29 +0000 (11:46 +0100)]
etc/ORG-NEWS: Update

4 years agoorg-agenda.el (org-agenda-finalize): Downcase tags when readding them after agenda...
Bastien Guerry [Tue, 8 Jan 2013 10:34:09 +0000 (11:34 +0100)]
org-agenda.el (org-agenda-finalize): Downcase tags when readding them after agenda generation

* org-agenda.el (org-agenda-finalize): Downcase tags when
readding them after agenda generation.

4 years agoIgnore `auto-fill-inhibit-regexp'
Nicolas Goaziou [Tue, 8 Jan 2013 09:34:40 +0000 (10:34 +0100)]
Ignore `auto-fill-inhibit-regexp'

* lisp/org.el (org-setup-filling): Ignore `auto-fill-inhibit-regexp'.
  The idea behind this is that `org-adaptive-fill-function' already
  determines which lines should be filled.

4 years agoorg.el (org-setup-filling): Set `auto-fill-inhibit-regexp' from `org-outline-regexp'
Bastien Guerry [Tue, 8 Jan 2013 07:04:24 +0000 (08:04 +0100)]
org.el (org-setup-filling): Set `auto-fill-inhibit-regexp' from `org-outline-regexp'

* org.el (org-setup-filling): Set `auto-fill-inhibit-regexp'
from `org-outline-regexp'.

Thanks to John Hendy for reporting a problem in this area.

4 years agoorg-icalendar.el (org-icalendar-ts-to-string): Fix bug in converting timezone
David Engster [Mon, 7 Jan 2013 22:59:30 +0000 (23:59 +0100)]
org-icalendar.el (org-icalendar-ts-to-string): Fix bug in converting timezone

org-icalendar.el (org-icalendar-ts-to-string): Fix bug in converting


4 years agoetc/ORG-NEWS: Add information about Org 7.9.3
Bastien Guerry [Mon, 7 Jan 2013 21:28:54 +0000 (22:28 +0100)]
etc/ORG-NEWS: Add information about Org 7.9.3

4 years agoorg-agenda.el (org-agenda-use-tag-inheritance): Fix custom definition
Bastien Guerry [Mon, 7 Jan 2013 21:02:33 +0000 (22:02 +0100)]
org-agenda.el (org-agenda-use-tag-inheritance): Fix custom definition

* org-agenda.el (org-agenda-use-tag-inheritance): Fix custom

4 years agoorg.texi (Pushing to MobileOrg): Fix footnote about the use of symbolic links in...
Bastien Guerry [Mon, 7 Jan 2013 17:21:29 +0000 (18:21 +0100)]
org.texi (Pushing to MobileOrg): Fix footnote about the use of symbolic links in `org-directory'

* org.texi (Pushing to MobileOrg): Fix footnote about the use
of symbolic links in `org-directory'.

4 years agoorg.el (org-entry-get): Speed up by let-binding some variables only if needed
Bastien Guerry [Mon, 7 Jan 2013 17:18:27 +0000 (18:18 +0100)]
org.el (org-entry-get): Speed up by let-binding some variables only if needed

* org.el (org-entry-get): Speed up by let-binding some
variables only if needed.  Also fix a bug: consider an empty
drawer as no drawer.

Thanks to William Léchelle for reporting this.

4 years agoorg-agenda.el: New option `org-agenda-use-tag-inheritance'
Bastien Guerry [Mon, 7 Jan 2013 15:12:52 +0000 (16:12 +0100)]
org-agenda.el: New option `org-agenda-use-tag-inheritance'

* 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)
(org-agenda-change-all-lines): Get local tags only.
(org-agenda-use-tag-inheritance): New option.
(org-agenda-finalize): When `org-agenda-use-tag-inheritance'
is non-nil, possibly reset tags in the agenda buffer.
(org-agenda-check-type): Enhance docstring.

See the docstring of the new option for details.

4 years agoorg.el (org-use-tag-inheritance): Fix typo in docstring
Bastien Guerry [Mon, 7 Jan 2013 12:47:59 +0000 (13:47 +0100)]
org.el (org-use-tag-inheritance): Fix typo in docstring

* org.el (org-use-tag-inheritance): Fix typo in docstring.

4 years ago`org-float' is now obsolete
Bastien Guerry [Mon, 7 Jan 2013 12:01:36 +0000 (13:01 +0100)]
`org-float' is now obsolete

* org-agenda.el (org-float): Don't alias `org-float'.

* org.texi (Timestamps, Deadlines and scheduling): Use
`diary-float' instead of the now obsolete alias `org-float'.

* test-org-element.el
(test-org-element/timestamp-interpreter): Ditto.

4 years agoorg.el (org-scan-tags): The skipper already checks for archived entries
Bastien Guerry [Mon, 7 Jan 2013 11:57:27 +0000 (12:57 +0100)]
org.el (org-scan-tags): The skipper already checks for archived entries

* org.el (org-scan-tags): The skipper already checks for
archived entries.

4 years agoorg-clock.el: Fix last commit.
Bastien Guerry [Mon, 7 Jan 2013 11:52:34 +0000 (12:52 +0100)]
org-clock.el: Fix last commit.

4 years agoSpeed up setting/getting the APPT_WARNTIME property.
Bastien Guerry [Mon, 7 Jan 2013 11:50:49 +0000 (12:50 +0100)]
Speed up setting/getting the APPT_WARNTIME property.

* org.el (org-refresh-properties): Rename from
`org-refresh-effort-properties' and use two new parameters.
(org-agenda-prepare-buffers): Use `org-refresh-properties'.
Also refresh the 'org-appt-warntime text property.

* org-clock.el (org-clock-in): Use the renamed defun.

* org-icalendar.el (org-icalendar-print-entries): Refresh the
'org-appt-warntime property.
(org-icalendar-print-entries): Do not use `org-entry-get' to
get the "APPT_WARNTIME" property value.

* org-agenda.el (org-agenda-get-timestamps)
(org-agenda-get-sexps, org-agenda-get-deadlines)
(org-agenda-get-scheduled): Ditto.

4 years agoorg.el (org-adaptive-fill-function): Fix checking of post-affiliated
Bastien Guerry [Mon, 7 Jan 2013 11:39:09 +0000 (12:39 +0100)]
org.el (org-adaptive-fill-function): Fix checking of post-affiliated

* org.el (org-adaptive-fill-function): Fix checking of
(org-id-link-to-org-use-id): Fix compiler warning.

4 years agoorg-depend.el (org-depend-trigger-todo): Refresh effort text properties
Bastien Guerry [Mon, 7 Jan 2013 11:33:57 +0000 (12:33 +0100)]
org-depend.el (org-depend-trigger-todo): Refresh effort text properties

* org-depend.el (org-depend-trigger-todo): Refresh effort text
properties.  Do not use `org-get-effort' for getting the
effort property value.

4 years agoNew defun `org-refresh-effort-properties'
Bastien Guerry [Mon, 7 Jan 2013 11:33:24 +0000 (12:33 +0100)]
New defun `org-refresh-effort-properties'

* org-agenda.el (org-agenda-format-item): Do not use
org-get-effort to get the effort text property.
(org-agenda-get-sexps): Use `org-back-to-heading' when setting
the tags.

* org-clock.el (org-clock-in): Refresh effort properties.

* org.el (org-refresh-effort-properties): New defun.
(org-get-effort): Delete.
(org-set-effort): Set the 'org-effort text property.
(org-property-next-allowed-value): Ditto.
(org-agenda-prepare-buffers): Refresh effort properties.

4 years agoCompatibility: Use org-define-obsolete-{function,variable}-alias
Achim Gratz [Sun, 6 Jan 2013 17:29:05 +0000 (18:29 +0100)]
Compatibility: Use org-define-obsolete-{function,variable}-alias

* lisp/org-compat.el (org-define-obsolete-function-alias,
  org-define-obsolete-variable-alias): Introduce new compatibility
  macros to obsolete functions and variables.

* lisp/org-agenda.el, lisp/org-clock.el, lisp/org-id.el,
  lisp/org-lparse.el, lisp/org-protocol.el lisp/org.el: Use
  `org-define-obsolete-{function,variable}-alias´instead of

4 years agoCompatibility: Define face alias mode-line for XEmacs
Achim Gratz [Sun, 6 Jan 2013 16:48:39 +0000 (17:48 +0100)]
Compatibility: Define face alias mode-line for XEmacs

* lisp/org-faces.el: Define face alias mode-line for XEmacs (it's
  called modeline there).

4 years agoCompatibility: Use org-no-warnings
Achim Gratz [Sun, 6 Jan 2013 17:28:06 +0000 (18:28 +0100)]
Compatibility: Use org-no-warnings

* contrib/lisp/org-e-odt.el (org-e-odt-htmlfontify-string): Use
  compatibility alias `org-no-warnings´.

4 years agoBackport patch from revno#r111145 from the Emacs-24 branch
Bastien Guerry [Sun, 6 Jan 2013 14:05:35 +0000 (15:05 +0100)]
Backport patch from revno#r111145 from the Emacs-24 branch

4 years agoorg.texi (Pushing to MobileOrg): Mention that `org-directory' should not contain...
Bastien Guerry [Sun, 6 Jan 2013 13:56:36 +0000 (14:56 +0100)]
org.texi (Pushing to MobileOrg): Mention that `org-directory' should not contain symbolic links

* org.texi (Pushing to MobileOrg): Mention that `org-directory'
should not contain symbolic links.

Thanks to James Harkins for reporting this problem.

4 years agoMerge branch 'maint-agenda-optimization' into maint
Bastien Guerry [Sun, 6 Jan 2013 11:46:25 +0000 (12:46 +0100)]
Merge branch 'maint-agenda-optimization' into maint

4 years agoorg.el (org-read-date): Let-bind `mouse-autoselect-window' to nil
Bastien Guerry [Sun, 6 Jan 2013 11:37:18 +0000 (12:37 +0100)]
org.el (org-read-date): Let-bind `mouse-autoselect-window' to nil

* org.el (org-read-date): Let-bind `mouse-autoselect-window'
to nil so that the mouse doesn't jump when the option is set
to t globally.

Thanks to E Sabof for reporting this.

4 years agoNew default value nil for `org-agenda-dim-blocked-tasks'
Bastien Guerry [Sun, 6 Jan 2013 11:31:20 +0000 (12:31 +0100)]
New default value nil for `org-agenda-dim-blocked-tasks'

* org-agenda.el (org-agenda-dim-blocked-tasks): Default to
(org-agenda-dim-blocked-tasks): Make interactive and allow an
optional parameter 'invisible to hide blocked tasks instead of
just dimming them.
(org-agenda-mode-map): Bind `org-agenda-dim-blocked-tasks' to

With a default value of t for `org-agenda-dim-blocked-tasks',
any non-nil value for `org-enforce-todo-checkbox-dependencies' or
`org-enforce-todo-dependencies' (or both) will slow down the
agenda generation too much, which might surprise the user.

4 years agoorg-agenda.el (org-agenda-finalize): Don't try to align tags when there are no tags
Bastien Guerry [Sun, 6 Jan 2013 08:20:30 +0000 (09:20 +0100)]
org-agenda.el (org-agenda-finalize): Don't try to align tags when there are no tags

* org-agenda.el (org-agenda-finalize): Don't try to align tags
when there are no tags.

4 years agoorg-agenda.el (org-agenda-finalize): Only try to draw the habit consistency graph...
Bastien Guerry [Sun, 6 Jan 2013 08:14:54 +0000 (09:14 +0100)]
org-agenda.el (org-agenda-finalize): Only try to draw the habit consistency graph when there is a habit in the buffer

* org-agenda.el (org-agenda-finalize): Only try to draw the
habit consistency graph when there is a habit in the buffer.

4 years agoorg-agenda.el (org-agenda-finalize): Only mark clocking task when there is one
Bastien Guerry [Sun, 6 Jan 2013 08:11:08 +0000 (09:11 +0100)]
org-agenda.el (org-agenda-finalize): Only mark clocking task when there is one

* org-agenda.el (org-agenda-finalize): Only mark clocking task
when there is one.

4 years agoorg.texi (TODO basics): Fix description of TODO keywords cycling
Bastien Guerry [Sun, 6 Jan 2013 06:36:36 +0000 (07:36 +0100)]
org.texi (TODO basics): Fix description of TODO keywords cycling

* org.texi (TODO basics): Add `org-use-fast-todo-selection' to
the variable index.
(TODO basics): Fix description of TODO keywords cycling.

Thanks to Brian van den Broek for reporting this.

4 years agoRevert "Backport revno#111138 from the emacs-24 branch"
Bastien Guerry [Sun, 6 Jan 2013 05:15:30 +0000 (06:15 +0100)]
Revert "Backport revno#111138 from the emacs-24 branch"

This reverts commit 7fe67bb942869d3657f2905202dc4170b14662fd.

Thanks to Takaaki ISHIKAWA for reporting this.
Also see

4 years agoBackport revno#111138 from the emacs-24 branch
Bastien Guerry [Sat, 5 Jan 2013 17:39:40 +0000 (18:39 +0100)]
Backport revno#111138 from the emacs-24 branch

 * org.texi (Advanced features): Add missing argument for @item.
(Property searches): Use @backslashchar{} in macro argument.

4 years agoorg.el (org-adaptive-fill-function): DTRT in `message-mode'
Bastien Guerry [Sat, 5 Jan 2013 16:23:34 +0000 (17:23 +0100)]
org.el (org-adaptive-fill-function): DTRT in `message-mode'

* org.el (org-adaptive-fill-function): DTRT in `message-mode'.

This is too hackish, but do the job for now.  Instead of
having exceptions for `message-mode' filling wrapped into
org-*-fill* functions, we should let orgstruct++-mode do
this job.

4 years agoorg.el (org-get-priority): Save match data even when using `org-get-priority-function'
Bastien Guerry [Fri, 4 Jan 2013 17:15:51 +0000 (18:15 +0100)]
org.el (org-get-priority): Save match data even when using `org-get-priority-function'

* org.el (org-get-priority): Save match data even when using

4 years agoorg-mobile.el: Remove match description from block agendas when they have a title
Henning Weiss [Fri, 4 Jan 2013 16:20:57 +0000 (17:20 +0100)]
org-mobile.el: Remove match description from block agendas when they have a title

* org-mobile.el (org-mobile-sumo-agenda-command): Remove match
description from block agendas when they have a title.

This makes the generated file more readable, as
complicated block agendas otherwise have long titles.


4 years agoorg.texi (Storing searches): Add index entries and a note about {*-tree} agenda views
Bastien Guerry [Fri, 4 Jan 2013 16:14:25 +0000 (17:14 +0100)]
org.texi (Storing searches): Add index entries and a note about {*-tree} agenda views

* org.texi (Storing searches): Add index entries and a note
about {*-tree} agenda views.

Thanks to Alan Schmitt for indirectly pointing at this doc problem.

4 years agoFix an error introduced in 502e538020d02522dd40b4b5f940cf43d19096ab, org-make-link...
Samuel Loury [Fri, 4 Jan 2013 12:47:59 +0000 (13:47 +0100)]
Fix an error introduced in 502e538020d02522dd40b4b5f940cf43d19096ab, org-make-link was replaced by contact instead of concat as the comment suggested

* org-git-link.el (org-git-create-git-link): Replace contact call by concat
* org-bookmark.el (org-bookmark-store-link): Replace contact call by concat


4 years agoorg-mobile.el (org-mobile-create-index-file): Possibly normalize `org-todo-keywords'
Bastien Guerry [Thu, 3 Jan 2013 12:22:05 +0000 (13:22 +0100)]
org-mobile.el (org-mobile-create-index-file): Possibly normalize `org-todo-keywords'

* org-mobile.el (org-mobile-create-index-file): Possibly
normalize `org-todo-keywords'.

Thanks to Ben Finney (and others) for reporting this.

4 years agoorg-mobile.el (org-mobile-push): Use the correct agenda buffer names
Bastien Guerry [Thu, 3 Jan 2013 11:39:58 +0000 (12:39 +0100)]
org-mobile.el (org-mobile-push): Use the correct agenda buffer names

* org-mobile.el (org-mobile-push): Use the correct agenda
buffer names.

Thanks to Ramon Diaz-Uriarte for reporting this issue.

4 years agoorg.el (org-store-link): Use `org-id-link-to-org-use-id'
Bastien Guerry [Wed, 2 Jan 2013 22:46:14 +0000 (23:46 +0100)]
org.el (org-store-link): Use `org-id-link-to-org-use-id'

* org.el (org-store-link): Use `org-id-link-to-org-use-id'
instead of the obsolete variable name.

4 years ago org.el (org-fontify-meta-lines-and-blocks-1): Fix bug when fontifying keywords with...
Bastien Guerry [Wed, 2 Jan 2013 22:43:53 +0000 (23:43 +0100)]
 org.el (org-fontify-meta-lines-and-blocks-1): Fix bug when fontifying keywords with no value

* org.el (org-fontify-meta-lines-and-blocks-1): Fix bug when
fontifying keywords with no value.

4 years agoorg.el: Various fixes to the org-goto interface
Bastien Guerry [Wed, 2 Jan 2013 09:47:59 +0000 (10:47 +0100)]
org.el: Various fixes to the org-goto interface

* org.el (org-goto-auto-isearch): Enhance docstring.
(org-goto-map): Make a defun, so that the customized value of
org-goto-auto-isearch is correctly initialized.
(org-goto): Initialize the keymap with `org-goto-map'.
(org-get-location): Use *Org Help* as a temporary buffer.
Tell whether auto-isearch is on or off.

Thanks to Tyler Smith for reporting this.

4 years agoFix number of arguments for org-export-as-org/docbook
Bastien Guerry [Tue, 1 Jan 2013 23:32:35 +0000 (00:32 +0100)]
Fix number of arguments for org-export-as-org/docbook

* org-exp.el (org-export-as-org): Remove useless

* org-docbook.el (org-export-as-docbook-batch)
(org-export-region-as-docbook, org-export-as-docbook-pdf): Fix
the number of arguments.
(org-export-as-docbook): Remove useless argument.

Thanks to George McNinch for reporting this.