org-mode.git
23 months agoorg-compat.el: New compatibility function `org-random' release_7.9.1
Bastien Guerry [Mon, 3 Sep 2012 11:16:52 +0000]
org-compat.el: New compatibility function `org-random'

* org-compat.el (org-random): New compatibility function.

* org-id.el (org-id-uuid): Use it.

23 months agomk/eldo.el: Small fix
Bastien Guerry [Mon, 3 Sep 2012 11:00:13 +0000]
mk/eldo.el: Small fix

23 months agoDelete utils/x11idle.c
Bastien Guerry [Mon, 3 Sep 2012 10:49:55 +0000]
Delete utils/x11idle.c

23 months agomk/make_emacs_changelog: Small fix
Bastien Guerry [Mon, 3 Sep 2012 10:47:02 +0000]
mk/make_emacs_changelog: Small fix

23 months agoorg.texi (History and Acknowledgments): Add my own acknowledgments
Bastien Guerry [Mon, 3 Sep 2012 10:37:10 +0000]
org.texi (History and Acknowledgments): Add my own acknowledgments

* org.texi (History and Acknowledgments): Add my own acknowledgments.

23 months agoUpdate the README* files.
Bastien Guerry [Mon, 3 Sep 2012 09:58:06 +0000]
Update the README* files.

23 months agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Mon, 3 Sep 2012 09:19:14 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

23 months agoetc/ORG-NEWS: Update to reflect changes in 7.9.1
Bastien Guerry [Mon, 3 Sep 2012 09:18:55 +0000]
etc/ORG-NEWS: Update to reflect changes in 7.9.1

23 months agoMake sure fill prefix is computed from beginning of line
Nicolas Goaziou [Sun, 2 Sep 2012 13:01:00 +0000]
Make sure fill prefix is computed from beginning of line

* lisp/org.el (org-adaptive-fill-function): Make sure fill prefix is
  computed from beginning of line.

23 months agoorg-exp.el: Fix export of subtree with HTML_CONTAINER_CLASS
T.F. Torrey [Sun, 2 Sep 2012 11:08:19 +0000]
org-exp.el: Fix export of subtree with HTML_CONTAINER_CLASS

* org-exp.el (org-export-remember-html-container-classes):
Allow exporting a single subtree with HTML_CONTAINER_CLASS
property.

TINYCHANGE

23 months ago`k' now calls org-agenda-capture from agenda. Also add `org-capture-use-agenda-date...
Bastien Guerry [Sun, 2 Sep 2012 10:52:38 +0000]
`k' now calls org-agenda-capture from agenda.  Also add `org-capture-use-agenda-date' option.

* org-capture.el (org-capture-use-agenda-date): New option.
(org-capture): Use it.

* org-agenda.el (org-agenda-capture): New command.
(org-agenda-mode-map): Bind it to `k'.
(org-agenda-menu): Add it to the menu.

* org.texi (Agenda commands): Document the new command and the
new option.

Thanks to Eric Abrahamsen who suggested this change, along with
other merging about bulk actions.

23 months agoorg-capture.el (org-capture): Update docstring
Bastien Guerry [Sun, 2 Sep 2012 10:30:56 +0000]
org-capture.el (org-capture): Update docstring

* org-capture.el (org-capture): Update docstring.

23 months agoorg-capture.el: When capturing from an agenda buffer use the cursor date at the defau...
Bastien Guerry [Sun, 2 Sep 2012 10:29:59 +0000]
org-capture.el: When capturing from an agenda buffer use the cursor date at the default date

* org-capture.el (org-capture): When called from an agenda
buffer, use the cursor date at the default date.

23 months agoorg-agenda.el (org-agenda-bulk-action): Use the let-bound `entries' instead the variable
Bastien Guerry [Sun, 2 Sep 2012 10:02:13 +0000]
org-agenda.el (org-agenda-bulk-action): Use the let-bound `entries' instead the variable

* org-agenda.el (org-agenda-bulk-action): Use the let-bound
`entries' instead the variable.

23 months agoorg-agenda.el: Fix bug: don't remove persistent marks too early
Bastien Guerry [Sun, 2 Sep 2012 09:26:27 +0000]
org-agenda.el: Fix bug: don't remove persistent marks too early

* org-agenda.el (org-agenda-bulk-action): Fix bug: don't
remove persistent marks too early.

23 months agoorg-agenda.el (org-agenda-bulk-action): Use the date at point
Bastien Guerry [Sun, 2 Sep 2012 09:24:16 +0000]
org-agenda.el  (org-agenda-bulk-action): Use the date at point

* org-agenda.el (org-agenda-bulk-action): Possibly use the day
at point to reset the scheduled or deadline cookie.  On date
headers, use it without prompting the user.  On an item, use
the item's date as the default prompt for `org-read-date'.

23 months agoorg.el (org-read-date): Docstring fix
Bastien Guerry [Sat, 1 Sep 2012 13:04:23 +0000]
org.el (org-read-date): Docstring fix

* org.el (org-read-date): Docstring fix.

23 months agoorg-agenda.el (org-agenda-bulk-action): Reorder possible actions in the message
Bastien Guerry [Sun, 2 Sep 2012 09:21:13 +0000]
org-agenda.el (org-agenda-bulk-action): Reorder possible actions in the message

* org-agenda.el (org-agenda-bulk-action): Reorder possible
actions in the message.

23 months agoorg-agenda.el: Delete `org-agenda-action'
Bastien Guerry [Sun, 2 Sep 2012 09:20:01 +0000]
org-agenda.el: Delete `org-agenda-action'

* org-agenda.el (org-agenda-action, org-agenda-do-action):
Delete.
(org-agenda-mode-map): Delete related keys.

* org.texi (Agenda commands): Delete `org-agenda-action'
section.
(Agenda commands): Reorder.  Document `*' to toggle persistent
marks.

23 months agoorg-agenda.el (org-agenda-menu): Fix a keybinding
Bastien Guerry [Sat, 1 Sep 2012 08:53:47 +0000]
org-agenda.el (org-agenda-menu): Fix a keybinding

* org-agenda.el (org-agenda-menu): Fix a keybinding.

23 months agoob-tangle: Fix bug when heading has no text
Michael Brand [Sat, 1 Sep 2012 13:38:09 +0000]
ob-tangle: Fix bug when heading has no text

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Use dummy
string when heading has no text.

2 years agoorg-element: Fix section parsing
Nicolas Goaziou [Sat, 1 Sep 2012 20:52:43 +0000]
org-element: Fix section parsing

* lisp/org-element.el (org-element-section-parser): Make sure section
  cannot contain an headline.
(org-element--current-element): Fix bug requiring to parse a quote
section even when point is at an headline.
* testing/lisp/test-org-element.el: Add test.

2 years agoRemove occasional spurious space character when auto-filling
Nicolas Goaziou [Sat, 1 Sep 2012 19:38:18 +0000]
Remove occasional spurious space character when auto-filling

* lisp/org.el (org-adaptive-fill-function): Remove occasional spurious
  space character when auto-filling.

2 years agoorg-export-odt-preferred-output-format: Mark string values as safe
Jambunathan K [Sat, 1 Sep 2012 18:29:21 +0000]
org-export-odt-preferred-output-format: Mark string values as safe

2 years agoorg-colview.el: Fix several bugs
Bastien Guerry [Fri, 31 Aug 2012 05:56:58 +0000]
org-colview.el: Fix several bugs

* org-colview.el (org-columns-goto-top-level): Correctly move
the marker `org-columns-top-level-marker'.
(org-agenda-columns): Don't set
`org-agenda-overriding-columns-format' as a buffer variable,
as we only need it dynamically.
(org-agenda-colview-summarize): Fix a bug in returning the
match string.

(The problem with `org-columns-goto-top-level' was introduced
by the commit 8d9e83.)

Thanks to Hannes Schulz and Jacob Riko who reported this.

2 years agoorg-agenda.el: Fix ̀org-agenda-goto-date' again
Bastien Guerry [Thu, 30 Aug 2012 11:23:29 +0000]
org-agenda.el: Fix ̀org-agenda-goto-date' again

* org-agenda.el (org-agenda-span-to-ndays): Make the second
argument `starting-day' optional.
(org-agenda-goto-date): Keep parameters of custom agendas.

2 years agoorg-agenda.el: Fix compiler warning
Bastien Guerry [Thu, 30 Aug 2012 10:11:57 +0000]
org-agenda.el: Fix compiler warning

2 years agoorg-agenda.el: Fix another bug with `org-agenda-goto-date' with sticky agendas
Bastien Guerry [Thu, 30 Aug 2012 09:52:16 +0000]
org-agenda.el: Fix another bug with `org-agenda-goto-date' with sticky agendas

* org-agenda.el (org-agenda-list): Allow setting the agenda
buffer name through a temporary variable.
(org-agenda-buffer-tmp-name): New variable to temporary store
the agenda buffer name.

Thanks to Rainer Stengele for reporting this bug.

2 years agoorg-agenda.el (org-agenda-goto-date): Fix behavior when using sticky agendas
Bastien Guerry [Thu, 30 Aug 2012 08:56:35 +0000]
org-agenda.el (org-agenda-goto-date): Fix behavior when using sticky agendas

* org-agenda.el (org-agenda-goto-date): Fix behavior when
using sticky agendas.

Thanks to Charles Philip Chan and Rainer Stengele who reported
problems about this.

2 years agoXEmacs: Make call to `fill-paragraph' work on XEmacs.
Mike Sperber [Sat, 25 Aug 2012 15:36:18 +0000]
XEmacs: Make call to `fill-paragraph' work on XEmacs.

2012-08-25  Michael Sperber  <mike@xemacs.org>

* org.el (org-fill-paragraph): Pass optional argument to
`fill-paragraph' to fix compatibility with XEmacs.

2 years agoorg-element.el: Remove illegal t clause in case
Mats Lidell [Sun, 26 Aug 2012 20:24:15 +0000]
org-element.el: Remove illegal t clause in case

* lisp/org-element.el (org-element-paragraph-separate): Remove
redundant and misplaced t clause in case.

TINYCHANGE

2 years agoXEmacs: Default `org-self-insert-cluster-for-undo' also on XEmacs.
Mike Sperber [Sat, 25 Aug 2012 15:35:35 +0000]
XEmacs: Default `org-self-insert-cluster-for-undo' also on XEmacs.

2012-08-25  Michael Sperber  <mike@xemacs.org>

* org.el (org-self-insert-cluster-for-undo): Default
`org-self-insert-cluster-for-undo' also on XEmacs.

2 years agoorg-agenda.el: Unconditionnally set ̀org-compile-prefix-format'
Bastien Guerry [Thu, 30 Aug 2012 08:10:18 +0000]
org-agenda.el: Unconditionnally set ̀org-compile-prefix-format'

* org-agenda.el (org-diary): Don't check whether there is an
agenda buffer when trying to compile the prefix format.
(org-compile-prefix-format): Check if there is an agenda
buffer.  If not, use the current buffer.

2 years agoorg-agenda.el: Fix bug in `org-agenda-get-day-entries'
Bastien Guerry [Thu, 30 Aug 2012 07:52:03 +0000]
org-agenda.el: Fix bug in `org-agenda-get-day-entries'

* org-agenda.el (org-agenda-get-day-entries): Set the agenda
buffer inconditionnally.

For example, when `org-agenda-get-day-entries' is called
through ̀org-diary', we need to make sure `org-agenda-buffer'
is set, otherwise org-diary triggers an error.

2 years agoob.el (org-babel-named-src-block-regexp-for-name): Generate a more general regexp
Bastien Guerry [Thu, 30 Aug 2012 06:58:02 +0000]
ob.el (org-babel-named-src-block-regexp-for-name): Generate a more general regexp

* ob.el (org-babel-named-src-block-regexp-for-name): Generate
a more general regexp.

Thanks to Loris Bennett for reporting this, and to Nicolas Girard for
pointing out what was the problem precisely.

2 years agoob.el: Find a src block head correctly when #+header(s) is before #+name
Bastien Guerry [Thu, 30 Aug 2012 06:45:50 +0000]
ob.el: Find a src block head correctly when #+header(s) is before #+name

* ob.el (org-babel-where-is-src-block-head): Find a src block
head correctly when #+header(s) is before #+name.

2 years agoClean-up variables declaration
Bastien Guerry [Thu, 30 Aug 2012 04:39:35 +0000]
Clean-up variables declaration

Remove some duplicate declarations.
When the variable is declared in another file,
use (defvar [var]).  When it is dynamically bound
in this file (defvar [var]) is enough, but mixed
installations make (defvar [var] [val]) safer.

2 years agoorg-agenda.el: Rename org-finalize-agenda* to org-agenda-finalize*
Bastien Guerry [Thu, 30 Aug 2012 04:24:22 +0000]
org-agenda.el: Rename org-finalize-agenda* to org-agenda-finalize*

* org-agenda.el (org-agenda-finalize-hook)
(org-agenda-finalize, org-agenda-finalize-entries): Rename
from org-finalize-agenda-*.
(org-agenda-run-series, org-agenda-finalize, org-timeline)
(org-agenda-list, org-search-view, org-todo-list)
(org-tags-view, org-diary, org-agenda-finalize-entries)
(org-agenda-change-all-lines): Use the new names.

2 years agoFix: org-e-html-special-block had not been converted from LaTeX version
Sean O'Halpin [Wed, 29 Aug 2012 18:17:52 +0000]
Fix: org-e-html-special-block had not been converted from LaTeX version

* contrib/lisp/org-e-html.el (org-e-html-special-block): convert LaTeX
markup to HTML

This function had not been modified from its org-e-latex-special-block original
so with #+BEGIN_ORG for example you would get \begin{org}...\end{org}
in the output instead of <div class="org">...</div>.

TINYCHANGE

2 years agoorg-agenda.el: Fix initialization of some variables
Bastien Guerry [Wed, 29 Aug 2012 18:15:47 +0000]
org-agenda.el: Fix initialization of some variables

2 years agoorg-timer.el: Check `org-timer-display' in `org-timer-set-mode-line' when value is...
Muchenxuan Tong [Wed, 29 Aug 2012 17:54:44 +0000]
org-timer.el: Check `org-timer-display' in `org-timer-set-mode-line' when value is 'off

* lisp/org-timer.el (org-timer-set-mode-line): Check
`org-timer-display' when value is 'off.

This solves the error of (org-timer-set-mode-line 'off) when
`org-timer-display' is 'mode-line. In this case `frame-title-format'
may not be a list.

TINYCHANGE

2 years agoFix org-clock evaluation startup hang on Windows
Stuart Hickinbottom [Wed, 29 Aug 2012 11:25:39 +0000]
Fix org-clock evaluation startup hang on Windows

* lisp/org-clock.el (org-x11idle-exists-p): Only shell out when running
on X.

The definition of this variable currently executes "command" via the
shell during evaluation, irrespective of the platform on which
Org-mode is running. Unfortunately, on Windows, this matches the
"command.com" NT Virtual DOS Machine executable and so this gets
launched, but this is a shell and therefore sits there waiting for
user input and never returns. The net result is that Emacs will hang
on Windows when evaluating org-clock.el with the ntdvm.exe process
spinning at 100%.

The simple fix is to check that the platform is X before trying to
deal with the "x11idle" external process.

TINYCHANGE

2 years agoorg-agenda.el: Rewrite of the redo/change/append commands
Bastien Guerry [Wed, 29 Aug 2012 17:18:05 +0000]
org-agenda.el: Rewrite of the redo/change/append commands

* org-agenda.el (org-agenda-local-vars): Remove
̀org-agenda-last-arguments' from the list of local variables.
(org-agenda-mode-map): `g' does the same than `r' in buffers
with only one agenda view, but its behavior differs when there
are several views.  In manually appended agendas (with `A'),
`g' displays only the agenda under the point.  With multiple
agenda blocks, `g' reinitializes the view by discarding any
temporary changes (e.g. with ̀f' or `w'), while ̀r' keeps those
temporary changes for the agenda view under the point.
(org-agenda-run-series, org-agenda-redo): Implement the above
changes.
(org-agenda-mark-header-line): Don't set useless properties.
(org-agenda-list, org-todo-only, org-search-view)
(org-todo-list, org-tags-view, org-agenda-list-stuck-projects)
(org-agenda-manipulate-query, org-agenda-goto-today)
(org-agenda-later, org-agenda-change-time-span): Use text
properties for storing the last command and the last arguments
for each agenda block.
(org-unhighlight-once): Delete.

2 years agoorg-agenda.el (org-agenda-append-agenda): Fit agenda window to buffer
Bastien Guerry [Tue, 28 Aug 2012 23:05:34 +0000]
org-agenda.el (org-agenda-append-agenda): Fit agenda window to buffer

* org-agenda.el (org-agenda-append-agenda): Fit agenda window
to buffer.

2 years agoorg-agenda.el: Bugfix: correctly check whether we are in org-agenda-mode
Bastien Guerry [Tue, 28 Aug 2012 16:46:57 +0000]
org-agenda.el: Bugfix: correctly check whether we are in org-agenda-mode

* org-agenda.el (org-agenda-append-agenda): Bugfix: correctly
check whether we are in org-agenda-mode.

2 years agoorg-agenda.el: Fix name of `org-agenda-pre-window-conf'
Bastien Guerry [Tue, 28 Aug 2012 16:29:18 +0000]
org-agenda.el: Fix name of `org-agenda-pre-window-conf'

* org-agenda.el (org-agenda-pre-window-conf): Rename from
`org-pre-agenda-window-conf'.
(org-agenda-local-vars, org-agenda-prepare-window)
(org-agenda-Quit, org-agenda-quit): Use the new name.

2 years agoorg-agenda.el: Fix compiler warnings
Bastien Guerry [Tue, 28 Aug 2012 16:26:10 +0000]
org-agenda.el: Fix compiler warnings

* org-agenda.el (org-keys, org-match): New variable,
dynamically scoped in `org-agenda'.
(org-agenda, org-agenda-list, org-search-view, org-todo-list)
(org-tags-view): Use the new variables.
(org-batch-store-agenda-views): Let-bind `match'.

2 years agoorg-agenda.el: Fix one byte-compiler warning
Bastien Guerry [Tue, 28 Aug 2012 13:10:44 +0000]
org-agenda.el: Fix one byte-compiler warning

2 years agoorg-agenda.el: `org-search-view', `org-todo-list' and `org-tags-view' use sticky...
Bastien Guerry [Tue, 28 Aug 2012 13:06:47 +0000]
org-agenda.el: `org-search-view', `org-todo-list' and `org-tags-view' use sticky agenda correctly

* org-agenda.el (org-search-view, org-todo-list)
(org-tags-view): Do not let `org-agenda-sticky' prevent the
use of these functions programmatically.  Also use the sticky
agenda function correctly.

2 years agoorg-agenda.el: Set `org-agenda-buffer-name' correctly in `org-agenda'
Bastien Guerry [Tue, 28 Aug 2012 12:37:33 +0000]
org-agenda.el: Set `org-agenda-buffer-name' correctly in `org-agenda'

* org-agenda.el (org-agenda): Set `org-agenda-buffer-name'
correctly with sticky agendas and non-custom commands.

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Tue, 28 Aug 2012 11:39:09 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agoorg-agenda.el (org-agenda-fit-window-to-buffer): Rename from `org-fit-agenda-window'
Bastien Guerry [Tue, 28 Aug 2012 11:36:43 +0000]
org-agenda.el (org-agenda-fit-window-to-buffer): Rename from `org-fit-agenda-window'

* org-agenda.el (org-agenda-fit-window-to-buffer): Rename from
`org-fit-agenda-window'.
(org-agenda-run-series, org-agenda-prepare, org-agenda-list)
(org-search-view, org-todo-list, org-tags-view): Use the new
name.

2 years agoorg-agenda.el (org-agenda-prepare): Let `throw' display an error
Bastien Guerry [Tue, 28 Aug 2012 11:31:52 +0000]
org-agenda.el (org-agenda-prepare): Let `throw' display an error

* org-agenda.el (org-agenda-prepare): Let `throw' display an
error.

2 years agoorg-agenda.el: Fix bug in `org-agenda-list'
Bastien Guerry [Tue, 28 Aug 2012 11:29:37 +0000]
org-agenda.el: Fix bug in `org-agenda-list'

* org-agenda.el (org-agenda-list): Fix bug: don't throw an
error when called from programs as (org-agenda-list).

Thanks to Rainer Thiel for reporting this bug.

2 years agoExternalize filling and comments initializers
Nicolas Goaziou [Tue, 28 Aug 2012 11:27:58 +0000]
Externalize filling and comments initializers

* lisp/org.el (org-mode): Call external initalizers.  Now both filling
  code and comments code have their own independant part in org.el.
(org-setup-filling): Renamed from `org-set-autofill-regexps'.
(org-setup-comments-handling): New function.

2 years agoorg-agenda.el (org-todo-list): Make arg optional
Bastien Guerry [Tue, 28 Aug 2012 11:17:29 +0000]
org-agenda.el (org-todo-list): Make arg optional

* org-agenda.el (org-todo-list): Make arg optional.

2 years agodoc/org.texi: Fix typos in the manual
Bastien Guerry [Tue, 28 Aug 2012 11:14:46 +0000]
doc/org.texi: Fix typos in the manual

* org.texi (Agenda dispatcher): Mention
`org-toggle-agenda-sticky'.
(Agenda commands, Exporting Agenda Views): Fix typo.

2 years agoImprove filling
Nicolas Goaziou [Tue, 28 Aug 2012 11:12:09 +0000]
Improve filling

* lisp/org.el (org-fill-paragraph): Refine filling in comments and in
  paragraphs.  Allow commented blank lines.  Take into consideration
  the indentation of the second line of the paragraph being filled.
(org-comment-or-uncomment-region): Rewrite function.  Now comment
region at a fixed column: the minimal indentation of the region.
(org-fill-context-prefix): Rename function into
`org-adaptive-fill-function'. Also, In a paragraph, choose the same
prefix as the current line.

2 years agoCode clean-up: rename some agenda internals.
Bastien Guerry [Tue, 28 Aug 2012 11:11:12 +0000]
Code clean-up: rename some agenda internals.

* org.el (org-agenda-prepare-buffers): Rename from
`org-prepare-agenda-buffers'.
(org-match-sparse-tree, org-map-entries): Use the new names.

* org-agenda.el (org-agenda-prepare-window): Rename from
`org-prepare-agenda-window'.
(org-agenda-prepare): Rename from `org-prepare-agenda'.
(org-agenda-run-series, org-agenda-prepare, org-timeline)
(org-agenda-list, org-search-view, org-todo-list)
(org-tags-view, org-agenda-list-stuck-projects, org-diary)
(org-agenda-to-appt): Use the new names.

* org-mobile.el (org-mobile-create-index-file): Ditto.

* org-icalendar.el (org-export-icalendar): Ditto.

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

* org2rem.el (org2rem): Ditto.

2 years agoorg-agenda.el: Use the current command's match to set the buffer name
Bastien Guerry [Tue, 28 Aug 2012 11:02:01 +0000]
org-agenda.el: Use the current command's match to set the buffer name

* org-agenda.el (org-agenda): In sticky agendas, use the
current command's match to set the buffer name.  This gives
more information to the user and allows to distinguish various
agendas triggered by the same key.
(org-batch-store-agenda-views): Handle the new sticky agenda
buffer name.

2 years agoorg-agenda.el: Use `S' as a key for searching words in TODO-only entries
Bastien Guerry [Tue, 28 Aug 2012 10:35:05 +0000]
org-agenda.el: Use `S' as a key for searching words in TODO-only entries

* org-agenda.el (org-agenda)
(org-agenda-get-restriction-and-command): Use `S' as a key for
searching words in TODO-only entries.

2 years agoorg-agenda.el: Fit agenda window when displaying a sticky agenda
Bastien Guerry [Mon, 27 Aug 2012 19:24:23 +0000]
org-agenda.el: Fit agenda window when displaying a sticky agenda

* org-agenda.el (org-prepare-agenda): Fit agenda window when
displaying a sticky agenda.

2 years agoMakefile: show ORG_MAKE_DOC in `config´
Achim Gratz [Mon, 27 Aug 2012 17:14:39 +0000]
Makefile: show ORG_MAKE_DOC in `config´

* mk/targets.mk: Show ORG_MAKE_DOC in `config´.

* .gitignore: Add doc/org-version.inc.

2 years agoserver.mk: shrink ELPA archive, correct documentation dependencies
Achim Gratz [Mon, 27 Aug 2012 17:12:36 +0000]
server.mk: shrink ELPA archive, correct documentation dependencies

* mk/server.mk: Drop some documentation files from ELPA archive.
  Correct dependencies for documentation, ORG_MAKE_DOC can not be used
  as a per-target definition because it has been expanded before.
  Directly give the dependencies instead.

2 years agoorg-table.el: Switch back to the old default for `org-table-number-regexp'
Bastien Guerry [Mon, 27 Aug 2012 16:03:05 +0000]
org-table.el: Switch back to the old default for `org-table-number-regexp'

* org-table.el (org-table-number-regexp): Allow the user to
set it to a new regexp, which allows commas as decimal mark.
The default is to not use this setting, but the one before
commit 7ff8c1, which has ben reverted.

See the discussion here:
http://thread.gmane.org/gmane.emacs.orgmode/59389

2 years agoRevert "org-table: Accept comma as a decimal mark to represent numbers"
Bastien Guerry [Mon, 27 Aug 2012 15:55:18 +0000]
Revert "org-table: Accept comma as a decimal mark to represent numbers"

This reverts commit 7ff8c166e663872e4c1dd8c33771519800b3a8e9.

2 years agoRevert "org-table.el: Minor docstring update"
Bastien Guerry [Mon, 27 Aug 2012 15:55:05 +0000]
Revert "org-table.el: Minor docstring update"

This reverts commit 5d5736425638c0dbad99c191c3dba54db57f1adc.

2 years agoFix bug when redoing multiple (agenda) blocks.
Bastien Guerry [Mon, 27 Aug 2012 15:52:22 +0000]
Fix bug when redoing multiple (agenda) blocks.

* org-agenda.el (org-agenda-overriding-cmd)
(org-agenda-multi-current-cmd)
(org-agenda-multi-overriding-arguments): New variables.
(org-agenda-run-series): `org-agenda-overriding-arguments'
defaults to the last agenda block arguments, so don't use it
globally.
(org-agenda-mark-header-line): Add properties needed so that
`org-agenda-overriding-arguments', `org-agenda-current-span'
and `org-agenda-last-arguments' can be set to their correct
contextual value.
(org-agenda-multi-back-to-pos): New variable.
(org-agenda-later): Retrieve `org-agenda-current-span' and
`org-agenda-overriding-arguments' from text properties.  Also
handle numeric span.
(org-agenda-later, org-agenda-change-time-span): Set
`org-agenda-overriding-cmd' so that we to take overriding
arguments into account for this command only.

The behavior for agenda blocks where there is only one (agenda)
command is not changed.  Changing the time span and redoing with
`g' will keep the new time span.  The behavior changed for blocks
where there are multiples (agenda) blocks.  In this case, redoing
will restore the initial view (before any time span change) and
changing the time span is done independantly for each block.

Thanks to Charles Philip Chan for reporting this nasty bug.

2 years agoFix commit 40084a55d16775519bf7960a7d583894fb606450
Nicolas Goaziou [Mon, 27 Aug 2012 10:11:50 +0000]
Fix commit 40084a55d16775519bf7960a7d583894fb606450

* lisp/org-exp.el (org-export-handle-comments): Also remove comments
  at column 0.

2 years agoorg-exp: Handle inline comments with new syntax
Nicolas Goaziou [Mon, 27 Aug 2012 09:21:52 +0000]
org-exp: Handle inline comments with new syntax

* lisp/org-exp.el (org-export-handle-comments): Handle inline comments
  with new syntax.

2 years agoAdd missing colon to #+INCLUDE in structure template
Nicolas Goaziou [Mon, 27 Aug 2012 07:11:01 +0000]
Add missing colon to #+INCLUDE in structure template

* lisp/org.el (org-structure-template-alist): Add missing colon to
  #+INCLUDE.

2 years agoFix org-backward-element with point on first element in section
Nicolas Goaziou [Sun, 26 Aug 2012 21:32:46 +0000]
Fix org-backward-element with point on first element in section

* lisp/org.el (org-backward-element): When called at the beginning of
  first element in section, the function shouldn't return an error but
  move point to headline or point-min instead.
* testing/lisp/test-org.el: Add test.

2 years agoMove `org-toggle-sticky-agenda' again and autoload it
Bastien Guerry [Sun, 26 Aug 2012 21:44:49 +0000]
Move `org-toggle-sticky-agenda' again and autoload it

The previous related commit was to prevent an error
when M-x org-reload RET was reloading org files from
an ELPA directory.  We now autoload the function so
that it is know by the time org-reload might be called.

2 years agoFix compiler warning.
Bastien Guerry [Sun, 26 Aug 2012 21:43:30 +0000]
Fix compiler warning.

2 years agoorg-agenda.el: Define `org-toggle-sticky-agenda' before calling it
Bastien Guerry [Sun, 26 Aug 2012 21:24:40 +0000]
org-agenda.el: Define `org-toggle-sticky-agenda' before calling it

2 years agoserver.mk: do not prevent proper customization
Achim Gratz [Sun, 26 Aug 2012 12:03:20 +0000]
server.mk: do not prevent proper customization

* mk/server.mk: Do not prevent proper customization, so do not
  overwrite existing variables.

2 years agoserver.mk (elpa): Do not make PDF and card documentation for the ELPA archive
Bastien Guerry [Sun, 26 Aug 2012 18:29:06 +0000]
server.mk (elpa): Do not make PDF and card documentation for the ELPA archive

Info is enough.

2 years agomk/server.mk: More compact help.
Bastien Guerry [Sun, 26 Aug 2012 18:22:57 +0000]
mk/server.mk: More compact help.

2 years agomk/server.mk: Set SERVROOT and SERVERMK and add more help
Bastien Guerry [Sun, 26 Aug 2012 18:20:34 +0000]
mk/server.mk: Set SERVROOT and SERVERMK and add more help

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Sun, 26 Aug 2012 18:04:54 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years ago* org-compat.el (org-check-version): Autoload.
Bastien Guerry [Sun, 26 Aug 2012 18:04:41 +0000]
* org-compat.el (org-check-version): Autoload.

2 years agoMakefile: add description of ORG_ADD_CONTRIB to info documentation
Achim Gratz [Sun, 26 Aug 2012 12:03:20 +0000]
Makefile: add description of ORG_ADD_CONTRIB to info documentation

* doc/org.texi: Add description of ORG_ADD_CONTRIB to info
  documentation.  Add link to Worg for more details.

2 years agoMakefile: fix location of default.mk in org-fixup.el
Achim Gratz [Sun, 26 Aug 2012 12:03:20 +0000]
Makefile: fix location of default.mk in org-fixup.el

* mk/org-fixup.el: Fix location of default.mk, now in mk/default.mk.

2 years agoMake it possible to use buffer local noweb start/end patterns
Sean O'Halpin [Sat, 25 Aug 2012 22:22:24 +0000]
Make it possible to use buffer local noweb start/end patterns

* lisp/ob.el (org-babel-expand-noweb-references): Capture current
noweb start and end patterns then use to set buffer locals in
(with-temp-buffer) form.

This solves the problem that using different patterns for
org-babel-noweb-wrap-start and org-babel-noweb-wrap-end could be done
only globally.

TINYCHANGE

2 years agoMakefile: Improve documentation.
Achim Gratz [Sun, 26 Aug 2012 12:03:20 +0000]
Makefile: Improve documentation.

* doc/org.texi: Clarify installation procedure.  Provide link to the
  build system description on Worg.

2 years agoRename utils/ to mk/, move some files to mk/ and make the requisite changes throughout
Achim Gratz [Sun, 26 Aug 2012 12:03:20 +0000]
Rename utils/ to mk/, move some files to mk/ and make the requisite changes throughout

* Makefile: Include default.mk and targets.mk from mk/ where they've
  been moved to.

* README_maintainer: Rename utils to make throughout.

* doc/Makefile: Rename utils to make throughout.

* doc/org.texi: Remove reference to utils/, x11idle.c is now in
  contrib/scripts.

* mk/make_emacs_changelog: Add mk/ to list of directories not to be
  reported in Emacs' ChangeLog.  Also retain utils/ and re-add
  UTILITIES; add a comment explaining why these need to stay.

* mk/default.mk: Rename utils to make throughout.  Include version.mk
  from mk/ where it's been moved to.

* mk/targets.mk: Rename utils to make throughout.

* mk/server.mk: Rename utils to make throughout.  Only put those files
  from mk/ into the archives that are needed outside the server:
  default.mk targets.mk version.mk and org-fixup.el.

* lisp/org-compat.el: Rename utils to make throughout.

* .gitignore:  Rename utils to make throughout.

2 years agoorg-agenda.el: Fix bug when calling `org-agenda-kill' and `org-agenda-archive-with...
Bastien Guerry [Sun, 26 Aug 2012 12:53:59 +0000]
org-agenda.el: Fix bug when calling `org-agenda-kill' and `org-agenda-archive-with' with a non-nil value of `org-agenda-stick'

* org-agenda.el (org-agenda-kill, org-agenda-archive-with):
Fix bug when called with a non-nil value of `org-agenda-stick'.

Thanks to Moritz Ulrich for reporting this.

2 years agoorg-agenda.el (org-agenda-refile): Fix bug when refiling an sticky agenda entry
Bastien Guerry [Sun, 26 Aug 2012 09:20:02 +0000]
org-agenda.el (org-agenda-refile): Fix bug when refiling an sticky agenda entry

* org-agenda.el (org-agenda-refile): Fix bug when refiling an
entry from a sticky agenda.

Thanks a lot to Moritz Ulrich for reporting this.

2 years agoserver.mk: add version.mk to distribution archives
Achim Gratz [Sun, 26 Aug 2012 08:18:23 +0000]
server.mk: add version.mk to distribution archives

* targets.mk: If $(ORGVERSION) and $(GITVERSION) are not defined and
  cannot be determined from Git, try to read `version.mk´.  Fall back
  to "N/A" if still no definition has been made.

* utils/server.mk: Create `version.mk´ for each distribution.  Append
  "-dist" and "-elpa" to $(GITVERSION) to easily recognize builds from
  distribution archives.  Remove `version.mk´ in `cleanrel´ and use
  the same globbing patterns as .gitignore.

* .gitignore: Add "version.mk", also ignore ELPA archive (no ".gz"
  suffix) and only "org-version.el" (no globbing).

2 years agoMakefile: deactivate perl scripts unless server configuration is active
Achim Gratz [Sat, 25 Aug 2012 06:35:02 +0000]
Makefile: deactivate perl scripts unless server configuration is active

* doc/Makefile: Do not use perl scripts in util/ unless the server
  configuration $(SERVERMK) is set.

2 years agoserver.mk: implement upload targets
Achim Gratz [Sat, 25 Aug 2012 06:35:02 +0000]
server.mk: implement upload targets

* utils/server.mk: Implement `upload´ (create and install everything),
  `upload-elpa´ (create and install ELPA archive),
  `upload-release´ (create and install release archives) and
  `upload-doc´ (create and install manuals).  The server layout is
  hardcoded and the directory structure must be in place, the server
  root is determined via variable $(SERVROOT).

2 years agoorg-element: Tiny refactoring
Nicolas Goaziou [Sat, 25 Aug 2012 21:35:22 +0000]
org-element: Tiny refactoring

* lisp/org-element.el (org-element-paragraph-parser): Tiny refactoring.

2 years agoorg-element: Small code comment clean-up
Nicolas Goaziou [Sat, 25 Aug 2012 21:30:29 +0000]
org-element: Small code comment clean-up

* lisp/org-element.el (org-element-paragraph-parser): Remove trailing
  code comments.

2 years agoSet `org-e-html-coding-system' to 'utf-8
Jambunathan K [Sat, 25 Aug 2012 19:20:17 +0000]
Set `org-e-html-coding-system' to 'utf-8

2 years agoAdd missing part from commit b4604d2833372fcbd6cffe4018d8e3cc98f6ae33
Nicolas Goaziou [Sat, 25 Aug 2012 13:41:01 +0000]
Add missing part from commit b4604d2833372fcbd6cffe4018d8e3cc98f6ae33

* lisp/org.el (org-fill-context-prefix): Fix incorrect output when
  called at the beginning of a plain list with an affiliated keyword.
(org-fill-paragraph): Remove useless variable.

2 years agoorg-element: Fix filling bug in a list with affiliated keyword
Nicolas Goaziou [Sat, 25 Aug 2012 13:26:33 +0000]
org-element: Fix filling bug in a list with affiliated keyword

* lisp/org-element.el (org-element-paragraph-parser): Fix parsing of
   paragraph at the beginning of an item.
* testing/lisp/test-org-element.el: Add test.

2 years agoFix version in README_DIST and doc/orgcard.tex
Bastien Guerry [Sat, 25 Aug 2012 08:28:59 +0000]
Fix version in README_DIST and doc/orgcard.tex

2 years agoFix bug in comment-dwin when at a keyword
Nicolas Goaziou [Fri, 24 Aug 2012 19:14:26 +0000]
Fix bug in comment-dwin when at a keyword

* lisp/org.el (org-mode): Set back comment-start-skip so comment-dwin
  can tell a keyword from a comment.
* testing/lisp/test-org.el: Add test.

2 years agoutils/server.mk: use --transform, not alias --xform
Achim Gratz [Fri, 24 Aug 2012 18:39:30 +0000]
utils/server.mk: use --transform, not alias --xform

* utils/server.mk: For compatibility with GNU tar 1.20, use
  --transform, not alias --xform.

2 years agoserver.mk: include the full utils/ directory for now
Bastien Guerry [Fri, 24 Aug 2012 17:07:23 +0000]
server.mk: include the full utils/ directory for now