org-mode.git
2 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]
* org-mobile.el (org-mobile-write-agenda-for-mobile): Fix bug
when replacing the heading.

Thanks to Jeff Myer for reporting this.

2 years agoorg-depend.el (org-depend-trigger-todo): Fix bug
Bastien Guerry [Sat, 12 Jan 2013 14:07:40 +0000]
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.

2 years agoDocstring fixes. release_7.9.3b
Bastien Guerry [Sat, 12 Jan 2013 08:20:17 +0000]
Docstring fixes.

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

2 years agoRestore previous behavior for inherited tags, now just more flexible
Bastien Guerry [Fri, 11 Jan 2013 16:15:17 +0000]
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
`org-agenda-show-inherited-tags'.

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

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

* org.texi (Installation): Simplify.

2 years agoorg.el (org-open-at-point): Fix opening all links at point
Bastien Guerry [Fri, 11 Jan 2013 11:11:09 +0000]
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.

2 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]
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.

2 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]
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'.

2 years agoorg.texi: Update documentation on internal link handling
François Allisson [Wed, 9 Jan 2013 11:32:09 +0000]
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.

TINYCHANGE

2 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]
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.

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

2 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]
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.

2 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]
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.

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

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

2 years agoorg.texi: Document `org-mark-element' and `org-mark-subtree'
Bastien Guerry [Tue, 8 Jan 2013 15:19:31 +0000]
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.

2 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]
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.

2 years agoVarious small fixes
Bastien Guerry [Tue, 8 Jan 2013 14:26:04 +0000]
Various small fixes

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

2 years agoorg-agenda (org-agenda-finalize): Don't remove tag alignment
Bastien Guerry [Tue, 8 Jan 2013 13:29:29 +0000]
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.

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

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

2 years agoorg-agenda.el (org-agenda-finalize): Downcase tags when readding them after agenda...
Bastien Guerry [Tue, 8 Jan 2013 10:34:09 +0000]
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.

2 years agoIgnore `auto-fill-inhibit-regexp'
Nicolas Goaziou [Tue, 8 Jan 2013 09:34:40 +0000]
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.

2 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]
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.

2 years agoorg-icalendar.el (org-icalendar-ts-to-string): Fix bug in converting timezone
David Engster [Mon, 7 Jan 2013 22:59:30 +0000]
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
timezone.

TINYCHANGE

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

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

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

2 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]
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'.

2 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]
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.

2 years agoorg-agenda.el: New option `org-agenda-use-tag-inheritance'
Bastien Guerry [Mon, 7 Jan 2013 15:12:52 +0000]
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.

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

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

2 years ago`org-float' is now obsolete
Bastien Guerry [Mon, 7 Jan 2013 12:01:36 +0000]
`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.

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

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

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

2 years agoSpeed up setting/getting the APPT_WARNTIME property.
Bastien Guerry [Mon, 7 Jan 2013 11:50:49 +0000]
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.

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

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

2 years agoorg-depend.el (org-depend-trigger-todo): Refresh effort text properties
Bastien Guerry [Mon, 7 Jan 2013 11:33:57 +0000]
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.

2 years agoNew defun `org-refresh-effort-properties'
Bastien Guerry [Mon, 7 Jan 2013 11:33:24 +0000]
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.

2 years agoCompatibility: Use org-define-obsolete-{function,variable}-alias
Achim Gratz [Sun, 6 Jan 2013 17:29:05 +0000]
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
  `define-obsolate{function,variable}-alias´.

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

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

2 years agoCompatibility: Use org-no-warnings
Achim Gratz [Sun, 6 Jan 2013 17:28:06 +0000]
Compatibility: Use org-no-warnings

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

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

2 years agoorg.texi (Pushing to MobileOrg): Mention that `org-directory' should not contain...
Bastien Guerry [Sun, 6 Jan 2013 13:56:36 +0000]
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.

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

2 years agoorg.el (org-read-date): Let-bind `mouse-autoselect-window' to nil
Bastien Guerry [Sun, 6 Jan 2013 11:37:18 +0000]
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.

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

* org-agenda.el (org-agenda-dim-blocked-tasks): Default to
nil.
(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.

2 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]
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.

2 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]
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.

2 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]
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.

2 years agoorg.texi (TODO basics): Fix description of TODO keywords cycling
Bastien Guerry [Sun, 6 Jan 2013 06:36:36 +0000]
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.

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

This reverts commit 7fe67bb942869d3657f2905202dc4170b14662fd.

Thanks to Takaaki ISHIKAWA for reporting this.
Also see http://mid.gmane.org/fkobh39l4z.fsf%40fencepost.gnu.org

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

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

2 years agoorg.el (org-adaptive-fill-function): DTRT in `message-mode'
Bastien Guerry [Sat, 5 Jan 2013 16:23:34 +0000]
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.

2 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]
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
`org-get-priority-function'.

2 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]
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 agendas.org file more readable, as
complicated block agendas otherwise have long titles.

TINYCHANGE

2 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]
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.

2 years agoFix an error introduced in 502e538020d02522dd40b4b5f940cf43d19096ab, org-make-link...
Samuel Loury [Fri, 4 Jan 2013 12:47:59 +0000]
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

TINYCHANGE

2 years agoorg-mobile.el (org-mobile-create-index-file): Possibly normalize `org-todo-keywords'
Bastien Guerry [Thu, 3 Jan 2013 12:22:05 +0000]
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.

2 years agoorg-mobile.el (org-mobile-push): Use the correct agenda buffer names
Bastien Guerry [Thu, 3 Jan 2013 11:39:58 +0000]
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.

2 years agoorg.el (org-store-link): Use `org-id-link-to-org-use-id'
Bastien Guerry [Wed, 2 Jan 2013 22:46:14 +0000]
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.

2 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]
 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.

2 years agoorg.el: Various fixes to the org-goto interface
Bastien Guerry [Wed, 2 Jan 2013 09:47:59 +0000]
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.

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

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

* 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.

2 years agoorg.el (org-speed-commands-default): Use ":" instead of ";" for `org-set-tags-command'
Bastien Guerry [Tue, 1 Jan 2013 22:43:34 +0000]
org.el (org-speed-commands-default): Use ":" instead of ";" for `org-set-tags-command'

* org.el (org-speed-commands-default): Use ":" instead of ";"
for `org-set-tags-command', which is consistent with ":" in
agenda view.  Use "=" for `org-columns".

Thanks to Alan Schmitt for pointing this.

2 years agoorg.el (org-sparse-tree): Fix redundant information in prompt
Bastien Guerry [Tue, 1 Jan 2013 16:40:13 +0000]
org.el (org-sparse-tree): Fix redundant information in prompt

* org.el (org-sparse-tree): Fix redundant information in prompt.

2 years agoorg-exp.el (org-export-string): Fix number of arguments passed to the org-export...
Bastien Guerry [Tue, 1 Jan 2013 16:35:35 +0000]
org-exp.el (org-export-string): Fix number of arguments passed to the org-export-as-* functions.

* org-exp.el (org-export-string): Fix number of arguments
passed to the org-export-as-* functions.

This fixes commit 43a242, thanks to George McNinch for reporting this.

2 years agoorg-latex.el (org-export-as-latex): Fix typo in docstring
Bastien Guerry [Tue, 1 Jan 2013 16:29:54 +0000]
org-latex.el (org-export-as-latex): Fix typo in docstring

* org-latex.el (org-export-as-latex): Fix typo in docstring.

2 years agoorg-list.el (org-cycle-include-plain-lists): Docstring enhancement
Bastien Guerry [Tue, 1 Jan 2013 15:31:26 +0000]
org-list.el (org-cycle-include-plain-lists): Docstring enhancement

* org-list.el (org-cycle-include-plain-lists): Docstring
enhancement.

Thanks to James Harkins for raising this issue.

2 years agoUpdate copyright years.
Bastien Guerry [Tue, 1 Jan 2013 15:04:24 +0000]
Update copyright years.

Happy new year!

2 years agoRevert "org.el (org-fontify-meta-lines-and-blocks-1): Fix fontification bug"
Bastien Guerry [Mon, 31 Dec 2012 14:12:09 +0000]
Revert "org.el (org-fontify-meta-lines-and-blocks-1): Fix fontification bug"

This reverts commit 001b6d1ebdd6e55097e60d4862c9baf98718a002.

2 years agoorg.el (org-fontify-meta-lines-and-blocks-1): Fix fontification bug
Bastien Guerry [Mon, 31 Dec 2012 10:29:17 +0000]
org.el (org-fontify-meta-lines-and-blocks-1): Fix fontification bug

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

2 years agoorg.el (org-cycle-internal-local): Don't run hooks when cycling a plain list before...
Bastien Guerry [Mon, 31 Dec 2012 10:06:55 +0000]
org.el (org-cycle-internal-local): Don't run hooks when cycling a plain list before first headline

* org.el (org-cycle-internal-local): Don't run hooks when
cycling a plain list before first headline.

2 years agoorg.el (org-ctrl-c-ctrl-c): Throw a user error when trying to toggle a blocked checkbox
Bastien Guerry [Mon, 31 Dec 2012 08:03:27 +0000]
org.el (org-ctrl-c-ctrl-c): Throw a user error when trying to toggle a blocked checkbox

* org.el (org-ctrl-c-ctrl-c): Throw a user error when trying
to toggle a blocked checkbox.

2 years agoorg.el (org-indent-line): Fix table formulas indenting
Bastien Guerry [Mon, 31 Dec 2012 08:24:04 +0000]
org.el (org-indent-line): Fix table formulas indenting

* org.el (org-indent-line): Fix table formulas indenting.

2 years agoorg-agenda.el (org-agenda-open-link): Fix bug when no link is matched
Bastien Guerry [Mon, 31 Dec 2012 08:11:55 +0000]
org-agenda.el (org-agenda-open-link): Fix bug when no link is matched

* org-agenda.el (org-agenda-open-link): Fix bug when no link
is matched.  Return a message instead of an error.

2 years agoorg-agenda.el (org-agenda-priority): Fix showing priority in agenda buffers
Bastien Guerry [Sun, 30 Dec 2012 10:30:21 +0000]
org-agenda.el (org-agenda-priority): Fix showing priority in agenda buffers

* org-agenda.el (org-agenda-priority): Remove useless
parameter and fix showing priority in agenda buffers.

Thanks to Michael Brand for reporting this.

2 years agoNew macro `org-with-buffer-modified-unmodified'
Bastien Guerry [Sun, 30 Dec 2012 00:21:27 +0000]
New macro `org-with-buffer-modified-unmodified'

* org-macs.el (org-with-buffer-modified-unmodified): New
macro.

* org.el (org-entry-blocked-p): Use the new macro.

Thanks to Nick Dokos for reporting this.

The macro is a copy of `with-buffer-modified-unmodified'
which (wrongly?) lives in bookmark.el.

2 years agoorg-src.el (org-edit-src-exit): Don't comma-escape the content of a fixed width region
Bastien Guerry [Sat, 29 Dec 2012 10:20:10 +0000]
org-src.el (org-edit-src-exit): Don't comma-escape the content of a fixed width region

* org-src.el (org-edit-src-exit): Don't comma-escape the
content of a fixed width region.

Thanks to Bernt Hansen for reporting this.

2 years agoorg-inlinetask.el: Add a note about mixing inline tasks and plain list
Bastien Guerry [Sat, 29 Dec 2012 10:04:33 +0000]
org-inlinetask.el: Add a note about mixing inline tasks and plain list

The note reads:

;; Note that you should not try to use inline tasks within plain list,
;; visibility cycling is known to be problematic when doing so.

Thanks to Gregor Zattler for pointing at limitations in this area.

2 years agoorg.el (org-entry-blocked-p): Don't set the buffer as modified
Bastien Guerry [Sat, 29 Dec 2012 08:39:42 +0000]
org.el (org-entry-blocked-p): Don't set the buffer as modified

* org.el (org-blocker-hook): Update the docstring to mention
that functions in this hook should not modify the buffer.
(org-trigger-hook): Small docstring fix.
(org-entry-blocked-p): Use `with-buffer-modified-unmodified'
so that the function never modifies the buffer.

Thanks to Sven Bretfeld for reporting this.

When building the agenda, checking for blocked items should not
set the buffers as modified, otherwise exiting the agenda will ask
for confirmation each time it kills a buffer.

2 years agoorg-src.el: Fix compiler warning
Bastien Guerry [Sat, 29 Dec 2012 08:23:11 +0000]
org-src.el: Fix compiler warning

2 years agoAllow to follow internal links from the agenda
Bastien Guerry [Sat, 29 Dec 2012 08:20:35 +0000]
Allow to follow internal links from the agenda

* org-agenda.el (org-agenda-open-link): Allow to open an
internal link by using the new `org-offer-links-in-entry'
function.

* org.el (org-offer-links-in-entry): Do not open the link
directly through `org-open-link-from-string', only offer to
select a link and return a cons with the link (as a string)
and the end of entry.
(org-open-at-point): Use `org-offer-links-in-entry' correctly.

Thanks to Memnon Anon for reporting this.

2 years agoPass the dir option on through org-export-as-string
Eric Schulte [Fri, 28 Dec 2012 15:20:56 +0000]
Pass the dir option on through org-export-as-string

* lisp/org-exp.el (org-export-string): Pass the dir option on through to
  any subsequent export functions.

2 years agoorg.el (org-cycle-internal-local): Fix bug: allow headings with leading blank characters
Bastien Guerry [Fri, 28 Dec 2012 11:41:07 +0000]
org.el (org-cycle-internal-local): Fix bug: allow headings with leading blank characters

* org.el (org-cycle-internal-local): Fix bug: allow headings
with leading blank characters.

Thanks to Rémi Vanicat for sending a patch for this.

2 years agoorg-clock.el (org-clock-persist): Docstring fix: document the 'history value
Bastien Guerry [Fri, 28 Dec 2012 10:06:57 +0000]
org-clock.el (org-clock-persist): Docstring fix: document the 'history value

* org-clock.el (org-clock-persist): Docstring fix: document
the 'history value.

Thanks to Ivan Andrus for reporting this.

2 years agoorg.el (org-insert-link): Fix bug when inserting links to headlines containing the...
Bastien Guerry [Fri, 28 Dec 2012 10:03:58 +0000]
org.el (org-insert-link): Fix bug when inserting links to headlines containing the ">" character

* org.el (org-insert-link): Fix bug when inserting links to
headlines containing the ">" character.

Thanks to William Léchelle for reporting this.

2 years agoorg-crypt.el (org-at-encrypted-entry-p): Fix search boundary
Bastien Guerry [Tue, 25 Dec 2012 02:29:17 +0000]
org-crypt.el (org-at-encrypted-entry-p): Fix search boundary

* org-crypt.el (org-at-encrypted-entry-p): Fix search
boundary.

Thanks to Samuel Wales for reporting this bug.

2 years agoMerge branch 'maint-fixes' into maint
Bastien Guerry [Mon, 24 Dec 2012 13:01:25 +0000]
Merge branch 'maint-fixes' into maint

2 years agoBackwards compatibility: don't defalias special forms
Achim Gratz [Wed, 19 Dec 2012 18:35:19 +0000]
Backwards compatibility: don't defalias special forms

* lisp/org-compat.el (org-condition-case-unless-debug): Do not use
  defalias for special forms, the Emacs 22 byte-compiler does not
  recognize them correctly when compiling macros.  Use a macro instead
  and rely on macro expansion.  That however makes the decision at
  compile time, which should be acceptable in this case since it only
  affects debugging.

2 years agoNew compatibility function `org-delete-directory'
Bastien Guerry [Mon, 24 Dec 2012 12:51:48 +0000]
New compatibility function `org-delete-directory'

* org-compat.el (org-delete-directory): New compatibility
function for Emacs 22, where `delete-directory' does not
support recursive deletion.

* org-odt.el (org-odt-cleanup-xml-buffers): Use the new
compatibility function.

Thanks to Achim and Jambunathan for suggesting this.

2 years agoFix regression: allow editing HTML and LaTeX source blocks again
Bastien Guerry [Mon, 24 Dec 2012 00:25:33 +0000]
Fix regression: allow editing HTML and LaTeX source blocks again

* org.el (org-table-map-tables): Fix allowed blocks.
(org-edit-special): Fix regression: allow editing HTML and
LaTeX source blocks again.

* org-src.el (org-edit-src-code): Ditto.

Thanks to Nicolas Richard and Bernt Hansen for reporting bugs
in this area.

2 years agoMerge branch 'maint-fixes' into maint
Bastien Guerry [Mon, 24 Dec 2012 00:14:42 +0000]
Merge branch 'maint-fixes' into maint

2 years agoorg.el (org-nonsticky-props): Add `htmlize-link'
Bastien Guerry [Sun, 23 Dec 2012 20:17:43 +0000]
org.el (org-nonsticky-props): Add `htmlize-link'

* org.el (org-nonsticky-props): Add `htmlize-link'.

Thanks to Samuel Wales for reporting a bug related to this.

2 years agoorg.el (org-nonsticky-props): Add `htmlize-link'
Bastien Guerry [Sun, 23 Dec 2012 20:17:43 +0000]
org.el (org-nonsticky-props): Add `htmlize-link'

* org.el (org-nonsticky-props): Add `htmlize-link'.

Thanks to Samuel Wales for reporting a bug related to this.

2 years agoDon't allow special edit in verbatim blocks.
Bastien Guerry [Sun, 23 Dec 2012 16:54:42 +0000]
Don't allow special edit in verbatim blocks.

* org.el (org-edit-special): Don't edit in verbatim blocks.

* org-src.el (org-edit-src-code): Ditto.

2 years agoorg-table.el: Use `org-delete-backward-char' which doesn't modify match data anymore
Bastien Guerry [Sun, 23 Dec 2012 16:31:41 +0000]
org-table.el: Use `org-delete-backward-char' which doesn't modify match data anymore

* org-table.el (org-table-fedit-lisp-indent)
(orgtbl-self-insert-command): Use `org-delete-backward-char'
instead of `backward-delete-char'.

* org.el (org-delete-backward-char, org-delete-char): Save
match data.

2 years agoRevert "Save match data in `org-delete-backward-char' and `org-delete-char'"
Bastien Guerry [Sun, 23 Dec 2012 16:26:45 +0000]
Revert "Save match data in `org-delete-backward-char' and `org-delete-char'"

This reverts commit c800836d7cc22a3c5d9e3d6d2a992641605e5e29.

2 years agoMerge branch 'maint-fixes' into maint
Bastien Guerry [Sun, 23 Dec 2012 16:20:38 +0000]
Merge branch 'maint-fixes' into maint

2 years agoorg-src.el (org-edit-src-code): Fix another bug about editing special blocks "example...
Bastien Guerry [Sun, 23 Dec 2012 16:20:27 +0000]
org-src.el (org-edit-src-code): Fix another bug about editing special blocks "example" and "verbatim"

* org-src.el (org-edit-src-code): Fix another bug about
editing special blocks "example" and "verbatim".

2 years agoorg.el (org-edit-special): Fix bug about editing special blocks "example" and "verbatim"
Bastien Guerry [Sun, 23 Dec 2012 16:18:06 +0000]
org.el (org-edit-special): Fix bug about editing special blocks "example" and "verbatim"

* org.el (org-structure-template-alist): Add verbatim.
(org-edit-special): Fix bug about editing special blocks
"example" and "verbatim".