org-mode.git
7 months agoUpdate copyright years again. release_8.2.5c
Bastien Guerry [Tue, 7 Jan 2014 13:18:17 +0000]
Update copyright years again.

Hint: copyright years are all updated in Emacs.

7 months agoBackport change from Chong on 2013-12-23
Bastien Guerry [Tue, 7 Jan 2014 12:25:30 +0000]
Backport change from Chong on 2013-12-23

7 months agoBug in org.texi release_8.2.5b
Rasmus [Tue, 7 Jan 2014 10:32:31 +0000]
Bug in org.texi

* org.texi (Global and local cycling): Fix missing '@'.

7 months agoorg.texi (Global and local cycling): Mention C-u C-u TAB
Bastien Guerry [Tue, 7 Jan 2014 09:15:13 +0000]
org.texi (Global and local cycling): Mention C-u C-u TAB

* org.texi (Global and local cycling): Mention C-u C-u TAB.

Thanks to François Pinard for suggesting this.

7 months agoBackport spelling fixes from Emacs r115885
Bastien Guerry [Mon, 6 Jan 2014 10:02:18 +0000]
Backport spelling fixes from Emacs r115885

* org-clock.el (org-clock-cancel-hook)
(org-clock-leftover-time): Fix typo in docstring.

7 months agoBackport change from Emacs r115884
Bastien Guerry [Mon, 6 Jan 2014 10:00:28 +0000]
Backport change from Emacs r115884

7 months agoorg.el (org-set-tags): Ignore invisible text when restoring cursor position
Bastien Guerry [Sun, 5 Jan 2014 13:21:38 +0000]
org.el (org-set-tags): Ignore invisible text when restoring cursor position

* org.el (org-set-tags): Ignore invisible text when restoring
cursor position.

7 months agoob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code typo
U-usuario-PC\\usuario [Sun, 5 Jan 2014 12:18:16 +0000]
ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code typo

* ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code typo.

TINYCHANGE

7 months agoUpdate copyright year for files changed since 2013 release_8.2.5a
Bastien Guerry [Sun, 5 Jan 2014 05:35:21 +0000]
Update copyright year for files changed since 2013

7 months agoRevert "Update copyright years."
Bastien Guerry [Sun, 5 Jan 2014 05:28:07 +0000]
Revert "Update copyright years."

This reverts commit 21105594fcb69fb4e1d636f4070fd25c86efbe35.

7 months agoBackport changes from Emacs r115870
Bastien Guerry [Sun, 5 Jan 2014 05:24:20 +0000]
Backport changes from Emacs r115870

* org.texi (Include files, The Export Dispatcher)
(Advanced configuration)
(Header arguments in Org mode properties): Spelling fixes.

7 months agoUpdate copyright years. release_8.2.5
Bastien Guerry [Sat, 4 Jan 2014 17:56:11 +0000]
Update copyright years.

7 months agoRevert "* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el."
Bastien Guerry [Sat, 4 Jan 2014 17:15:42 +0000]
Revert "* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el."

This reverts commit fc5cf0d92209f55a59077101e6f1ae77c3c8524f.

7 months agoFix ox-odt bugs
Bastien Guerry [Sat, 4 Jan 2014 17:09:31 +0000]
Fix ox-odt bugs

* ox-odt.el (org-odt--frame): Add a draw:name property to the
draw:frame tag.
(org-odt-format-label): Don't use short-caption at all.

See http://article.gmane.org/gmane.emacs.orgmode/79910
and http://article.gmane.org/gmane.emacs.orgmode/79892
for threads about these issues.

7 months agoorg-rmail.el (org-rmail-follow-link): Don't raise an error when no article is matched
Bastien Guerry [Sat, 4 Jan 2014 14:27:53 +0000]
org-rmail.el (org-rmail-follow-link): Don't raise an error when no article is matched

* org-rmail.el (org-rmail-follow-link): Don't raise an error
when no article is matched.

7 months agoFix creation of parent nodes when refiling.
Bastien Guerry [Sat, 4 Jan 2014 14:05:01 +0000]
Fix creation of parent nodes when refiling.

* org.el (org-refile-get-location): Check for a refile
position when the position is not nil, otherwise allow to
create the parent node if the user requests it.

Thanks to Li Zhuo for reporting this bug and for providing
a preliminary patch.

7 months agoorg.el (org-refile-allow-creating-parent-nodes): Fix typo in docstring
Bastien Guerry [Sat, 4 Jan 2014 13:53:00 +0000]
org.el (org-refile-allow-creating-parent-nodes): Fix typo in docstring

* org.el (org-refile-allow-creating-parent-nodes): Fix typo in
docstring.

7 months agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Sat, 4 Jan 2014 13:48:51 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

7 months agoorg.el (org-entry-get): Minor docstring enhancement
Bastien Guerry [Sat, 4 Jan 2014 13:48:39 +0000]
org.el (org-entry-get): Minor docstring enhancement

* org.el (org-entry-get): Minor docstring enhancement.

7 months agoox-icalendar: Fix BBDB anniversaries integration
Nicolas Goaziou [Sat, 4 Jan 2014 13:26:19 +0000]
ox-icalendar: Fix BBDB anniversaries integration

* lisp/ox-icalendar.el (org-icalendar--combine-files): Make sure
  anniversaries do not end up in *Message* buffer instead of the ICS
  file.

Patch-by: Thomas Baumann <tbaumann@tum.de>

7 months agoorg.el (org-set-startup-visibility): Bugfix
Bastien Guerry [Sat, 4 Jan 2014 11:22:50 +0000]
org.el (org-set-startup-visibility): Bugfix

* org.el (org-set-startup-visibility): Bugfix.

See http://article.gmane.org/gmane.emacs.orgmode/79905

7 months agoorg.el (org-shiftcontrolup, org-shiftcontroldown): Ignore `org-support-shift-select...
Bastien Guerry [Fri, 3 Jan 2014 16:38:02 +0000]
org.el (org-shiftcontrolup, org-shiftcontroldown): Ignore `org-support-shift-select' when point is on a clock log

* org.el (org-shiftcontrolup, org-shiftcontroldown): When
`org-support-shift-select' is not `nil', let-bind it to nil
if point is on a clock log.  Otherwise throw an error.

7 months agoob-lob.el: Minor custom and docstring fixes
Bastien Guerry [Fri, 3 Jan 2014 16:15:34 +0000]
ob-lob.el: Minor custom and docstring fixes

* ob-lob.el (org-babel-lob-files): Fix custom type.
(org-babel-lob-ingest): Small docstring fix.

Thanks to Glenn Morris for reporting them.

7 months agoorg-agenda.el (org-cmp-ts): Fix bug
Bastien Guerry [Fri, 3 Jan 2014 15:01:30 +0000]
org-agenda.el (org-cmp-ts): Fix bug

* org-agenda.el (org-cmp-ts): Fix bug: interpret `late' as
`later than any date' instead of `later than today'.

Thank to Michael Crouch for reporting this and to Michael Hoffman for
providing the fix.

7 months agoorg.el (org-do-emphasis-faces): Fix false positives handling
Bastien Guerry [Fri, 3 Jan 2014 10:16:14 +0000]
org.el (org-do-emphasis-faces): Fix false positives handling

* org.el (org-do-emphasis-faces): Handle false positives by
restarting the re-search one char after the beginning of the
match, not one char before its ending.

Before this fix, consider this buffer

** Headline
  - *Bold* non-bold
  - *Bold* non-bold

The first false positive is "** Headline\n  - *Bold*"

Starting the search again from the last "*" will skip
the "*Bold*" string.  Starting again at "* Headline" will
find it.

7 months agoorg.el (org-entry-put): Check that the value provided is a string
Bastien Guerry [Fri, 3 Jan 2014 09:07:09 +0000]
org.el (org-entry-put): Check that the value provided is a string

* org.el (org-entry-put): Check that the value provided is a
string.  If it is nil, convert it to the empty string.

7 months agoBackport r115828 from Emacs trunk
Bastien Guerry [Thu, 2 Jan 2014 15:10:44 +0000]
Backport r115828 from Emacs trunk

7 months agoRevert "Backport change from r115807 in Emacs trunk"
Bastien Guerry [Thu, 2 Jan 2014 15:08:26 +0000]
Revert "Backport change from r115807 in Emacs trunk"

This reverts commit c2ed678f20f7a4deccc3373c6a226163d5624cc8.

7 months agoox-html: Clean up some comments
Nicolas Goaziou [Wed, 1 Jan 2014 18:05:49 +0000]
ox-html: Clean up some comments

* lisp/ox-html.el: Clean up "FIXME" comments.

7 months agoox-publish: Fix a docstring
Nicolas Goaziou [Wed, 1 Jan 2014 18:02:13 +0000]
ox-publish: Fix a docstring

* lisp/ox-publish.el (org-publish-resolve-external-fuzzy-link): Fix
  docstring.

7 months agoox-html.el: Use classes for caption instead of align
Vladimir Lomov [Sat, 28 Dec 2013 22:33:59 +0000]
ox-html.el: Use classes for caption instead of align

* ox-html.el (org-html-style-default): New classes
caption.t-above and caption.t-bottom.
(org-html-table): Use new classes.

TINYCHANGE

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>

7 months agoRevert "ox-html.el: Use classes for caption instead of align"
Bastien Guerry [Mon, 30 Dec 2013 09:43:43 +0000]
Revert "ox-html.el: Use classes for caption instead of align"

This reverts commit 1813200fc81fa5e0f248407d852f3771fe2d4f6e.

7 months agoox-html.el: Use classes for caption instead of align
Vladimir Lomov [Sat, 28 Dec 2013 22:33:59 +0000]
ox-html.el: Use classes for caption instead of align

* ox-html.el (org-html-style-default): New classes
caption.t-above and caption.t-bottom.
(org-html-table): Use new classes.

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>

7 months agoFix defcustoms: don't quote const values.
Bastien Guerry [Mon, 30 Dec 2013 09:30:44 +0000]
Fix defcustoms: don't quote const values.

* ob-latex.el (org-babel-latex-htlatex-packages): Use repeat
instead of list as the defcustom type.

* ox.el (org-export-with-creator):
* org.el (org-loop-over-headlines-in-active-region)
(org-mouse-1-follows-link, org-provide-todo-statistics):
* org-agenda.el (org-agenda-custom-commands-local-options)
(org-agenda-start-with-log-mode)
(org-agenda-show-inherited-tags): Don't quote const values.

Thanks to Glenn Morris for reporting this.

7 months agoAdd missing :type to a few options.
Bastien Guerry [Mon, 30 Dec 2013 09:13:57 +0000]
Add missing :type to a few options.

* ox-texinfo.el (org-texinfo-def-table-markup):
* org-inlinetask.el (org-inlinetask-show-first-star):
* ob-maxima.el (org-babel-maxima-command): Add type.

Thanks to Glenn Morris for reporting this.

7 months agoBackport change from r115807 in Emacs trunk
Bastien Guerry [Mon, 30 Dec 2013 09:10:56 +0000]
Backport change from r115807 in Emacs trunk

7 months agoox: Fix smart quote detection
Nicolas Goaziou [Thu, 26 Dec 2013 11:35:59 +0000]
ox: Fix smart quote detection

* lisp/ox.el (org-export-smart-quotes-regexps): Fix smart quote
  detection when it is followed by an open parenthesis syntax class.

7 months agoSmall rewrite of the previous commit.
Bastien Guerry [Mon, 23 Dec 2013 05:58:26 +0000]
Small rewrite of the previous commit.

Use `regexp-opt' instead of `regexp-quote'.

7 months agoorg-habit.el (org-habit-parse-todo): Match all TODO keywords, not just "TODO"
Ted Wiles [Sun, 22 Dec 2013 23:10:44 +0000]
org-habit.el (org-habit-parse-todo): Match all TODO keywords, not just "TODO"

* org-habit.el (org-habit-parse-todo): Match all TODO
keywords, not just "TODO".

TINYCHANGE

7 months agodoc/org.texi: Add #+BEGIN_ABSTRACT as example
Bastien Guerry [Sun, 22 Dec 2013 22:36:38 +0000]
doc/org.texi: Add #+BEGIN_ABSTRACT as example

* org.texi (Special blocks): Add #+BEGIN_ABSTRACT as another
example.
(@LaTeX{} specific attributes): New index entries.  Use
#+BEGIN_ABSTRACT in the example.

7 months agoorg-table.el (org-table-fix-formulas): Handle multiple #+tblfm: lines
Bastien Guerry [Sun, 22 Dec 2013 09:09:53 +0000]
org-table.el (org-table-fix-formulas): Handle multiple #+tblfm: lines

* org-table.el (org-table-fix-formulas): Handle multiple
#+tblfm: lines.

Thanks to Daniel Gerber for reporting this problem.

7 months ago* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el.
Bastien Guerry [Sun, 22 Dec 2013 08:41:50 +0000]
* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el.

* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el
in org-plus-contrib ELPA package.

Thanks to Francesco Pizzolante for reporting this.

7 months ago* contrib/lisp/ob-oz.el (mozart): Don't throw an error
Bastien Guerry [Sun, 22 Dec 2013 08:25:58 +0000]
* contrib/lisp/ob-oz.el (mozart): Don't throw an error

* contrib/lisp/ob-oz.el (mozart): Don't throw an error if the
mozart library is not present in the load-path.

7 months agoorg-as-mac-chrome-get-frontmost-url: Fix to remove unneeded double quotes.
Alex Poslavsky [Sat, 21 Dec 2013 17:08:27 +0000]
org-as-mac-chrome-get-frontmost-url: Fix to remove unneeded double quotes.

* contrib/lisp/org-mac-link.el: Fix bug: remove double quotes.

TINYCHANGE

Applescript returns the link and description in quotes like this:

[["http://orgmode.org/worg/org-contribute.html#sec-4][How to contribute to Org?"]]

The fix changes it to this:

[[http://orgmode.org/worg/org-contribute.html#sec-4][How to contribute to Org?]]

8 months agoox.el (org-export-to-file): Fix typo in docstring
Bastien Guerry [Wed, 18 Dec 2013 15:00:05 +0000]
ox.el (org-export-to-file): Fix typo in docstring

* ox.el (org-export-to-file): Fix typo in docstring.

8 months agoorg-element: Keep compatibility with Babel's regexps
Nicolas Goaziou [Mon, 16 Dec 2013 20:00:57 +0000]
org-element: Keep compatibility with Babel's regexps

* lisp/org-element.el (org-element-inline-babel-call-successor): Use
  original regexp to stay up-to-date with Babel changes.

8 months agoorg-element: Fix affiliated keyword regexp
Nicolas Goaziou [Sun, 15 Dec 2013 14:20:03 +0000]
org-element: Fix affiliated keyword regexp

* lisp/org-element.el (org-element--affiliated-re): Fix affiliated
  keyword regexp.

8 months agoox-org: Remove attr_backend keywords
Nicolas Goaziou [Sun, 15 Dec 2013 14:17:24 +0000]
ox-org: Remove attr_backend keywords

* lisp/ox-org.el (org-org-identity): Since back-end specific keywords
  are stripped from output, also remove attr_backend keywords.

8 months agoorg.texi: Document `org' back-end
Nicolas Goaziou [Sun, 15 Dec 2013 13:52:46 +0000]
org.texi: Document `org' back-end

* doc/org.texi (Org export): New section.
* lisp/ox-org.el: Remove initial code comments since this is now in
  manual.

8 months agoorg.texi: Fix some whitespace errors
Nicolas Goaziou [Sun, 15 Dec 2013 10:54:22 +0000]
org.texi: Fix some whitespace errors

* doc/org.texi (HTML doctypes): Fix whitespace error.

8 months agoorg.texi: Add html related publishing options
Nicolas Goaziou [Sun, 15 Dec 2013 10:38:37 +0000]
org.texi: Add html related publishing options

* doc/org.texi (HTML doctypes): Fix display.
(Publishing options): Add missing html publishing options.

8 months agoFix bug when using both electric-pair-mode and delete-selection-mode
Bastien Guerry [Sat, 7 Dec 2013 07:17:33 +0000]
Fix bug when using both electric-pair-mode and delete-selection-mode

* org.el (org-self-insert-command)
(orgtbl-self-insert-command): Change the value of the
`delete-selection' property to allow other commands like
`electric-pair-will-use-region' to be run before deletion.

Thanks to Harald Hanche-Olsen for reporting this.

8 months agoob-exp: Fix duplicate evaluation with :wrap src
Nicolas Goaziou [Wed, 4 Dec 2013 22:23:33 +0000]
ob-exp: Fix duplicate evaluation with :wrap src

* lisp/ob-exp.el (org-babel-exp-process-buffer): Fix duplicate
  evaluation with :wrap src.
(org-babel-exp-non-block-elements): Removed function.
* testing/lisp/test-ob-lob.el (test-ob-lob/export-lob-lines): Fix test.

8 months agoorg-attach.el: Check whether git is installed
Bastien Guerry [Fri, 6 Dec 2013 14:22:50 +0000]
org-attach.el: Check whether git is installed

* org-attach.el (vc-git): Require.
(org-attach-commit): Check whether git is installed.

Thanks to Jonathan Leech-Pepin for reporting this.

8 months agoFix C-c C-c behaviour on some objects release_8.2.4
Nicolas Goaziou [Tue, 3 Dec 2013 20:41:48 +0000]
Fix C-c C-c behaviour on some objects

* lisp/org.el (org-ctrl-c-ctrl-c): When point is on an unsupported
  object, look for something to do at a higher level instead of
  bailing out.

For example, C-c C-c should toggle checkbox in the following example
even though X point is technically on a subscript.

  - [ ] a_Xb

8 months agoox-html: Fix LaTeX fragments export
Nicolas Goaziou [Tue, 3 Dec 2013 19:52:22 +0000]
ox-html: Fix LaTeX fragments export

* lisp/ox-html.el (org-html-format-latex): Add an argument.  Ensure
  latex header is the same as specified in the original buffer when
  exporting a LaTeX fragment or environment.
(org-html-latex-environment, org-html-latex-fragment): Apply signature
change.

8 months agoFix customization types in org-drill.el
Carsten Dominik [Tue, 3 Dec 2013 17:03:49 +0000]
Fix customization types in org-drill.el

* contrib/lisp/org-drill.el (org-drill-leech-method):
(org-drill-scope):
(org-drill-spaced-repetition-algorithm): Fix customization types.

8 months agoDocumentation for :export: tag usage
Nicolas Goaziou [Sun, 1 Dec 2013 12:32:26 +0000]
Documentation for :export: tag usage

* doc/org.texi (Export settings): documentation describing how text
above the first heading is ignored when an :export: tag is in a file.

Commit 7cf4406088d4d7f50c35c6ba7ca3c351db2086bc introduced a feature of
the exporter that ignores text above the first headline when an :export:
tag is used anywhere in a file. This commit documents that behaviour
introduced in 7cf44060, in doc/org.texi.

TINYCHANGE

8 months agoox-freemind: Fix comma error when exporting
Nicolas Goaziou [Thu, 28 Nov 2013 10:44:44 +0000]
ox-freemind: Fix comma error when exporting

* contrib/lisp/ox-freemind.el (org-freemind-export-to-freemind): Fix
  code typo.

Reported-by: Jan-Mark Batke <badkey@gmx.net>

8 months agoox-publish: Error when publishing non-existent file
Nicolas Goaziou [Mon, 25 Nov 2013 22:31:35 +0000]
ox-publish: Error when publishing non-existent file

* lisp/ox-publish.el (org-publish-cache-ctime-of-src): Return an error
  when publishing a non-existent file.

Suggested-by: Arne Babenhauserheide <arne_bab@web.de>

8 months agoorg-element: Update paragraph separate regexp
Nicolas Goaziou [Mon, 25 Nov 2013 22:19:48 +0000]
org-element: Update paragraph separate regexp

* lisp/org-element.el (org-element-paragraph-separate): More accurate
  regexp.

8 months agoorg-crypt: fix 3e87d5893d
Achim Gratz [Sat, 23 Nov 2013 15:15:45 +0000]
org-crypt: fix 3e87d5893d

* lisp/org-crypt.el: Declare `epg-context´.
  (org-encrypt-string): Correct indentation.

8 months agoUse key-description on the keys mentionned by the functions defined by
Nicolas Richard [Tue, 12 Nov 2013 08:02:23 +0000]
Use key-description on the keys mentionned by the functions defined by
`orgtbl-mode'.

8 months agoRemove old comment
Nicolas Richard [Thu, 7 Nov 2013 08:15:36 +0000]
Remove old comment

The comment was introduced (in git) at commit
4be4c56239c224094e717dcd57068f58f99c2dfc ; it refers to a
FIXME located ~40 lines above it. The FIXME was removed in
dc8bc8e39230bde1eca569c564e65bf85c43de54.

8 months agoFix export of links to attachements (part 2)
Nicolas Goaziou [Fri, 22 Nov 2013 11:42:41 +0000]
Fix export of links to attachements (part 2)

* lisp/org.el (org-entry-get): Widen buffer in order to retrieve
  properties, as `org-entry-properties' and
  `org-entry-get-with-inheritance' already do.

8 months agoorg-compat: Support for getting data from Windows clipboard
Alexander Vorobiev [Mon, 18 Nov 2013 00:27:14 +0000]
org-compat: Support for getting data from Windows clipboard

* lisp/org-compat.el (org-get-x-clipboard): Use w32-get-clipboard-data
to get the clipboard data under Windows.

TINYCHANGE

8 months agoox-html: Fix TOC entries
Nicolas Goaziou [Fri, 22 Nov 2013 08:26:58 +0000]
ox-html: Fix TOC entries

* lisp/ox-html.el (org-html--format-toc-headline): Add missing
  headline number in TOC entries.  This fixes commit
  4c94c4d062ce7aa28bc21301ec34857745029f5c.

8 months agoorg.texi: Fix export snippet syntax in ODT backend
Nicolas Goaziou [Wed, 20 Nov 2013 21:01:10 +0000]
org.texi: Fix export snippet syntax in ODT backend

* doc/org.texi (Creating one-off styles): Use new export snippet
  syntax.

8 months agoorg-crypt.el: Fix warning
Thierry Volpiatto [Wed, 20 Nov 2013 18:26:12 +0000]
org-crypt.el: Fix warning

* org-crypt.el (org-encrypt-string, org-encrypt-entry)
(org-decrypt-entry): Fix warning.

TINYCHANGE

epg-context is let-bounded in org-crypt and then epg local set it in
this context.  It should just be set as local var instead of being let
bounded.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15081

9 months agoFix export of links to attachements
Nicolas Goaziou [Mon, 18 Nov 2013 18:11:17 +0000]
Fix export of links to attachements

* lisp/org.el (org-entry-properties): Ignore narrowing when retrieving
  current headline properties.

9 months agoBackport Paul's fixes from Emacs trunk (2/2)
Bastien Guerry [Sun, 17 Nov 2013 08:15:25 +0000]
Backport Paul's fixes from Emacs trunk (2/2)

See http://article.gmane.org/gmane.emacs.diffs/123123

9 months agoBackport Paul's fixes from Emacs trunk (1/2)
Bastien Guerry [Sun, 17 Nov 2013 08:12:41 +0000]
Backport Paul's fixes from Emacs trunk (1/2)

See http://article.gmane.org/gmane.emacs.diffs/123123

9 months agoFix version for org-(export-with|use)-sub-superscript
Bastien Guerry [Sun, 17 Nov 2013 07:46:50 +0000]
Fix version for org-(export-with|use)-sub-superscript

* ox.el (org-export-with-sub-superscripts):
* org.el (org-use-sub-superscripts): Fix version and enhance
docstring again.

9 months agoEnhance docstrings
Bastien Guerry [Fri, 15 Nov 2013 09:08:25 +0000]
Enhance docstrings

* ox.el (org-export-with-sub-superscripts):
* org.el (org-use-sub-superscripts): Enhance docstrings.

Thansk to Dieter and Nick for raising this.

9 months agoorg.el: Fix a variable name error release_8.2.3c
Achim Gratz [Thu, 14 Nov 2013 20:21:58 +0000]
org.el: Fix a variable name error

* lisp/org.el (org-version): Fix an error imported with merge in
  f95641c443, replace `_version´ by `version1´.

9 months agoRemove org-autoload.
Bastien Guerry [Fri, 15 Nov 2013 05:53:59 +0000]
Remove org-autoload.

* org-macs.el (org-autoload): Delete.

* org-docview.el ("docview"): Fix declarations and require
doc-view directly.

* org-id.el (org-id-copy)
(org-id-get-with-outline-path-completion)
(org-id-get-with-outline-drilling, org-id-new):
* org-colview.el:
(org-colview-initial-truncate-line-value)
(org-columns-open-link, org-string-to-number):
* org-clock.el:
(org-clock-put-overlay, org-count-quarter, org-clock-loaded):
* org-archive.el (org-get-local-archive-location):
* org-agenda.el (org-agenda-todo-custom-ignore-p):
Autoload.

Those functions were autoloaded from within calls to `org-autoload'
in org.el, we now autoload them from where they live.

9 months agoPartially revert commit adcebf
Bastien Guerry [Fri, 15 Nov 2013 05:22:36 +0000]
Partially revert commit adcebf

* ox.el (org-export-async-init-file):
* ox-odt.el (org-odt-with-latex):
* ox-html.el (org-html-with-latex):
* org.el (org-return-follows-link):
* ob-python.el (org-babel-python-command): Don't use :set.

Thanks to Glenn Morris for pointing at this.

9 months agoox-odt.el (org-odt-content-template-file): Fix version
Bastien Guerry [Thu, 14 Nov 2013 13:13:46 +0000]
ox-odt.el (org-odt-content-template-file): Fix version

* ox-odt.el (org-odt-content-template-file): Fix version.

9 months agoFix errors reported by cus-test.el
Bastien Guerry [Thu, 14 Nov 2013 13:05:18 +0000]
Fix errors reported by cus-test.el

* ox.el (org-export-async-init-file): Use :set to set the
default value.

* ox-texinfo.el (org-texinfo-filename): Fix default value.
(org-texinfo-format-headline-function): Use 'ignore as the
default value.
(org-texinfo-format-drawer-function): Use a function as the
default value.  Update docstring.
(org-texinfo-drawer): Always use
`org-texinfo-format-drawer-function' as it is now a function
by default.
(org-texinfo-headline): Compare
`org-texinfo-format-headline-function' against 'ignore.
(org-texinfo-inlinetask): Compare
`org-texinfo-format-inlinetask-function' against 'ignore.

* ox-odt.el (org-odt-format-drawer-function): Use a function
as the default value.  Update docstring.
(org-odt-format-headline-function)
(org-odt-format-inlinetask-function): Fix default value.
(org-odt-with-latex): Use :set to set the default value.
(org-odt-drawer): Always use `org-odt-format-drawer-function'
as it is now a function by default.
(org-odt-format-headline--wrap): Compare
`org-odt-format-headline-function' against 'ignore.

* ox-latex.el (org-latex-format-drawer-function): Use a
function as the default value.  Update docstring.
(org-latex-format-inlinetask-function): Fix default value.
(org-latex-drawer): Always use
`org-latex-format-drawer-function' as it is now a function by
default.
(org-latex-inlinetask): Compare
`org-latex-format-inlinetask-function' against 'ignore.

* ox-html.el (org-html-format-drawer-function): Use a
function as the default value.  Update docstring.
(org-html-format-headline-function)
(org-html-format-inlinetask-function): Fix default value.
(org-html-with-latex): Use :set to set the default value.
(org-html--format-toc-headline)
(org-html-format-headline--wrap): Compare
`org-html-format-headline-function' against 'ignore.
(org-html-inlinetask): Compare
`org-html-format-inlinetask-function' against 'ignore.

* ox-ascii.el (org-ascii-format-drawer-function): Use a
function as the default value.  Update docstring.
(org-ascii-drawer): Always use
`org-ascii-format-drawer-function' as it is now a function by
default.
(org-ascii-format-inlinetask-default): New function.
(org-ascii-format-inlinetask-function): Use
`org-ascii-format-inlinetask-default' as the default.

* org.el (org-mouse-1-follows-link): Use :set to set the
default value.  Update custom type.
(org-log-note-headings): Fix order or list items in the custom
type.
(orgstruct-heading-prefix-regexp): Use an empty string as the
default value.  Use 'regexp as the custom type.
(orgstruct-make-binding): Tiny docstring enhancement.  Assume
`orgstruct-heading-prefix-regexp' is a string.

* org-agenda.el (org-agenda-search-view-max-outline-level):
Set default value to 0.  Update docstring.
(org-agenda-deadline-leaders): Fix custom type.
(org-search-view): Assume
`org-agenda-search-view-max-outline-level' is a number.

* ob-ruby.el (org-babel-ruby-nil-to): Fix custom type.

* ob-python.el (org-babel-python-mode): Use :set to set the
default value.
(org-babel-python-None-to): Fix custom type.

* ob-plantuml.el (org-plantuml-jar-path): Fix default value.
(org-babel-execute:plantuml): Assume `org-plantuml-jar-path'
is a string.

* ob-latex.el (org-babel-latex-htlatex): Fix default value.
(org-babel-latex-htlatex-packages): Fix custom type.
(org-babel-execute:latex): Assume `org-babel-latex-htlatex' is
a string.

Thanks to Glenn Morris for reporting this.

9 months agoox-odt.el (org-odt-display-outline-level): Fix version
Bastien Guerry [Thu, 14 Nov 2013 08:54:35 +0000]
ox-odt.el (org-odt-display-outline-level): Fix version

* ox-odt.el (org-odt-display-outline-level): Fix version.

9 months agoFix previous commits
Bastien Guerry [Wed, 13 Nov 2013 07:46:01 +0000]
Fix previous commits

Thanks to Jambunathan for pointing this.

9 months agoox-odt.el: Add version and package-version to some options
Bastien Guerry [Wed, 13 Nov 2013 06:35:57 +0000]
ox-odt.el: Add version and package-version to some options

* ox-odt.el (org-odt-inline-formula-rules)
(org-odt-inline-image-rules, org-odt-use-date-fields): Add
version and package-version.

9 months agoox-html.el: Add version and package-version to some options
Bastien Guerry [Wed, 13 Nov 2013 06:27:10 +0000]
ox-html.el: Add version and package-version to some options

* ox-html.el (org-html-format-drawer-function)
(org-html-format-headline-function)
(org-html-format-inlinetask-function)
(org-html-creator-string): Add version and package-version.

Thanks to Jambunathan for reporting problems in this area.

9 months agoox-html.el (org-html-text-markup-alist): Fix version
Bastien Guerry [Tue, 12 Nov 2013 20:24:32 +0000]
ox-html.el (org-html-text-markup-alist): Fix version

* ox-html.el (org-html-text-markup-alist): Fix version.

Thanks to Jambunathan for reporting this.

9 months agoorg-agenda.el (org-agenda-set-restriction-lock): Autoload release_8.2.3b
Bastien Guerry [Tue, 12 Nov 2013 20:12:28 +0000]
org-agenda.el (org-agenda-set-restriction-lock): Autoload

* org-agenda.el (org-agenda-set-restriction-lock): Autoload.

9 months agoBackport changes from Emacs revs 115081 and 115082
Bastien Guerry [Tue, 12 Nov 2013 19:57:31 +0000]
Backport changes from Emacs revs 115081 and 115082

2013-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>

Address some byte-compiler warnings.
* ob-abc.el (org-babel-expand-body:abc): Use dolist.
(org-babel-execute:abc): Fix regexp quoting.
* ob-calc.el (org--var-syms): Rename from `var-syms'.
* ob-lilypond.el (ly-compile-lilyfile): Remove redundant let-binding.
* ob-table.el (sbe): Move debug declaration.
* org-clock.el (org--msg-extra): Rename from `msg-extra'.
* org.el (org-version): Avoid var name starting with _.
(org-inhibit-startup, org-called-with-limited-levels)
(org-link-search-inhibit-query, org-time-was-given)
(org-end-time-was-given, org-def, org-defdecode, org-with-time):
* org-colview.el (org-agenda-overriding-columns-format):
* org-agenda.el (org-agenda-multi, org-depend-tag-blocked)
(org-agenda-show-log-scoped):
* ob-python.el (py-which-bufname, python-shell-buffer-name):
* ob-haskell.el (org-export-copy-to-kill-ring):
* ob-exp.el (org-link-search-inhibit-query):
* ob-R.el (ess-eval-visibly-p):
* ob-core.el (org-src-window-setup): Declare before use.
(org-babel-expand-noweb-references): Remove unused `blocks-in-buffer'.
* ox-odt.el (org-odt-hfy-face-to-css):
* org-src.el (org-src-associate-babel-session, org-src-get-lang-mode):
* org-bibtex.el (org-bibtex-get, org-bibtex-ask, org-bibtex)
(org-bibtex-check):
* ob-tangle.el (org-babel-tangle, org-babel-spec-to-string)
(org-babel-tangle-single-block, org-babel-tangle-comment-links):
* ob-table.el (sbe):
* ob-sqlite.el (org-babel-sqlite-expand-vars):
* ob-sql.el (org-babel-sql-expand-vars):
* ob-shen.el (org-babel-execute:shen):
* ob-sh.el (org-babel-execute:sh, org-babel-sh-evaluate):
* ob-scala.el (org-babel-scala-evaluate):
* ob-ruby.el (org-babel-ruby-table-or-string)
(org-babel-ruby-evaluate):
* ob-python.el (org-babel-python-table-or-string)
(org-babel-python-evaluate-external-process)
(org-babel-python-evaluate-session):
* ob-picolisp.el (org-babel-execute:picolisp):
* ob-perl.el (org-babel-perl-evaluate):
* ob-maxima.el (org-babel-execute:maxima):
* ob-lisp.el (org-babel-execute:lisp):
* ob-java.el (org-babel-execute:java):
* ob-io.el (org-babel-io-evaluate):
* ob-haskell.el (org-babel-execute:haskell):
* ob-fortran.el (org-babel-execute:fortran):
* ob-exp.el (org-babel-exp-code):
* ob-emacs-lisp.el (org-babel-execute:emacs-lisp):
* ob-ditaa.el (org-babel-execute:ditaa):
* ob-core.el (org-babel-execute-src-block, org-babel-sha1-hash)
(org-babel-parse-header-arguments, org-babel-reassemble-table)
(org-babel-goto-src-block-head, org-babel-mark-block)
(org-babel-expand-noweb-references, org-babel-script-escape)
(org-babel-process-file-name):
* ob-clojure.el (org-babel-execute:clojure):
* ob-calc.el (org-babel-execute:calc):
* ob-awk.el (org-babel-execute:awk):
* ob-abc.el (org-babel-execute:abc):
* ob-R.el (org-babel-expand-body:R):
* ob-C.el (org-babel-C-execute): Avoid deprecated ((lambda) ...).

2013-11-12  Glenn Morris  <rgm@gnu.org>

* ox-html.el (org-html-scripts): Add 2013 to copyright years.
(org-html-infojs-template): Copyright holder to FSF.

9 months agoorg.el (org-deadline, org-schedule): Fix bug release_8.2.3 release_8.2.3a
Bastien Guerry [Mon, 11 Nov 2013 17:13:08 +0000]
org.el (org-deadline, org-schedule): Fix bug

* org.el (org-deadline, org-schedule): Fix bug: allow to
update scheduled/deadline information anywhere in the subtree.

9 months agoREADME_maintainer: Fix erroneous statement
Bastien Guerry [Mon, 11 Nov 2013 15:59:19 +0000]
README_maintainer: Fix erroneous statement

* README_maintainer: Fix erroneous statement.

9 months agoox-texinfo: Fix incorrect @documentencoding
Nicolas Goaziou [Mon, 11 Nov 2013 09:09:21 +0000]
ox-texinfo: Fix incorrect @documentencoding

* lisp/ox-texinfo.el (org-texinfo-supported-coding-systems): New
  variable.
(org-texinfo-template): Find appropriate encoding among those
supported.

Reported-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>

9 months agoox: Fix next/previous element getters
Nicolas Goaziou [Mon, 11 Nov 2013 00:54:01 +0000]
ox: Fix next/previous element getters

* lisp/ox.el (org-export-get-previous-element,
  org-export-get-next-element): Fix return value for non plain text
  objects in a secondary string.
* testing/lisp/test-ox.el: Add tests.

9 months agoorg-element: Fix infloops
Nicolas Goaziou [Sun, 10 Nov 2013 10:28:14 +0000]
org-element: Fix infloops

* lisp/org-element.el (org-element-center-block-parser)
  (org-element-drawer-parser, org-element-dynamic-block-parser)
  (org-element-footnote-definition-parser)
  (org-element-inlinetask-parser, org-element-property-drawer-parser)
  (org-element-quote-block-parser, org-element-comment-block-parser)
  (org-element-diary-sexp-parser, org-element-example-block-parser)
  (org-element-keyword-parser, org-element-latex-environment-parser)
  (org-element-paragraph-parser, org-element-src-block-parser)
  (org-element-table-parser, org-element-verse-block-parser): Fix
  infloop when buffer ends with a non-empty blank line after the
  element.
* testing/lisp/test-org-element.el: Add tests.

9 months agoorg-element: Fix infloop
Nicolas Goaziou [Sun, 10 Nov 2013 09:18:17 +0000]
org-element: Fix infloop

* lisp/org-element.el (org-element-comment-parser): Fix infloop when
  a non-empty blank line follows a comment at the end of the buffer.
* testing/lisp/test-org-element.el: Add test.

9 months agoorg.el (org-align-tags-here): Fix bug: move to the correct position
Bastien Guerry [Sat, 9 Nov 2013 16:47:59 +0000]
org.el (org-align-tags-here): Fix bug: move to the correct position

* org.el (org-align-tags-here): Fix bug: move to the correct
position.

Thanks to Reuben Garrett for reporting this bug.

9 months agoox-latex: Remove all temporary files when compiling release_8.2.2
Nicolas Goaziou [Fri, 8 Nov 2013 07:54:52 +0000]
ox-latex: Remove all temporary files when compiling

* lisp/ox-latex.el (org-latex-compile): Remove all numbered temporary
  files after compiling.

9 months agoox-org: Fix headline level during subtree export
Nicolas Goaziou [Wed, 6 Nov 2013 18:14:14 +0000]
ox-org: Fix headline level during subtree export

* lisp/org-element.el (org-element-headline-interpreter): Take into
  consideration `org-odd-levels-only' when building a headline.
* lisp/ox-org.el (org-org-headline): Correctly set transcoded headline
  level during subtree export.

9 months agoorg-inlinetask: Hide inline tasks in 'children visibility state
Jonas Hoersch [Wed, 30 Oct 2013 14:39:33 +0000]
org-inlinetask: Hide inline tasks in 'children visibility state

* lisp/org.el (org-cycle-hide-inline-tasks): Re-hide inline tasks when
  switching to 'children visibility state.

TINYCHANGE

9 months agoorg-capture.el (org-capture-refile): Don't finalize prematurely
Bastien Guerry [Wed, 6 Nov 2013 15:26:38 +0000]
org-capture.el (org-capture-refile): Don't finalize prematurely

* org-capture.el (org-capture-refile): Don't finalize
prematurely.

Thanks to Rodrigo Amestica for reporting this.

9 months agoorg.el (org-agenda-prepare-buffers): Restore the point position
Bastien Guerry [Wed, 6 Nov 2013 15:15:45 +0000]
org.el (org-agenda-prepare-buffers): Restore the point position

* org.el (org-agenda-prepare-buffers): Restore the point
position.

Thanks to Samuel Wales for spotting this.

9 months agoox-html: Add TODO keyword to TOC entries
Nicolas Goaziou [Wed, 6 Nov 2013 14:26:53 +0000]
ox-html: Add TODO keyword to TOC entries

* lisp/ox-html.el (org-html--format-toc-headline): TOC entries are
  closer to regular headline formatting.

9 months agoorg-capture: Fix bug when capturing with templates using `function'
Bastien Guerry [Wed, 6 Nov 2013 14:51:57 +0000]
org-capture: Fix bug when capturing with templates using `function'

* org-capture.el (org-capture): Store :return-to-wconf
earlier.
(org-capture-place-template): Don't store :return-to-wconf
when called from a capture template using `function', rely on
the early :return-to-wconf value store from `org-capture'.

Thanks to Brett Viren for raising this issue.