5 years agofix remote execution w/empty shebang header arg release_7.9.2
Eric Schulte [Sat, 29 Sep 2012 21:12:10 +0000 (15:12 -0600)]
fix remote execution w/empty shebang header arg

Thanks to Nick Dokos for isolating this bug and suggesting this fix.

* lisp/ob-sh.el (org-babel-sh-evaluate): Don't could 0-length shebangs.

5 years agoUncomment :version "24.3" cookies.
Bastien Guerry [Sat, 29 Sep 2012 21:46:02 +0000 (23:46 +0200)]
Uncomment :version "24.3" cookies.

* org.el (org-url-hexify-p, org-doi-server-url)
(org-latex-preview-ltxpng-directory, org-custom-properties)
(org-sparse-tree-default-date-type): Add :version "24.3".

* org-agenda.el (org-agenda-sticky)
(org-agenda-custom-commands-contexts): Ditto.

* org-capture.el (org-capture-bookmark)
(org-capture-use-agenda-date): Ditto.

* org-latex.el (org-export-latex-hyperref-options-format)
(org-export-latex-link-with-unknown-path-format): Ditto.

* org-id.el (org-id-link-to-org-use-id): Ditto.

* org-datetree.el (org-datetree-add-timestamp): Ditto.

5 years agoUpdate ORG-NEWS
Bastien Guerry [Sat, 29 Sep 2012 21:41:16 +0000 (23:41 +0200)]

5 years agoorg.el: Fall back in interactive prompt when `org-make-link-description-function...
Bastien Guerry [Sat, 29 Sep 2012 20:38:26 +0000 (22:38 +0200)]
org.el: Fall back in interactive prompt when `org-make-link-description-function' fails

* org.el (org-make-link-description-function): Enhance
(org-insert-link): Fall back on interactive prompt when
`org-make-link-description-function' fails.

Thanks to Sylvain Rousseau for triggering this.

5 years agoPoint to the Org ELPA page for instructions on installing through ELPA
Bastien Guerry [Sat, 29 Sep 2012 14:34:33 +0000 (16:34 +0200)]
Point to the Org ELPA page for instructions on installing through ELPA

Also some minor rephrasing.

5 years agoRemove comment from previous commit.
Bastien Guerry [Sat, 29 Sep 2012 11:46:31 +0000 (13:46 +0200)]
Remove comment from previous commit.

5 years agoorg-agenda.el (org-todo-list): Fix redoing of todo agenda when `org-agenda-sticky...
Bastien Guerry [Sat, 29 Sep 2012 11:44:19 +0000 (13:44 +0200)]
org-agenda.el (org-todo-list): Fix redoing of todo agenda when `org-agenda-sticky' is non-nil

* org-agenda.el (org-todo-list): Fix redoing of todo agenda
when `org-agenda-sticky' is non-nil.

5 years agoMakefile: do not attempt to show Org version from Emacs' perspective
Achim Gratz [Sat, 29 Sep 2012 09:49:28 +0000 (11:49 +0200)]
Makefile: do not attempt to show Org version from Emacs' perspective

* mk/ Remove invocation of $(SHOWVER).  Emacs does some
  stupid ioctl when org-fixup gets invoked and messes up the output.

* mk/ Remove definition of $(SHOWVER).

5 years agoMerge branch 'maint' of into maint
Bastien Guerry [Sat, 29 Sep 2012 09:10:11 +0000 (11:10 +0200)]
Merge branch 'maint' of into maint

5 years agoorg-agenda.el: Fix some bugs about (indirect) windows handling
Bastien Guerry [Sat, 29 Sep 2012 09:10:03 +0000 (11:10 +0200)]
org-agenda.el: Fix some bugs about (indirect) windows handling

* org-agenda.el (org-agenda-quit): Delete last indirect buffer.
(org-agenda-pre-follow-window-conf): New variable.
(org-agenda-tree-to-indirect-buffer): Fix bug: don't split
agenda window when there an indirect buffer is already

5 years agoMakefile: implement target config-version
Achim Gratz [Sat, 29 Sep 2012 08:47:40 +0000 (10:47 +0200)]
Makefile: implement target config-version

* mk/ Implement target `config-version´ to show the version
  of Org from both make's and Emacs' perspective.  Run that target at
  the end of all `config-*´ targets.

* mk/ Add SHOWVER with the appropriate invocation of emacs
  to output the Org version.

* Makefile: Document new target `config-version´ in `helpall´.

5 years agoorg-element: Properly remove COMMENT and QUOTE keywords from title in parser
Nicolas Goaziou [Sat, 29 Sep 2012 07:46:09 +0000 (09:46 +0200)]
org-element: Properly remove COMMENT and QUOTE keywords from title in parser

* lisp/org-element.el: Properly remove COMMENT and QUOTE keywords from
  title in parser.
* testing/lisp/test-org-element.el: Add tests.

5 years agoPartially revert "test-ob.el: Fix test. Delete trailing whitespaces"
Achim Gratz [Sat, 29 Sep 2012 08:02:36 +0000 (10:02 +0200)]
Partially revert "test-ob.el: Fix test.  Delete trailing whitespaces"

This reverts the last part of commit 22c308083098f98a46bf2e752e005a9c36618b54.

* testing/lisp/test-ob.el (test-ob/results-do-not-replace-code-blocks):
  These two whitespace errors are intentional.  Do not remove them.

5 years agoMerge branch 'maint' of into maint
Bastien Guerry [Sat, 29 Sep 2012 07:38:34 +0000 (09:38 +0200)]
Merge branch 'maint' of into maint

5 years agotest-ob.el: Fix test. Delete trailing whitespaces
Bastien Guerry [Sat, 29 Sep 2012 07:38:19 +0000 (09:38 +0200)]
test-ob.el: Fix test.  Delete trailing whitespaces

* test-ob.el (test-ob/org-babel-remove-result--results-org):
Fix test.  Delete trailing whitespaces.

5 years agoorg-element: Fix parsing for headlines with only a COMMENT or QUOTE keyword
Nicolas Goaziou [Sat, 29 Sep 2012 06:54:46 +0000 (08:54 +0200)]
org-element: Fix parsing for headlines with only a COMMENT or QUOTE keyword

* lisp/org-element.el (org-element-headline-parser): Fix parsing for
  headlines with a single COMMENT or QUOTE keyword.
* testing/lisp/test-org-element.el: Add tests.

5 years agomarginally less hacky comma escaping of org blocks
Eric Schulte [Fri, 28 Sep 2012 18:47:14 +0000 (12:47 -0600)]
marginally less hacky comma escaping of org blocks

* ob.el (org-babel-insert-result): Replace key sequence with
  function call.  Use a more informative flag to the local function.
  (org-add-protective-commas): Declare a new external function.
* org-src.el (org-add-protective-commas): This should be its own
  (org-edit-src-exit): Use the new function.

5 years agoorg-agenda.el: Speedup redisplay of an agenda item after it has been modified
Max Mikhanosha [Fri, 28 Sep 2012 13:02:07 +0000 (09:02 -0400)]
org-agenda.el: Speedup redisplay of an agenda item after it has been modified

* org-agenda.el (org-agenda-change-all-lines): Speedup
refresh of a single line of agenda by narrowing the agenda
buffer to just that line before calling `org-agenda-finalize'.

5 years agoorg-agenda.el: Make sure to get a property from (1- (point-max)), not (point-max))
Bastien Guerry [Sat, 29 Sep 2012 06:09:21 +0000 (08:09 +0200)]
org-agenda.el: Make sure to get a property from (1- (point-max)), not (point-max))

* org-agenda.el (org-agenda-manipulate-query)
(org-agenda-goto-date, org-agenda-goto-today)
(org-agenda-find-same-or-today-or-agenda, )
(org-agenda-later, org-agenda-change-time-span)
(org-agenda-goto-calendar, org-agenda-convert-date): Make sure
to get a property from (1- (point-max)), not (point-max)).

Thanks to Juan Pechiar for reporting a related problem.

5 years agoSmall fixes to the guide and the manual
Bastien Guerry [Sat, 29 Sep 2012 05:27:51 +0000 (07:27 +0200)]
Small fixes to the guide and the manual

* org.texi (Installation, Feedback, Batch execution):
Use (add-to-list 'load-path ... t) for the contrib dir.

* orgguide.texi (Activation): No need to add org-mode to
auto-mode-alist since Emacs 22.2.

5 years agoorg-src.el: Fix commit e279e9
Bastien Guerry [Sat, 29 Sep 2012 05:21:12 +0000 (07:21 +0200)]
org-src.el: Fix commit e279e9

5 years agoob-dot.el (org-babel-execute:dot): Throw an error when there is no :file parameter
Bastien Guerry [Fri, 28 Sep 2012 17:06:17 +0000 (19:06 +0200)]
ob-dot.el (org-babel-execute:dot): Throw an error when there is no :file parameter

* ob-dot.el (org-babel-execute:dot): Throw an error when there
is no :file parameter.

5 years agoorg-table.el: Convert time-stamps to inactive time-stamp so that Calc can handle...
Bastien Guerry [Fri, 28 Sep 2012 16:22:38 +0000 (18:22 +0200)]
org-table.el: Convert time-stamps to inactive time-stamp so that Calc can handle them correctly

* org-table.el (org-table-eval-formula): Convert time-stamps
to inactive time-stamp so that Calc can handle them correctly.

Thanks to Daniel E. Doherty for reporting this.

5 years agoorg.el: Don't set org-hide foreground to "invisible-bg"
Max Mikhanosha [Fri, 28 Sep 2012 15:48:05 +0000 (11:48 -0400)]
org.el: Don't set org-hide foreground to "invisible-bg"

* org.el (org-mode): Don't set org-hide's foreground
to "invisible-bg".
(org-find-invisible-foreground): New function.

5 years agoorg-table.el: Warn with a message when formulas have been updated
Bastien Guerry [Fri, 28 Sep 2012 15:59:22 +0000 (17:59 +0200)]
org-table.el: Warn with a message when formulas have been updated

* org-table.el (org-table-fix-formulas): Warn with a message
when formulas have been updated.

5 years agoFix error messages: don't use a dot at the end
Bastien Guerry [Fri, 28 Sep 2012 15:47:48 +0000 (17:47 +0200)]
Fix error messages: don't use a dot at the end

5 years agoob-org: By default, export code from Org src blocks
Nicolas Goaziou [Fri, 28 Sep 2012 12:58:59 +0000 (14:58 +0200)]
ob-org: By default, export code from Org src blocks

* lisp/ob-org.el (org-babel-default-header-args:org): By default,
  export code from Org src blocks.

5 years agoorg-e-html.el (org-e-html-final-function): Turn on `html-mode', not `nxml-mode'
Bastien Guerry [Fri, 28 Sep 2012 15:08:37 +0000 (17:08 +0200)]
org-e-html.el (org-e-html-final-function): Turn on `html-mode', not `nxml-mode'

* org-e-html.el (org-e-html-final-function): Turn on
`html-mode', not `nxml-mode'.

5 years agoorg-publish.el (org-publish-cache-ctime-of-src): Fix reference to relative symlinks
Bastien Guerry [Fri, 28 Sep 2012 15:07:22 +0000 (17:07 +0200)]
org-publish.el (org-publish-cache-ctime-of-src): Fix reference to relative symlinks

* org-publish.el (org-publish-cache-ctime-of-src): Delete
the base-dir argument and use (file-name-directory file) to
get the file's directory.
(org-publish-cache-file-needs-publishing): Call
`org-publish-cache-ctime-of-src' with only one argument.

Thanks to T.F. Torrey who suggested a fix for this.

5 years agoorg.el (org-follow-timestamp-link): Fix bug when using sticky agenda
Bastien Guerry [Fri, 28 Sep 2012 14:51:21 +0000 (16:51 +0200)]
org.el (org-follow-timestamp-link): Fix bug when using sticky agenda

* org.el (org-follow-timestamp-link): Fix bug when using
sticky agenda.  Add a docstring.

Thanks to Christoph Lange for reporting this.

5 years agoorg-fixup.el (org-make-local-mk): Fix typo in comment
Bastien Guerry [Fri, 28 Sep 2012 14:40:00 +0000 (16:40 +0200)]
org-fixup.el (org-make-local-mk): Fix typo in comment

* org-fixup.el (org-make-local-mk): Fix typo in comment.

5 years agoorg-agenda.el (org-agenda-sticky): Don't use a function to set. Add a :version string.
Bastien Guerry [Fri, 28 Sep 2012 14:37:23 +0000 (16:37 +0200)]
org-agenda.el (org-agenda-sticky): Don't use a function to set.  Add a :version string.

* org-agenda.el (org-agenda-sticky): Don't use a function to
set.  Add a :version string.

5 years agoAdd a link to documentation
Memnon Anon [Fri, 28 Sep 2012 13:51:56 +0000 (15:51 +0200)]
Add a link to documentation

* doc/org.texi (Tracking your habits): Point to the
  "Tracking TODO state changes" section.

As suggested by Jonas Stein.


5 years agomk/ Use /elpa/ instead of /pkg/daily/
Bastien Guerry [Fri, 28 Sep 2012 08:05:10 +0000 (10:05 +0200)]
mk/ Use /elpa/ instead of /pkg/daily/

5 years agoRebind `org-agenda-priority' to `C-c ," in agenda mode (`C-u C-c ,' now shows priority)
Bastien Guerry [Fri, 28 Sep 2012 06:29:38 +0000 (08:29 +0200)]
Rebind `org-agenda-priority' to `C-c ," in agenda mode (`C-u C-c ,' now shows priority)

* org.el (org-priority): Use a new argument to show priority
instead of setting it.
(org-show-priority): New function to show priority both in
normal Org buffers and in Org Agenda buffers.
(org-speed-commands-default): Use "," as a speed command for
setting priority.

* org-agenda.el (org-agenda-mode-map): Bind
`org-agenda-priority' to `C-c ,' as it was before.
(org-agenda-show-priority): Delete.
(org-agenda-priority): Use a new argument to show priority
instead of setting it.

Thanks to Robert Horn for triggering this change.

5 years agoRename some functions and move some hooks.
Bastien Guerry [Thu, 27 Sep 2012 22:12:53 +0000 (00:12 +0200)]
Rename some functions and move some hooks.

* org.el (org-font-lock-hook, org-set-font-lock-defaults): Add
a docstring.
(org-display-inline-remove-overlay): Rename from
(org-speed-command-activate): Rename from
(org-babel-speed-command-hook): Rename from

* org-agenda.el (org-agenda-update-agenda-type): Rename from
(org-agenda-mode): Use the new name.
(org-agenda-post-command-hook): Define as obsolete function.

* org-lparse.el (org-lparse): Temporarily activate the hooks
needed for the ODT conversion.
(org-lparse-preprocess-after-blockquote): Rename from
(org-lparse-strip-experimental-blocks-maybe): Rename from
(org-lparse-strip-experimental-blocks-maybe-hook): Define as
obsolete functions.

5 years agoMerge branch 'maint' of into maint
Bastien Guerry [Thu, 27 Sep 2012 21:50:02 +0000 (23:50 +0200)]
Merge branch 'maint' of into maint

5 years agoob.el (org-babel-insert-result): Comma-escape results inserted with ":results org"
Bastien Guerry [Thu, 27 Sep 2012 21:49:08 +0000 (23:49 +0200)]
ob.el (org-babel-insert-result): Comma-escape results inserted with ":results org"

* ob.el (org-babel-insert-result): Comma-escape results
inserted with ":results org".

5 years agoorg-src.el: Fix bug about C-c C-s'ing in the source editing window
Bastien Guerry [Thu, 27 Sep 2012 21:45:34 +0000 (23:45 +0200)]
org-src.el: Fix bug about C-c C-s'ing in the source editing window

* org-src.el (org-edit-src-code, org-edit-src-exit): Fix bug
about saving the source editing window with the default value
for `org-src-window-setup' (i.e. 'reorganize-frame).

5 years agoorg-src.el (org-src-font-lock-fontify-block): Fix bug: don't fontify the last character
Bastien Guerry [Thu, 27 Sep 2012 21:40:28 +0000 (23:40 +0200)]
org-src.el (org-src-font-lock-fontify-block): Fix bug: don't fontify the last character

* org-src.el (org-src-font-lock-fontify-block): Fix bug: don't
fontify the last character.

5 years agoorg.el (org-open-at-point): Don't follow timestamp within bracket links
Bastien Guerry [Thu, 27 Sep 2012 21:29:01 +0000 (23:29 +0200)]
org.el (org-open-at-point): Don't follow timestamp within bracket links

* org.el (org-open-at-point): Don't follow timestamp within
bracket links.

5 years agomk/ (hopefully) correct generation of the package description vector
Achim Gratz [Thu, 27 Sep 2012 18:36:08 +0000 (20:36 +0200)]
mk/ (hopefully) correct generation of the package description vector

* mk/ Correct generation of the package description vector.
  Use empty list instead of nil and add the package type "tar".  With
  these changes a local copy of the package directory is recognized
  correctly.  Add local file variable to the package description files
  so that the byte compiler does not try to compile them.

5 years agoorg-capture.el (org-capture-templates): Fix typo in docstring
Bastien Guerry [Wed, 26 Sep 2012 22:54:20 +0000 (00:54 +0200)]
org-capture.el (org-capture-templates): Fix typo in docstring

* org-capture.el (org-capture-templates): Fix typo in docstring.

5 years agoorg-id-link-to-org-use-id: Align doc string
Michael Brand [Wed, 26 Sep 2012 17:55:50 +0000 (19:55 +0200)]
org-id-link-to-org-use-id: Align doc string

* org-id.el (org-id-link-to-org-use-id): Align the doc string to the
changed default.

A leftover of commit 0906e32b.

5 years agoMerge branch 'maint' of into maint
Bastien Guerry [Wed, 26 Sep 2012 21:45:04 +0000 (23:45 +0200)]
Merge branch 'maint' of into maint

5 years agomk/ Fix echo usage for the server
Bastien Guerry [Wed, 26 Sep 2012 21:44:25 +0000 (23:44 +0200)]
mk/ Fix echo usage for the server

5 years agofix test: BEGIN_ORG / END_ORG has been replaced by BEGIN_SRC org / END_SRC
Achim Gratz [Wed, 26 Sep 2012 19:35:34 +0000 (21:35 +0200)]
fix test: BEGIN_ORG / END_ORG has been replaced by BEGIN_SRC org / END_SRC

* testing/lisp/test-ob.el (test-ob/org-babel-remove-result--results-org):
  BEGIN_ORG / END_ORG has been replaced by BEGIN_SRC org / END_SRC.
  Change test comparison template accordingly.

* testing/lisp/test-ob.el (test-ob/org-babel-remove-result--results-*):
  These tests had duplicate definitions, removed the first one of each.

5 years agomk/ Let's use /pkg/daily/ for now
Bastien Guerry [Wed, 26 Sep 2012 16:27:27 +0000 (18:27 +0200)]
mk/ Let's use /pkg/daily/ for now

5 years agomk/ Add an "archive-contents" target
Bastien Guerry [Wed, 26 Sep 2012 15:50:20 +0000 (17:50 +0200)]
mk/ Add an "archive-contents" target

Based on the proposal by Eric Schulte on the mailing list.
Also use the /var/www/ directory as the
place where to store ELPA archives (whether they are further
downloaded to the server or not.)

5 years agoFix a compiler warning.
Bastien Guerry [Wed, 26 Sep 2012 13:18:49 +0000 (15:18 +0200)]
Fix a compiler warning.

5 years agoorg-agenda.el (org-agenda-skip): Skip information retrieved from a source block
Bastien Guerry [Wed, 26 Sep 2012 09:23:23 +0000 (11:23 +0200)]
org-agenda.el (org-agenda-skip): Skip information retrieved from a source block

* org-agenda.el (org-agenda-skip): Skip information retrieved
from a source block.

Thanks to Sébastien Vauban for pointing at this.

5 years agoob.el: Reintroduce ":results org" but using "#+BEGIN_SRC org", not "#+BEGIN_ORG"
Bastien Guerry [Wed, 26 Sep 2012 08:56:16 +0000 (10:56 +0200)]
ob.el: Reintroduce ":results org" but using "#+BEGIN_SRC org", not "#+BEGIN_ORG"

* ob.el (org-babel-common-header-args-w-values)
(org-babel-insert-result): Reintroduce ":results org" but
using "#+BEGIN_SRC org", not "#+BEGIN_ORG".

* org.texi (results): Update documentation for ":results
drawer" and ":results org".

5 years agoob.el: Remove "org" the list of predefined values for the ":results" parameter
Bastien Guerry [Wed, 26 Sep 2012 07:49:09 +0000 (09:49 +0200)]
ob.el: Remove "org" the list of predefined values for the ":results" parameter

* ob.el (org-babel-common-header-args-w-values): Remove "org"
the list of predefined values for the ":results" parameter.

This complete the previous fix (commit 203e50b).

5 years ago* ob.el (org-babel-insert-result): Remove support for ":results org"
Bastien Guerry [Wed, 26 Sep 2012 07:38:49 +0000 (09:38 +0200)]
* ob.el (org-babel-insert-result): Remove support for ":results org"

* ob.el (org-babel-insert-result): Remove support for
":results org".

The insertion of #+BEGIN_ORG was confusing.  You can either use
":results raw" to insert the raw results or ":results drawer" to
wrap them into a :RESULTS: ... :END: drawer.

5 years agoob.el: Deprecate ":results wrap" in favor of ":results drawer"
Bastien Guerry [Wed, 26 Sep 2012 07:23:51 +0000 (09:23 +0200)]
ob.el: Deprecate ":results wrap" in favor of ":results drawer"

* ob.el (org-babel-common-header-args-w-values)
(org-babel-insert-result): Deprecate ":results wrap" in favor
of ":results drawer".

5 years agoorg-crypt.el (org-at-encrypted-entry-p): Fix bug when the check happens before the...
Bastien Guerry [Wed, 26 Sep 2012 06:28:32 +0000 (08:28 +0200)]
org-crypt.el (org-at-encrypted-entry-p): Fix bug when the check happens before the first headline

* org-crypt.el (org-at-encrypted-entry-p): Fix bug when
the check happens before the first headline.

5 years agoorg-capture.el: Add declarations and check is `org-crypt' is loaded (Fix commit ac6409fe)
Bastien Guerry [Wed, 26 Sep 2012 06:25:05 +0000 (08:25 +0200)]
org-capture.el: Add declarations and check is `org-crypt' is loaded (Fix commit ac6409fe)

* org-capture.el (org-at-encrypted-entry-p)
(org-encrypt-entry, org-decrypt-entry): Declare.
(org-capture-set-target-location): Check whether `org-crypt'
has been loaded.

Thanks to Mike McLean for reporting this.

5 years agoorg.texi (Column width and alignment): Fix typo
Bastien Guerry [Tue, 25 Sep 2012 22:38:32 +0000 (00:38 +0200)]
org.texi (Column width and alignment): Fix typo

* org.texi (Column width and alignment): Fix typo.

Thanks to Erich Neuwirth for spotting this.

5 years agoorg-agenda.el (org-agenda-todo-custom-ignore-p): Fix typo in docstring
Bastien Guerry [Tue, 25 Sep 2012 16:30:55 +0000 (18:30 +0200)]
org-agenda.el (org-agenda-todo-custom-ignore-p): Fix typo in docstring

* org-agenda.el (org-agenda-todo-custom-ignore-p): Fix typo in docstring.

5 years agoAllow using an encrypted headline as a capture target.
Bastien Guerry [Tue, 25 Sep 2012 14:32:52 +0000 (16:32 +0200)]
Allow using an encrypted headline as a capture target.

* org-capture.el (org-capture-finalize): Maybe re-encrypt
the target headline if it was decrypted.
(org-capture-set-target-location): Maybe decrypt the target

* org-crypt.el (org-at-encrypted-entry-p): New function.

Thanks to Guilherme Gondim for suggesting this.

5 years agoorg.el (org-options-keywords): Add "STYLE:"
Bastien Guerry [Tue, 25 Sep 2012 12:40:38 +0000 (14:40 +0200)]
org.el (org-options-keywords): Add "STYLE:"

* org.el (org-options-keywords): Add "STYLE:".

5 years agomk/ Add COPYING to ELPA archives
Bastien Guerry [Tue, 25 Sep 2012 01:45:21 +0000 (03:45 +0200)]
mk/ Add COPYING to ELPA archives

5 years agoAdd COPYING and fix other related issues.
Bastien Guerry [Mon, 24 Sep 2012 17:15:42 +0000 (19:15 +0200)]
Add COPYING and fix other related issues.

Fix the header of ob-fortran.el (see this fix in Emacs trunk:
Specify that org-colview-xemacs.el is *not* part of Emacs.
Specify that org-element.el is part of Emacs (prepare the sync.)
Add COPYING in the release (mk/

5 years agoorg-agenda.el (org-agenda-ndays): Fix bug
Bastien Guerry [Mon, 24 Sep 2012 15:59:23 +0000 (17:59 +0200)]
org-agenda.el (org-agenda-ndays): Fix bug

* org-agenda.el (org-agenda-ndays): Don't make an alias, as
`org-agenda-span' is defined separately.

Thanks to Tassilo for reporting this.

5 years agoSmall enhancements to the main Org menu.
Bastien Guerry [Mon, 24 Sep 2012 15:19:12 +0000 (17:19 +0200)]
Small enhancements to the main Org menu.

* org.el (org-in-subtree-not-table-p): New utility function
for building the menu.
(org-org-menu): Add an item for refiling.  Check more contexts
when activating items.
(org-tree-to-indirect-buffer): Use `org-up-heading-safe'.

* org-agenda.el (org-agenda-tree-to-indirect-buffer)
(org-agenda-do-tree-to-indirect-buffer): Use argument `arg'.

5 years agoorg-capture.el: Set a correct time value with file+datetree+prompt
Bastien Guerry [Mon, 24 Sep 2012 06:28:45 +0000 (08:28 +0200)]
org-capture.el: Set a correct time value with file+datetree+prompt

* org-capture.el (org-capture-set-target-location): Set a
correct time value when storing a note in a datetree and
prompting the user for a date.

Thanks to Gregor Zattler for reporting this.

5 years agoorg-capture.el (org-capture-mode): Fix bug: don't run the mode's hook twice
Bastien Guerry [Mon, 24 Sep 2012 05:07:43 +0000 (07:07 +0200)]
org-capture.el (org-capture-mode): Fix bug: don't run the mode's hook twice

* org-capture.el (org-capture-mode): Fix bug: don't run the
mode's hook twice.

Thanks to Kalev Takkis for reporting this.

5 years agoorg-agenda.el: Use `define-obsolete-variable-alias'
Bastien Guerry [Sun, 23 Sep 2012 10:00:44 +0000 (12:00 +0200)]
org-agenda.el: Use `define-obsolete-variable-alias'

* org-agenda.el (org-agenda-menu-two-column)
(org-finalize-agenda-hook, org-agenda-ndays): Use
`define-obsolete-variable-alias' instead of

5 years agoorg.el: Use nil as the default value for `org-link-to-org-use-id'
Bastien Guerry [Sun, 23 Sep 2012 09:58:49 +0000 (11:58 +0200)]
org.el: Use nil as the default value for `org-link-to-org-use-id'

* org.el (org-link-to-org-use-id): Move to org-id.el.

* org-id.el (org-id-link-to-org-use-id): Rename from
`org-link-to-org-use-id'.  Use `nil' as the default value.
(org-link-to-org-use-id): Alias and define as obsolete.

`org-link-to-org-use-id' was previously defined in org.el but only
active when org-id.el was loaded.  This is wrong.  It now belongs
to org-id.el.

Also, as some libraries require org-id.el on the fly, a non-nil
default value for `org-link-to-org-use-id' had the side-effect of
changing the behavior of `org-store-link' behind the user's back.
Which is wrong too.  The new default value is `nil' so that, even
when a library requires org-id.el without the user noticing it,
the behavior of `org-store-link' will not change.

Users who want to keep the previous behavior can set the variable
to 'create-if-interactive-and-no-custom-id


5 years agodo not set variables belonging to ESS
Achim Gratz [Sun, 23 Sep 2012 09:07:18 +0000 (11:07 +0200)]
do not set variables belonging to ESS

* lisp/ob-R.el (org-babel-R-initiate-session): Protect against use of
  unbound variable `ess-ask-for-ess-directory´. The default for this
  variable is true, so act accordingly if it is found unbound.

* lisp/ob-R.el: Remove initialization with `nil´ from
 `ess-ask-for-ess-directory´ and `ess-local-process-name´.  Remove
 second declaration for `ess-local-process-name´.

* testing/lisp/test-ob-R.el (test-ob-R/simple-session): Bind
  `ess-ask-for-ess-directory´ to nil to facilitate batch testing.

5 years agoorg-agenda.el: Fix bug about 'time-up sorting strategy not being honored
Bastien Guerry [Sun, 23 Sep 2012 08:16:12 +0000 (10:16 +0200)]
org-agenda.el: Fix bug about 'time-up sorting strategy not being honored

* org-agenda.el (org-search-view, org-agenda-get-todos)
(org-agenda-get-timestamps, org-agenda-get-blocks): Use the
dotime parameter of `org-agenda-format-item' so that 'time-up
and 'time-down agenda sorting strategies are handled correctly.

Thanks to Richard Lawrence who reported this.

5 years agocontrib/lisp/org-e-html.el: Honor the use of `org-time-stamp-custom-formats'
Bastien Guerry [Sat, 22 Sep 2012 16:42:51 +0000 (18:42 +0200)]
contrib/lisp/org-e-html.el: Honor the use of `org-time-stamp-custom-formats'

* org-e-html.el (org-e-html-timestamp): Honor the use of

5 years agoorg-capture.el (org-capture-fill-template): Fix checking of protected template entries
Bastien Guerry [Sat, 22 Sep 2012 09:08:20 +0000 (11:08 +0200)]
org-capture.el (org-capture-fill-template): Fix checking of protected template entries

* org-capture.el (org-capture-fill-template): Fix checking of
protected template entries.

Thanks to Myles English for spotting this.

5 years agoorg.el (org-cycle-global-at-bob): Fix typo in docstring
Bastien Guerry [Sat, 22 Sep 2012 08:55:06 +0000 (10:55 +0200)]
org.el (org-cycle-global-at-bob): Fix typo in docstring

* org.el (org-cycle-global-at-bob): Fix typo in docstring.

5 years agoSmall fixes to the README files and to mk/
Bastien Guerry [Sat, 22 Sep 2012 08:32:46 +0000 (10:32 +0200)]
Small fixes to the README files and to mk/

5 years agoReorder the README files.
Bastien Guerry [Fri, 21 Sep 2012 14:35:04 +0000 (16:35 +0200)]
Reorder the README files.

Use README as the readme file for the distribution.
Use README_ELPA as the readme file for ELPA packages.
New README_git file to describe readme files in git.
Update mk/ to include the correct READMEs.
Update mk/ to update README.
Add some more help info in mk/

5 years agocontrib/lisp/org-wikinodes.el: Fixes
Bastien Guerry [Sat, 22 Sep 2012 07:20:14 +0000 (09:20 +0200)]
contrib/lisp/org-wikinodes.el: Fixes

* org-wikinodes.el (org-wikinodes-follow-link): Specify
the directory when trying to find a target.
(org-wikinodes-which-file): Rewrite.

5 years agoorg.el: Fix bug in `org-insert-drawer'
Bastien Guerry [Fri, 21 Sep 2012 16:00:36 +0000 (18:00 +0200)]
org.el: Fix bug in `org-insert-drawer'

* org.el (org-insert-drawer): Deactivate the mark before
trying to indent the :END: of the drawer.

Thanks to Christoph LANGE for reporting this.

5 years agoorg-clock.el (org-clock-in): Fix bug in setting the clock heading
Levin Du [Fri, 21 Sep 2012 13:42:38 +0000 (15:42 +0200)]
org-clock.el (org-clock-in): Fix bug in setting the clock heading

* org-clock.el (org-clock-in): Fix bug in setting the clock


5 years agoorg.texi (Activation): Point to the "Conflicts" section
Bastien Guerry [Fri, 21 Sep 2012 09:07:34 +0000 (11:07 +0200)]
org.texi (Activation): Point to the "Conflicts" section

* org.texi (Activation): Point to the "Conflicts" section.

5 years agoorg.texi (Conflicts): Mention filladapt.el in the list of conflicting packages
Bastien Guerry [Fri, 21 Sep 2012 09:02:00 +0000 (11:02 +0200)]
org.texi (Conflicts): Mention filladapt.el in the list of conflicting packages

* org.texi (Conflicts): Mention filladapt.el in the list of
conflicting packages.

Thanks to Anthony Lander for the hook.

5 years agocontrib/lisp/org-wikinodes.el: Fix typo
Bastien Guerry [Fri, 21 Sep 2012 08:39:44 +0000 (10:39 +0200)]
contrib/lisp/org-wikinodes.el: Fix typo

* org-wikinodes.el
(org-wikinodes-clear-directory-targets-cache): Rename from
mispelled name.
(org-wikinodes-clear-cache-when-on-target): Use the correct

5 years agoorg-agenda.el (org-agenda-export-html-style): Default to nil
Bastien Guerry [Fri, 21 Sep 2012 08:04:14 +0000 (10:04 +0200)]
org-agenda.el (org-agenda-export-html-style): Default to nil

* org-agenda.el (org-agenda-export-html-style): Default to nil
as any string value will replace the htmlize style.

See commit 8447ea.

5 years agoMakefile: add contrib files while generating autoloads
Achim Gratz [Thu, 20 Sep 2012 20:35:35 +0000 (22:35 +0200)]
Makefile: add contrib files while generating autoloads

* mk/ Move copy of contrib additions to lisp/Makefile.

* lisp/Makefile: Let `autoloads´ in lisp re-generate contrib files by
  depending on new target `addcontrib´ in the right order.

5 years agomk/ rename orgplus to org-plus-contrib
Achim Gratz [Thu, 20 Sep 2012 18:55:47 +0000 (20:55 +0200)]
mk/ rename orgplus to org-plus-contrib

* mk/ Rename EPLA package from orgplus to org-plus-contrib.

5 years agoorg-element: Fix inline-src-block parsing at the beginning of an item
Nicolas Goaziou [Thu, 20 Sep 2012 17:12:39 +0000 (19:12 +0200)]
org-element: Fix inline-src-block parsing at the beginning of an item

* lisp/org-element.el (org-element-inline-src-block-successor): Fix
  inline-src-block parsing at the beginning of an item.
* testing/lisp/test-org-element.el: Add test.

5 years agoDon't force the <style> tag to be present in `org-agenda-export-html-style'
Fabrice Niessen [Wed, 19 Sep 2012 10:10:20 +0000 (12:10 +0200)]
Don't force the <style> tag to be present in `org-agenda-export-html-style'

* org-agenda.el (org-agenda-write-buffer-name): Remove the
test for the presence of <style> tag.


5 years agoorg.el (org-cycle-hook): Fix tiny typo in docstring
Bastien Guerry [Wed, 19 Sep 2012 10:29:27 +0000 (12:29 +0200)]
org.el (org-cycle-hook): Fix tiny typo in docstring

* org.el (org-cycle-hook): Fix tiny typo in docstring.

5 years agoorg.el: Add docstrings
Bastien Guerry [Wed, 19 Sep 2012 09:44:07 +0000 (11:44 +0200)]
org.el: Add docstrings

* org.el (org-time-string-to-time)
(org-time-string-to-seconds, org-end-of-subtree): Add a

5 years agoorg-freemind.el (org-freemind-write-node): Enhance links conversion in nodes
Bastien Guerry [Wed, 19 Sep 2012 08:46:14 +0000 (10:46 +0200)]
org-freemind.el (org-freemind-write-node): Enhance links conversion in nodes

* org-freemind.el (org-freemind-write-node): Enhance links
conversion in nodes.

Thanks to Bill Day for requesting this.

5 years agoorg-freemind.el (org-freemind-write-node): Convert links in nodes
Bastien Guerry [Wed, 19 Sep 2012 07:22:12 +0000 (09:22 +0200)]
org-freemind.el (org-freemind-write-node): Convert links in nodes

* org-freemind.el (org-freemind-write-node): Convert links in

Thanks to Bill Day for reporting this.

5 years agoorg-e-publish.el (org-e-publish-org-to-html): Fix typo
Robert Klein [Wed, 19 Sep 2012 06:07:36 +0000 (08:07 +0200)]
org-e-publish.el (org-e-publish-org-to-html): Fix typo

* org-e-publish.el (org-e-publish-org-to-html): Fix typo.


5 years agodo not use an explicit nil argument for package requirements
Achim Gratz [Tue, 18 Sep 2012 19:36:44 +0000 (21:36 +0200)]
do not use an explicit nil argument for package requirements

* mk/ Do not use an explicit nil argument for package

Marmalade chokes on this, thanks to E. Schulte for the report.

5 years agoorg.el: Use "capture" instead of "remember" in docstrings.
Bastien Guerry [Tue, 18 Sep 2012 15:18:33 +0000 (17:18 +0200)]
org.el: Use "capture" instead of "remember" in docstrings.

* org.el (org-link-to-org-use-id, org-directory)
(org-default-notes-file, org-reverse-note-order)
(org-extend-today-until, org-finish-function)
(org-store-link-functions): Use "capture" instead of
"remember" in docstrings.  Also use the `org-capture' group
when it makes sense.

5 years agoorg.texi (Activation): Adding org-mode to `auto-mode-alist' is not needed for version...
Bastien Guerry [Tue, 18 Sep 2012 14:21:36 +0000 (16:21 +0200)]
org.texi (Activation): Adding org-mode to `auto-mode-alist' is not needed for versions of Emacs > 22.1

* org.texi (Activation): Adding org-mode to `auto-mode-alist'
is not needed for versions of Emacs > 22.1.

Thanks to Robert P. J. Day for suggesting this.

5 years agoorg-agenda.el: Fix bug when showing indirect agenda in another frame
Bastien Guerry [Tue, 18 Sep 2012 14:06:46 +0000 (16:06 +0200)]
org-agenda.el: Fix bug when showing indirect agenda in another frame

* org-agenda.el (org-agenda-tree-to-indirect-buffer): Find the
correct agenda buffer.  Don't split the agenda window when the
indirect buffer is displayed in another frame.

Thanks Viktor Rosenfeld for reporting this.

5 years agoorg.el (org-mode): Try to set the org-hide face correctly
Bastien Guerry [Tue, 18 Sep 2012 10:24:05 +0000 (12:24 +0200)]
org.el (org-mode): Try to set the org-hide face correctly

* org.el (org-mode): Try to set the org-hide face correctly.

Thanks to Arne Babenhauserheide for reporting a related problem.

5 years agoorg-exp.el (org-export): Set the mark correctly when exporting a subtree
Bastien Guerry [Tue, 18 Sep 2012 09:09:25 +0000 (11:09 +0200)]
org-exp.el (org-export): Set the mark correctly when exporting a subtree

* org-exp.el (org-export): Set the mark correctly when
exporting a subtree.

Thanks to Tyler Smith for reporting this problem.

5 years agoorg-agenda.el: Fix the display of the number of commands for block agendas
Bastien Guerry [Tue, 18 Sep 2012 07:09:41 +0000 (09:09 +0200)]
org-agenda.el: Fix the display of the number of commands for block agendas

* org-agenda.el (org-agenda-get-restriction-and-command): Fix
the display of the number of commands for block agendas.

Thanks to Sébastien Vauban for reporting this.

5 years agoorg-agenda.el: Allow `org-agenda-finalize-hook' to modify the buffer
Bastien Guerry [Tue, 18 Sep 2012 06:40:11 +0000 (08:40 +0200)]
org-agenda.el: Allow `org-agenda-finalize-hook' to modify the buffer

* org-agenda.el (org-agenda-before-write-hook)
(org-agenda-add-entry-text-maxlines): Enhance phrasing.
(org-agenda-finalize-hook, org-agenda-mode-hook): Tell that
the buffer is writable when the hook is called.
(org-agenda-finalize): Allow org-agenda-finalize-hook to
modify the buffer.

Thanks to Moritz Ulrich and to Aaron Ecay for triggering this fix.