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


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

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
(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

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
(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

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

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


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


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

* 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

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

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

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

* 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

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

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

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


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

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

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

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

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

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

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

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

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

2 years agoorg.el (org-edit-special): Fix docstring.
Bastien Guerry [Fri, 21 Dec 2012 08:32:38 +0000]
org.el (org-edit-special): Fix docstring.

* org.el (org-edit-special): Fix docstring.
(org-in-src-block-p): Small enhancement.

2 years agoRevert "Backport revno 111277 from Emacs trunk."
Bastien Guerry [Fri, 21 Dec 2012 07:50:26 +0000]
Revert "Backport revno 111277 from Emacs trunk."

This reverts commit 27bcf9a70b1137c88cf856719ab6fd74297286ef.

2 years agoFix compiler warning.
Bastien Guerry [Thu, 20 Dec 2012 18:01:17 +0000]
Fix compiler warning.

2 years agoUpdate the tests wrt previous commit.
Bastien Guerry [Thu, 20 Dec 2012 17:54:57 +0000]
Update the tests wrt previous commit.

* test-org-exp.el (test-org-exp/stripping-commas): Update the
list of args for org-export-as-* functions.

* test-ob-lob.el (test-ob-lob/export-lob-lines): Ditto.

* test-ob-exp.el (ob-exp/noweb-on-export)
(ob-exp/exports-both, ob-exp/mixed-blocks-with-exports-both)
(ob-exp/export-from-a-temp-buffer): Ditto.

2 years agoUnify the list of args for org-export-as-* functions.
Bastien Guerry [Thu, 20 Dec 2012 17:54:33 +0000]
Unify the list of args for org-export-as-* functions.

* org-publish.el (org-publish-org-to): Call `org-export-as-*'
functions with the correct list of arguments.

* org-html.el (org-export-as-html): Delete obsolete arg
(org-export-as-html-and-open, org-export-as-html-batch)
(org-export-region-as-html): Don't use obsolete arg.

* org-ascii.el (org-export-as-ascii): Delete obsolete arg
(org-export-as-ascii-to-buffer): Don't use obsolete arg.

2 years agoorg.el: Prevent link activation in source code blocks
Bastien Guerry [Thu, 20 Dec 2012 15:34:27 +0000]
org.el: Prevent link activation in source code blocks

* org.el (org-in-fixed-width-region-p): Save match data.
(org-in-src-block-p): Use case-folding for searching the block
(org-activate-plain-links, org-activate-angle-links)
(org-activate-bracket-links): Prevent link activation in
source code blocks.

Thanks to Sébastien Vauban for reporting a related issue.

2 years agoRevert "org.el (org-set-font-lock-defaults): Don't activate links in source code...
Bastien Guerry [Thu, 20 Dec 2012 15:15:54 +0000]
Revert "org.el (org-set-font-lock-defaults): Don't activate links in source code blocks and fixed-width regions"

This reverts commit f983cf172939c1885e4808fe695785eb7dd763d6.

2 years agoorg-odt.el: Fix Emacs bug #13197.
Bastien Guerry [Thu, 20 Dec 2012 15:06:25 +0000]
org-odt.el: Fix Emacs bug #13197.

* org-odt.el (org-odt-cleanup-xml-buffers): Fix Emacs
Bug#13197 by setting the correct buffer before marking it
unmodified to silently kill him.

Thanks to Drew Adams for reporting this and to Jambunathan for
offering to fix it.

2 years agoBackport revno 111277 from Emacs trunk.
Michael Albinus [Thu, 20 Dec 2012 14:49:19 +0000]
Backport revno 111277 from Emacs trunk.

* ob.el (org-babel-temp-file): Fix setting of
`temporary-file-directory' on remote hosts.

* ob-eval.el (org-babel-shell-command-on-region): Use
`process-file' instead of `call-process-region'.  The latter one
does not work on remote hosts.