org-mode.git
20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

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

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

20 months 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.

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

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

20 months 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.

20 months 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.

20 months 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.

20 months 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

20 months 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

20 months 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.

20 months 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'.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

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

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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´.

20 months 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).

20 months 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´.

20 months 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

20 months 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.

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

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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

20 months 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.

20 months 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.

20 months 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'.

20 months 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

20 months 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.

20 months 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

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

20 months 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.

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

Happy new year!

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

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

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

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

21 months 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.

21 months 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.

21 months 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.

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

21 months 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.

21 months 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.

21 months 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.

21 months 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.

21 months 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.

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

21 months 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".

21 months 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".

21 months agoorg-odt.el: Fix Emacs Bug#13254
Jambunathan K [Sun, 23 Dec 2012 07:00:01 +0000]
org-odt.el: Fix Emacs Bug#13254

* lisp/org-odt.el (org-export-as-odt-batch): Init
`org-odt-zip-dir'.  Fix Emacs Bug#13254.

21 months agoorg-odt.el: Correctly format link to headlines that have description
Jambunathan K [Sat, 1 Dec 2012 05:59:42 +0000]
org-odt.el: Correctly format link to headlines that have description

* lisp/org-odt.el (org-odt-format-org-link): Add check for
presence of description in headline links.

Fix
http://lists.gnu.org/archive/html/emacs-orgmode/2012-11/msg00841.html

21 months agoSave match data in `org-delete-backward-char' and `org-delete-char'
Bastien Guerry [Sun, 23 Dec 2012 11:30:40 +0000]
Save match data in `org-delete-backward-char' and `org-delete-char'

* org.el (org-delete-backward-char, org-delete-char): Save
match data (`delete-backward-char' and `delete-char' don't.)
(org-enable-table-editor, org-insert-heading)
(org-remove-timestamp-with-keyword, org-self-insert-command):
Use `delete-backward-char' instead of `backward-delete-char'.

* org-table.el (org-table-fedit-lisp-indent)
(orgtbl-self-insert-command): Ditto.

* org-latex.el (org-export-latex-subcontent): Ditto.

* org-clock.el (org-clocktable-write-default): Ditto.

* org-ascii.el (org-export-ascii-preprocess): Ditto.

Thanks to Vegard Vesterheim for raising this issue and proposing a patch,
and to Carsten for pointing at the root of the problem.

21 months agoorg-export-generic.el: Small code clean-up
Bastien Guerry [Sun, 23 Dec 2012 11:23:02 +0000]
org-export-generic.el: Small code clean-up

* org-export-generic.el (org-export-generic-preprocess): Use
`delete-backward-char' instead of `backward-delete-char'.
(org-generic-alist, def-org-export-generic-keyword)
(org-export-generic-remember-section, org-export-generic)
(org-export-generic-format, org-export-generic-header)
(org-generic-level-start): Remove dangling parentheses,
fix indentation.

21 months agoorgguide.texi (Multi-state workflows, Agenda commands): Fix missing dashes
Bastien Guerry [Sat, 22 Dec 2012 22:30:59 +0000]
orgguide.texi (Multi-state workflows, Agenda commands): Fix missing dashes

* orgguide.texi (Multi-state workflows, Agenda commands): Fix
missing dashes.

21 months agoFix more instances of missing dashes.
Bastien Guerry [Sat, 22 Dec 2012 22:29:03 +0000]
Fix more instances of missing dashes.

21 months agoorg.texi and orgguide.texi: Hyphen and dash fixes.
Bastien Guerry [Sat, 22 Dec 2012 20:30:27 +0000]
org.texi and orgguide.texi: Hyphen and dash fixes.

See revno 111060 by Paul Eggert from the emacs-24 bzr branch.

21 months agoorg.el (org-todo): Ignore the comment string when changing a TODO state
Bastien Guerry [Sat, 22 Dec 2012 19:16:17 +0000]
org.el (org-todo): Ignore the comment string when changing a TODO state

* org.el (org-todo): Ignore the comment string when changing
the TODO state of a headline.

Thanks to Samuel Wales for reporting this.

21 months agoWhen pasting a copied subtree, respect the whitelines before and after
Sebastien Vauban [Thu, 1 Nov 2012 12:04:19 +0000]
When pasting a copied subtree, respect the whitelines before and after

* org.el (org-copy-subtree, org-paste-subtree): Fix whitespace
handling when copying/pasting a subtree.

21 months agoRe-apply commit 27bcf9a together with a workaround for `process-file'.
Bastien Guerry [Fri, 21 Dec 2012 08:45:53 +0000]
Re-apply commit 27bcf9a together with a workaround for `process-file'.

Thanks to Michael Albinus for hunting this bug and for providing
this workaround.

21 months agotest-org-src.el (test-org-src/blank-line-block): Fix test
Bastien Guerry [Fri, 21 Dec 2012 08:36:20 +0000]
test-org-src.el (test-org-src/blank-line-block): Fix test

* test-org-src.el (test-org-src/blank-line-block): Fix test.