org-mode.git
19 hours agoMerge branch 'maint' master
Nicolas Goaziou [Tue, 18 Jun 2013 20:48:08 +0000]
Merge branch 'maint'

19 hours agoox-latex: Allow hyperref and footnotemark in items description tags maint
Nicolas Goaziou [Tue, 18 Jun 2013 20:44:26 +0000]
ox-latex: Allow hyperref and footnotemark in items description tags

* lisp/ox-latex.el (org-latex-item): Allow hyperref and footnotemark
  in items description tags.  Also remove a unnecessary hack allowing
  footnotemark with an optional argument in the tag.

Initial patch from Rick Frankel.

19 hours agoox: Fix fuzzy link resolution before first headline
Nicolas Goaziou [Tue, 18 Jun 2013 20:27:39 +0000]
ox: Fix fuzzy link resolution before first headline

* lisp/ox.el (org-export-resolve-fuzzy-link): Fix link resolution when
  link lives before the first headline.
* testing/lisp/test-ox.el: Add test.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Mon, 17 Jun 2013 15:17:24 +0000]
Merge branch 'maint'

2 days agoorg-element: Fix special block parsing
Nicolas Goaziou [Mon, 17 Jun 2013 15:08:53 +0000]
org-element: Fix special block parsing

* lisp/org-element.el (org-element-special-block-parser): Fix typo in
  regexp matching block type.  Also quote the type so it can contain
  special characters.
* testing/lisp/test-org-element.el: Add test.

2 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 16 Jun 2013 20:49:56 +0000]
Merge branch 'maint'

2 days agoox-latex: Remove -c argument from compilation with texi2dvi
Nicolas Goaziou [Sun, 16 Jun 2013 20:48:37 +0000]
ox-latex: Remove -c argument from compilation with texi2dvi

* lisp/ox-latex.el (org-latex-pdf-process): This argument can cause
  problem with links with a relative path, since compilation happens
  in a different directory.

4 days agoMerge branch 'maint'
Nicolas Goaziou [Fri, 14 Jun 2013 19:42:42 +0000]
Merge branch 'maint'

4 days agoox-latex: Use "ulem" package for both underline and strike through
Nicolas Goaziou [Fri, 14 Jun 2013 17:46:15 +0000]
ox-latex: Use "ulem" package for both underline and strike through

* lisp/org.el (org-latex-default-packages-alist): Load "ulem" package
  by default.  Use "[normalem]" option to preserve \emph definition.
* lisp/ox-latex.el (org-latex-text-markup-alist): Use "\uline" and
  "\sout" commands from "ulem" package.

6 days agomissing argument to error message
Eric Schulte [Thu, 13 Jun 2013 15:44:49 +0000]
missing argument to error message

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Missing
  argument to error message.

6 days agolist term as a gnuplot header argument
Eric Schulte [Thu, 13 Jun 2013 05:44:05 +0000]
list term as a gnuplot header argument

* lisp/ob-gnuplot.el (org-babel-header-args:gnuplot): Term is a gnuplot
  header argument.

7 days agoox-latex: Allow AUTO argument to org-latex-guess-babel-language
rasmus.pank [Fri, 31 May 2013 22:20:18 +0000]
ox-latex: Allow AUTO argument to org-latex-guess-babel-language

* ox-latex.el (org-latex-guess-babel-language): replace AUTO with
  language if AUTO is the option of the LaTeX package Babel.
(org-latex-classes): updated documentation with respect
to `org-latex-guess-babel-language'.

TINYCHANGE

7 days agoPossible to set default class for ox koma letters.
rasmus [Sun, 2 Jun 2013 15:59:48 +0000]
Possible to set default class for ox koma letters.

* ox-koma-letter.el (org-koma-letter-default-class): default class for
=ox-koma-letter=. Default is nil.
* ox-koma-letter.el (org-koma-letter-plug-into-ox): add a sparse
letter class to =`org-latex-class'= and set it to default.

By default it will use =`org-latex-default-class'=.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

7 days agoAdded support for to and from heading.
rasmus [Sat, 1 Jun 2013 17:52:36 +0000]
Added support for to and from heading.

* ox-koma-letter.el: documentation.
(org-koma-letter-special-tags-in-letter): list of tags that
are typeset as part of the letter.
(org-koma-letter--determine-special-value): determine which
value to use (for to and from currentlly) if more than
candidate is available.  Which value is selected depends on
`org-koma-letter-prefer-special-headings'.
(org-koma-letter-prefer-special-headings): a boolean stating
whether to prefer headings with to/from or the #+X_ADDRESS.

The following letter now exports "as expected".  In particular when
special-headings is t heading values have presedence so the
from address would be ="Rasmus\nEmacs\nOrg-mode"= where the
=\n=s would be escaped.  If specia-headings is nil (default)
the from would be my-adr.  The same is true for TO address.

Here's the contents

* from :from:

   Rasmus
   Emacs
   Org-mode

On a technical note, note that the default value will be used if
neither #+X_ADDRESS or a heading is given.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

7 days agoBug fixes for ox-koma-letter.el
rasmus.pank [Mon, 27 May 2013 15:29:14 +0000]
Bug fixes for ox-koma-letter.el

* ox-koma-letter.el: updated documentation and improved defcustoms.
(org-koma-letter-special-tags-after-letter)
(org-koma-letter-special-tags-after-closing): now symbol.
(org-koma-letter--get-custom): falls back to value
(org-koma-letter--prepare-special-contents-as-macro): let
newlines be handled outside of the function
(org-koma-letter--remove-offending-new-lines): function to add
new lines.
(org-koma-letter-headline): updated to work with symbols and
made more robust.
(org-koma-letter-export-to-latex): reset
=`org-koma-letter-special-contents'= to nil

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

7 days agoorg-contacts: Provide ordering when using cycle completion
Øyvind Stegard [Mon, 10 Jun 2013 09:08:56 +0000]
org-contacts: Provide ordering when using cycle completion

* contrib/lisp/org-contacts.el (org-contacts-metadata-prefix):
Provide same function for cycle ordering as is used for display ordering
in completion metadata.

When using cycle completion style for contacts, by setting
`completion-cycle-threshold' to some value, the ordering was not consistent
with order of email addresses in contact definition, nor the order
which was used for regular display completion. Fix that by also
supplying sort function for cycle completion in metadata.

7 days agofixed bug in tangle-file
Eric Schulte [Tue, 11 Jun 2013 13:09:23 +0000]
fixed bug in tangle-file

* lisp/ob-tangle.el (org-babel-tangle): Fixed bug in tangle-file.

8 days agoorg-compat.el: Fix indentation.
Bastien Guerry [Tue, 11 Jun 2013 01:17:27 +0000]
org-compat.el: Fix indentation.

8 days agoob-core: allow language specific header arguments in properties
Achim Gratz [Fri, 7 Jun 2013 20:19:38 +0000]
ob-core: allow language specific header arguments in properties

* lisp/ob-core.el (org-babel-insert-header-arg,
  org-babel-parse-src-block-match): Replace `if' with empty else part
  by `when' for readability.  (org-babel-params-from-properties):
  Inquire for language specific and default header properties.
  Language specific header properties take precedence over default
  header properties and old-style header property specifications.

This allows for header arguments to be specified as
properties (including inheritance).

#+PROPERTY: header-args :cache "no"
#+PROPERTY: header-args:R :session "*R-property*"

:PROPERTIES:
:header-args:   :cache "yes"
:header-args:R: :session "*R-drawer*"
:END:

8 days agoorg-compat: XEmacs actually needs the argument lists...
Achim Gratz [Mon, 10 Jun 2013 18:47:41 +0000]
org-compat: XEmacs actually needs the argument lists...

org-compat (define-obsolete-variable-alias,
define-obsolete-function-alias): Re-introduce argument lists as
XEmacs' byte-compiler otherwise stops compilation.

This means that no other advices must modify these functions with a
different argument list.

8 days agoorg-compat: remove argument lists from defadvice, use positional arguments instead
Achim Gratz [Mon, 10 Jun 2013 18:13:43 +0000]
org-compat: remove argument lists from defadvice, use positional arguments instead

org-compat (custom-handle-keyword, define-obsolete-variable-alias,
define-obsolete-function-alias): Remove argument lists from defadvice
and use positional arguments instead of named arguments.

8 days agoorg-compat: strip last argument from define-obsolete-{function,variable}-alias for...
Achim Gratz [Mon, 10 Jun 2013 17:45:14 +0000]
org-compat: strip last argument from define-obsolete-{function,variable}-alias for XEmacs

* lisp/org-compat.el (define-obsolete-variable-alias,
  define-obsolete-function-alias): Actually remove the third (and any
  following) argument from the argument list before calling the
  advised function.

8 days agochange file modes once after tangling
Eric Schulte [Mon, 10 Jun 2013 15:55:28 +0000]
change file modes once after tangling

* lisp/ob-tangle.el (org-babel-tangle): Collect tangle modes, and only
  apply them to the file after all tangling has completed, including the
  post-tangle-hook.

10 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 9 Jun 2013 09:30:51 +0000]
Merge branch 'maint'

10 days agolisp/ox-html.el: Minimal encoding for code and verbatim text
Aurélien Aptel [Thu, 6 Jun 2013 18:55:33 +0000]
lisp/ox-html.el: Minimal encoding for code and verbatim text

* lisp/ox-html.el: Remove fancy string replacements for code and
verbatim text when exporting to html.

Exporting =--option= or ~--option~ to html used to replace -- with a
ndash.

TINYCHANGE

10 days agoMerge branch 'maint'
Nicolas Goaziou [Sun, 9 Jun 2013 09:14:28 +0000]
Merge branch 'maint'

10 days agoox-latex: Use \ul (from soul package) instead of \underline
Nicolas Goaziou [Sun, 9 Jun 2013 09:11:13 +0000]
ox-latex: Use \ul (from soul package) instead of \underline

* lisp/org.el (org-latex-default-packages-alist): Document need for
  "soul" package.
* lisp/ox-latex.el (org-latex-text-markup-alist): Use \ul (from "soul"
  package) instead of \underline for underline text.

10 days agoupdating tangle-mode documentation for new reading
Eric Schulte [Sat, 8 Jun 2013 21:15:28 +0000]
updating tangle-mode documentation for new reading

10 days agodo not read #-prefix header-arg value as emacs lisp
Eric Schulte [Sat, 8 Jun 2013 21:13:38 +0000]
do not read #-prefix header-arg value as emacs lisp

* lisp/ob-core.el (org-babel-read): Do not read #-prefix header-arg
  value as emacs lisp.

10 days agotesting/examples/babel.org: quote :shebang
Achim Gratz [Sat, 8 Jun 2013 20:06:57 +0000]
testing/examples/babel.org: quote :shebang

* testing/examples/babel.org: Quote :shebang header argument.

2a73e06 introduced a new behaviour for org-babel-read and values
starting with "#" must now be quoted.

10 days agoob-fortran: declare org-every
Achim Gratz [Sat, 8 Jun 2013 19:45:38 +0000]
ob-fortran: declare org-every

* lisp/ob-fortran.el (org-every): Declare.

10 days agoorg.el: improve org-property-re and use it throughout
Achim Gratz [Thu, 9 May 2013 17:47:59 +0000]
org.el: improve org-property-re and use it throughout

* lisp/org.el (org-property-re): Improve definition so that this regex
  can be used in all situations.  Extend docstring with explanation of
  matching groups.
  (org-at-property-p): Implement using `org-element-at-point'.
  (org-entry-properties, org-buffer-property-keys, org-indent-line):
  Use `org-property-re' and adjust match group numbers accordingly.

* lisp/org-element.el (org-element-node-property-parser): Use
  `org-property-re' and adjust match group numbers accordingly.  Move
  `looking-at' out of the let clause to not rely on the unspecified
  evaluation order inside the let.

10 days agoorg-babel-current-exec-src-block-head -> org-babel-current-src-block-location
Eric Schulte [Sat, 8 Jun 2013 19:19:38 +0000]
org-babel-current-exec-src-block-head -> org-babel-current-src-block-location

* lisp/ob-core.el (org-babel-current-src-block-location): Rename
  org-babel-current-exec-src-block-head to
  org-babel-current-src-block-location.
(org-babel-execute-src-block): Rename
  org-babel-current-exec-src-block-head to
  org-babel-current-src-block-location.
* lisp/ob-exp.el (org-babel-exp-results): Rename
  org-babel-current-exec-src-block-head to
  org-babel-current-src-block-location.
* lisp/ob-lob.el (org-babel-lob-execute): Rename
  org-babel-current-exec-src-block-head to
  org-babel-current-src-block-location.

10 days agofix errors building the documentation
Eric Schulte [Sat, 8 Jun 2013 18:30:26 +0000]
fix errors building the documentation

10 days agoadding a new global tangle-mode header argument
Eric Schulte [Sat, 8 Jun 2013 18:29:02 +0000]
adding a new global tangle-mode header argument

* doc/org.texi (Top): Documentation for new tangle-mode header argument.
  (Specific header arguments): Documentation for new tangle-mode header
  argument.
  (rownames): Documentation for new tangle-mode header argument.
  (tangle-mode): Documentation for new tangle-mode header argument.

* lisp/ob-core.el (org-babel-common-header-args-w-values): Adding the
  new :tangle-mode header argument.
  (org-babel-read): Read values starting with a "#" character as emacs
  lisp.

* lisp/ob-tangle.el (org-babel-tangle): Use the new :tangle-mode header
  argument.

* lisp/org-pcomplete.el (pcomplete/org-mode/block-option/src): Use the
  new :tangle-mode header argument.

10 days agosave code block location during export
Eric Schulte [Sat, 8 Jun 2013 18:00:53 +0000]
save code block location during export

* lisp/ob-exp.el (org-babel-exp-results): Save the code block location
  into `org-babel-current-exec-src-block-head' during export.

12 days agoavoid file warnings in org-babel-post-tangle-hook
Vitalie Spinu [Fri, 7 Jun 2013 10:43:55 +0000]
avoid file warnings in org-babel-post-tangle-hook

* lisp/ob-tangle.el (org-babel-find-file-noselect-refresh): call
  find-file-noselect with 'nowarn argument to surpress yes-or-no-p
  reversion message.

12 days agoupdated jump submodule for those behind http proxy
Eric Schulte [Thu, 6 Jun 2013 20:36:24 +0000]
updated jump submodule for those behind http proxy

12 days agomore robust edebug spec
Eric Schulte [Thu, 6 Jun 2013 18:29:37 +0000]
more robust edebug spec

* lisp/ob-comint.el (org-babel-comint-with-output): More robust edebug
  spec.

12 days agoob-C: Add list support.
Rüdiger Sonderfeld [Thu, 6 Jun 2013 17:49:03 +0000]
ob-C: Add list support.

* lisp/ob-C.el (org-babel-C-var-to-C): Add list support
(org-babel-C-val-to-C-list-type, org-babel-C-val-to-C-type,
org-babel-C-format-val): New functions.
(org-babel-C-ensure-main-wrap, org-babel-execute:C,
org-babel-execute:C++, rg-babel-execute:cpp, org-babel-C++-compiler,
org-babel-C-compiler): Improve docstring.
* testing/examples/ob-C-test.org (string_var): Add required std::
(Array): Add missing ID.
(Matrix): Add tests for list support.
* testing/lisp/test-ob-C.el (ob-C/table): Test succeeds.
(ob-C/list-var, ob-C/vector-var, ob-C/list-list-var): Add tests for
list support.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>

12 days agosub -> subsub heading
Eric Schulte [Thu, 6 Jun 2013 17:07:52 +0000]
sub -> subsub heading

12 days agoinline sets org-babel-current-exec-src-block-head
Eric Schulte [Thu, 6 Jun 2013 16:59:27 +0000]
inline sets org-babel-current-exec-src-block-head

* lisp/ob-lob.el (org-babel-lob-execute): Set the
  org-babel-current-exec-src-block-head variable when executing inline
  or lob style code.

12 days agoorg-babel-current-exec-src-block-head -> outermost
Eric Schulte [Thu, 6 Jun 2013 16:58:52 +0000]
org-babel-current-exec-src-block-head -> outermost

* lisp/ob-core.el (org-babel-execute-src-block): The
  org-babel-current-exec-src-block-head variable should point to the
  outermost code block.

12 days agoif we have org-every we should have org-some
Eric Schulte [Thu, 6 Jun 2013 16:19:23 +0000]
if we have org-every we should have org-some

* lisp/org.el (org-some): An org-mode version of the cl some function.

12 days agomore careful check if values are matrices
Eric Schulte [Thu, 6 Jun 2013 16:16:01 +0000]
more careful check if values are matrices

* lisp/ob-fortran.el (org-babel-fortran-var-to-fortran): More careful
  check if values are matrices.

12 days agoan Org-mode version of the cl every function
Eric Schulte [Thu, 6 Jun 2013 16:15:43 +0000]
an Org-mode version of the cl every function

* lisp/org.el (org-every): An Org-mode version of the cl every function.

13 days agomake src block location available to execution backends
Vitalie Spinu [Thu, 6 Jun 2013 10:04:02 +0000]
make src block location available to execution backends

* lisp/ob-core.el (org-babel-where-is-src-block-head): return
  point-marker instead of point.

  (org-babel-current-exec-src-block-head): new global variable which is
  bound during `org-babel-execute-src-block-maybe'

  (org-babel-get-src-block-info): return a list of 7 elements, last
  being the header location

Evaluation backends might need to use the exact location of the block in
original org file. For example when inserting the correct source
references for visual debugging. With this patch the information on
current block is available in `org-babel-current-exec-src-block-head'.

13 days ago`org-src-switch-to-buffer' to jump from src to org
Eric Schulte [Thu, 6 Jun 2013 15:11:54 +0000]
`org-src-switch-to-buffer' to jump from src to org

* lisp/ob-tangle.el (org-babel-tangle-jump-to-org): Use
  `org-src-switch-to-buffer' to jump from src to org.

13 days agodocumentation of jump-from-src-to-org functionality
Eric Schulte [Thu, 6 Jun 2013 15:03:09 +0000]
documentation of jump-from-src-to-org functionality

2 weeks agoorg-entities: Add support for hbar.
Rüdiger Sonderfeld [Wed, 5 Jun 2013 15:12:51 +0000]
org-entities: Add support for hbar.

* lisp/org-entities.el (org-entities): Add support for hbar.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>

2 weeks agoorg.el (org-reftex-citation): Fix a docstring
Grégoire Jadi [Wed, 5 Jun 2013 15:26:21 +0000]
org.el (org-reftex-citation): Fix a docstring

* lisp/org.el (org-reftex-citation): Fix contrib package name in the
docstring.

Thanks to ruediger on #org-mode for reporting this.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 5 Jun 2013 12:24:58 +0000]
Merge branch 'maint'

2 weeks agoox: Fix "Wrong argument type" error when attributes start with :key ""
Nicolas Goaziou [Wed, 5 Jun 2013 12:24:18 +0000]
ox: Fix "Wrong argument type" error when attributes start with :key ""

* lisp/ox.el (org-export-read-attribute): Fix "Wrong argument type"
  error when attributes start with :key "".

2 weeks agoAdd a matrix input to ob-fortran.el
Litvinov Sergey [Sat, 1 Jun 2013 17:20:06 +0000]
Add a matrix input to ob-fortran.el

* lisp/ob-fortran.el: add a branch which handles nested lists
* testing/examples/ob-fortran-test.org: add a test for matrix input
* testing/lisp/test-ob-fortran.el: add a test for matrix input

2 weeks agocontrib/lisp/org-contacts.el: Add a complex org-contacts template to the file header
Feng Shu [Sun, 2 Jun 2013 23:35:09 +0000]
contrib/lisp/org-contacts.el: Add a complex org-contacts template to the file header

* contrib/lisp/org-contacts.el: Add a complex org-contacts template to
the file header, which can help users to know all the org-contacts
properties quickly.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sun, 2 Jun 2013 08:02:27 +0000]
Merge branch 'maint'

2 weeks agoorg.el: Fix some docstrings
Nicolas Goaziou [Sun, 2 Jun 2013 08:01:10 +0000]
org.el: Fix some docstrings

* lisp/org.el (org-fill-paragraph-separate-nobreak-p,
  org-fill-line-break-nobreak-p,
  org-fill-paragraph-with-timestamp-nobreak-p): Fix docstrings.

2 weeks agoox-bibtex: Fix compilation warnings
Nicolas Goaziou [Sun, 2 Jun 2013 07:33:57 +0000]
ox-bibtex: Fix compilation warnings

* contrib/lisp/ox-bibtex.el (org-bibtex-html-entries-alist,
  org-bibtex-html-keywords-alist): Fix compilation warnings.

2 weeks agoorg-element: Fix failing "plain-list-parser" test
Nicolas Goaziou [Sat, 1 Jun 2013 19:38:15 +0000]
org-element: Fix failing "plain-list-parser" test

* lisp/org-element.el (org-element--list-struct): Fix failing
  "plain-list-parser" test.
* testing/lisp/test-org-element.el: Update test.

2 weeks agoox-latex: Extend :float attribute to source blocks and normalize its values
Nicolas Goaziou [Mon, 20 May 2013 08:43:18 +0000]
ox-latex: Extend :float attribute to source blocks and normalize its values

* lisp/ox-latex.el (org-latex-src-block): Handle :float attribute. Its
  value can be set to "t", "multicolumn" or "nil".  Also
  remove :long-listing attribute, which is now replaced with :float
  nil.
(org-latex--org-table): Replace :float table with :float t.
(org-latex--inline-image): Replace :float figure with :float t.
(org-latex-long-listings): Remove variable.
* doc/org.texi (@LaTeX{} specific attributes): Document new :float values.

2 weeks agoCompatibility: fix XEmacs compilation failures
Achim Gratz [Sat, 1 Jun 2013 09:21:48 +0000]
Compatibility: fix XEmacs compilation failures

* lisp/ob-eval.el, lisp/ob.el, lisp/org-macro.el, lisp/org-mhe.el:
  Require org-macs and org-compat as necessary.
* lisp/ob-tangle.el: Declare function `org-store-link' and
  `org-open-link-from-string'.
* lisp/org-compat.el: Extend eval-and-compile clause and add advices
  for functions that have different parameter lists in XEmacs. Add
  variable definitions that XEmacs lacks .
* lisp/org-macs.el (declare-function): Define macro to use autoload
  instead for XEmacs.
* lisp/ox-html.el, lisp/ox-odt.el: XEmacs does not have table.el, so
  use 'noerror on the require form.
* lisp/ox-texinfo.el (org-texinfo-table-column-widths): Fix spliced
  argument list that XEmacs complains about by adding parenthesis.

This fixes all compilation failures on XEmacs and warnings related to
Org that indicate that XEmacs has compiled things wrongly (for
instance it might have interpreted a function as a variable symbol).
There are still many warnings that probably indicate serious problems.

2 weeks agoob-tangle: declare org-edit-special
Achim Gratz [Sat, 1 Jun 2013 06:23:58 +0000]
ob-tangle: declare org-edit-special

* lisp/ob-tangle.el (org-edit-special): Declare function.

Fixes a byte-compiler warning introduced in d9cfec3040.

2 weeks agoorg-test: prepare for more selective batch testing
Achim Gratz [Sun, 19 May 2013 07:20:17 +0000]
org-test: prepare for more selective batch testing

* testing/org-test.el: Conditionalize interactive setup on
  bound-and-true `org-batch-test'.  (org-id-locations-file): New
  defvar.  (org-test-run-batch-tests): Use `org-id-locations-file'
  defined before and add optional argument `org-test-selector' to
  control which tests to run.

This change introduces ability to select the tests to run for batch
testing and removes several dependencies not needed during batch test
when `org-batch-test' is defined in preparation for a corresponding
change in how the build system invokes batch testing.  Full backward
compatibility is maintained.

2 weeks agoTurn flyspell off in src blocks.
Carsten Dominik [Sat, 1 Jun 2013 06:34:29 +0000]
Turn flyspell off in src blocks.

* lisp/org.el (org-mode-flyspell-verify): Check for src block.

Based on a patch by Trevor Murphy.

2 weeks agoFix `interactive' statement in `org-table-convert-region'
Carsten Dominik [Sat, 1 Jun 2013 05:46:08 +0000]
Fix `interactive' statement in `org-table-convert-region'

* lisp/org-table.el (org-table-convert-region): Fix interactive statement.

2 weeks agoorg-element: Use internal version of `org-list-struct'
Nicolas Goaziou [Fri, 31 May 2013 18:13:29 +0000]
org-element: Use internal version of `org-list-struct'

* lisp/org-element.el (org-element--list-struct): New function.
(org-element-plain-list-parser, org-element--current-element): Use new
function.

This patch removes dependency on org-list.el to parsing lists. For
now, it leads to code duplication, but, ultimately (i.e., when parsing
will be faster), org-list.el will delegate the parsing job to
org-element. The new implementation is also faster than the previous one.

2 weeks agocontrib/lisp/org-contacts.el: Various formatting improvements and bug fixes
Grégoire Jadi [Thu, 30 May 2013 23:54:19 +0000]
contrib/lisp/org-contacts.el: Various formatting improvements and bug fixes

* contrib/lisp/org-contacts.el (org-contacts-ignore-property): Improve
formatting and spelling.
(org-contacts-complete-name): Improve formatting.
(org-contacts-vcard-format): Improve formatting and silent byte compiler.
(org-contacts-split-property): Fix a bug where `omit-nulls' were not
forced to `t' when `separators' was nil.

2 weeks agocontrib/lisp/org-contacts.el: Add a feature, which can ignore emails or phones with...
Feng Shu [Wed, 29 May 2013 12:30:43 +0000]
contrib/lisp/org-contacts.el: Add a feature, which can ignore emails or phones with property

* contrib/lisp/org-contacts.el (org-contacts-ignore-property): New variable.
(org-contacts-remove-ignored-property-values): New function, which
remove all ignore-list's elements from list.
(org-contacts-complete-name): When completing, ignore the
values which has been included into the ignore property.
(org-contacts-vcard-format): Don't export the values which has
been included into the ignore property.

If emails or phones is included into the ignore property, they will
not show in complete buffer. When the contact is exported to vcard,
they will be ignored too.

2 weeks agojump back to the correct point in the code block
Eric Schulte [Thu, 30 May 2013 22:03:21 +0000]
jump back to the correct point in the code block

* lisp/ob-tangle.el (org-babel-tangle-jump-to-org): Use the existing
  org-edit-src functionality to jump back to the correct point in the
  code block in the original Org-mode buffer.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 30 May 2013 19:51:00 +0000]
Merge branch 'maint'

Conflicts:
lisp/ox-html.el

2 weeks agoFix commit 0018428c256b09b964439fde75cca702b9ddcca6
Nicolas Goaziou [Thu, 30 May 2013 19:48:48 +0000]
Fix commit 0018428c256b09b964439fde75cca702b9ddcca6

* contrib/lisp/ox-groff.el (org-groff-compile): Use appropriate
  argument.
* lisp/ox-man.el (org-man-compile): Use appropriate argument.
* lisp/ox-texinfo.el (org-texinfo-compile): Use appropriate argument.

2 weeks agoox-html: Fix handling of time-stamp-file
Kodi Arfer [Thu, 30 May 2013 19:19:57 +0000]
ox-html: Fix handling of time-stamp-file

* lisp/ox-html.el (org-html--build-meta-info): Insert no timestamp
  when :time-stamp-file is nil.

TINYCHANGE

2 weeks agoox-html: Fix handling of time-stamp-file
Kodi Arfer [Thu, 30 May 2013 19:19:57 +0000]
ox-html: Fix handling of time-stamp-file

* lisp/ox-html.el (org-html--build-meta-info): Insert no timestamp
  when :time-stamp-file is nil.

TINYCHANGE

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 30 May 2013 18:33:24 +0000]
Merge branch 'maint'

2 weeks agoexport back-ends: Fix subtree export with a relative path
Nicolas Goaziou [Thu, 30 May 2013 18:29:34 +0000]
export back-ends: Fix subtree export with a relative path

* lisp/ox-latex.el (org-latex-compile): Properly set working
  directory.
* lisp/ox-man.el (org-man-compile): Properly set working directory.
* lisp/ox-texinfo.el (org-texinfo-compile): Properly set working
  directory.
* contrib/lisp/ox-groff.el (org-groff-compile): Properly set working
  directory.

2 weeks agoRevert "export backends: Fix "PDF file ... wasn't produced" error with relative paths"
Nicolas Goaziou [Thu, 30 May 2013 18:29:48 +0000]
Revert "export backends: Fix "PDF file ... wasn't produced" error with relative paths"

This reverts commit 752a4eb49d1dff09b4a59e31bf29128a3202dc22.

2 weeks agoox-latex: Fix `listings' language for `latex' code blocks
Sebastien Vauban [Tue, 28 May 2013 19:18:53 +0000]
ox-latex: Fix `listings' language for `latex' code blocks

* ox-latex.el (org-latex-listings-langs): Update custom variable.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 30 May 2013 13:19:03 +0000]
Merge branch 'maint'

2 weeks agoob-exp: Tiny cleanup related to 87ab99
Nicolas Goaziou [Thu, 30 May 2013 13:18:17 +0000]
ob-exp: Tiny cleanup related to 87ab99

* lisp/ob-exp.el (org-babel-exp-process-buffer): Tiny cleanup related
  to 87ab99f563606494fa147f2d71b20288f41f1d59.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Thu, 30 May 2013 12:33:47 +0000]
Merge branch 'maint'

Conflicts:
contrib/lisp/ox-deck.el

2 weeks agoexport backends: Fix "PDF file ... wasn't produced" error with relative paths
Nicolas Goaziou [Thu, 30 May 2013 12:08:14 +0000]
export backends: Fix "PDF file ... wasn't produced" error with relative paths

* lisp/ox-latex.el (org-latex-compile): Make sure generated file can
  be found by `file-exists-p'.
* contrib/lisp/ox-groff.el (org-groff-compile): Make sure generated
  file can be found by `file-exists-p'.
* lisp/ox-man.el (org-man-compile): Make sure generated file can be
  found by `file-exists-p'.
* lisp/ox-texinfo.el (org-texinfo-compile): Make sure generated file
  can be found by `file-exists-p'.

2 weeks agoRefactor fetching html doctype from alist into function so it can be reused in inheri...
Rick Frankel [Wed, 29 May 2013 13:53:51 +0000]
Refactor fetching html doctype from alist into function so it can be reused in inherited exporters.

* lisp/ox-html.el (org-html-doctype): Add new function `org-html-doctype'.
(org-html-template): Use `org-html-doctype' function instead of inline
code.

* contrib/lisp/ox-deck.el (org-deck-template): Use `org-html-doctype'
  function instead of inline code.

* contrib/lisp/ox-s5.el (org-s5-template): Use `org-html-doctype'
  function instead of inline code.

3 weeks agoFix issues with TOC, internal links and html-doctype.
Rick Frankel [Tue, 28 May 2013 11:41:30 +0000]
Fix issues with TOC, internal links and html-doctype.

* contrib/lisp/ox-deck.el (deck): add new deck specific link handler.
(org-deck-toc): Add "sec-" to non-custom link ids.
(org-deck-link): New function. Rename internal link to point at
container instead of heading.
(org-deck-template): Use alist doctype instead of string (per changes
to ox-html).

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 28 May 2013 08:49:44 +0000]
Merge branch 'maint'

3 weeks agoox-md: Fix error when exporting underline objects
Nicolas Goaziou [Tue, 28 May 2013 08:48:08 +0000]
ox-md: Fix error when exporting underline objects

* lisp/ox-md.el (md): Delegate underscore transcoding to HTML
  back-end.

3 weeks agoox-koma-letter: changed handling of subject.
rasmus.pank [Sun, 19 May 2013 15:32:44 +0000]
ox-koma-letter: changed handling of subject.

* ox-koma-letter.el: =`org-koma-letter-subject-format'= can now be a list.  Default is t.
   If nil neither subject format nor type is exported.
* ox-koma-letter.el (org-koma-letter-template): better subject handling.
* ox-koma-letter.el (org-koma-letter-template): allow for t value of =#+OPTIONS: subject:VALUE=
* ox-koma-letter.el (org-koma-letter-template): export of subject format is independent
of title, but title is not independent of =:with-subject=.

The issue was with =#+OPTIONS: subject:t= one would get a LaTeX error.

New behavior:

If =#+OPTIONS: subject:(x,y)= then =\KOMAoption{subject}{x, y}=.

If =subject:x= then =\KOMAoption{subject}{x}=.

If =subject:t= then =\KOMAoption{subject}{...}= is not set but
\setkomavar{subject}{...} is set (in the output file)

If =subject:nil= neither are printed.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

3 weeks agoChange default of org-koma-letter-signature to nil.
rasmus.pank [Sat, 25 May 2013 17:35:10 +0000]
Change default of org-koma-letter-signature to nil.

* ox-koma-letter.el(org-koma-letter-signature): set to nil.

The previoues value corresponds to the default value cf. the the koma
manual pp. 183.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

3 weeks agoAdded support for after closing and after document entities in ox-koma-letter.
rasmus.pank [Sun, 26 May 2013 14:14:51 +0000]
Added support for after closing and after document entities in ox-koma-letter.

* ox-koma-letter.el (org-koma-letter-special-tags-after-closing):
  specials tags inserted after =\end{closing}=.
* ox-koma-letter.el (org-koma-letter-special-tags): collect
  the special lists.
* ox-koma-letter.el (org-koma-letter-headline): stores content
  in of headline if the first tag is special.  Otherwise return content.
* ox-koma-letter.el (org-koma-letter-special-content): holds special
  content temporarily.
* ox-koma-letter.el (org-koma-letter--format-string-as-macro): format a string as
  a macro or don't.
* ox-koma-letter.el (org-koma-letter-template): added support
  for the headings with special tags.

The following example will now export a sensible manner.

* my letter
  here's a letter
* PS :ps:
  it's requires this patch
* CC :cc:
  Nicolas, Viktor and Alan
* ENCL :encl:
  many patches
  1. this patch
  2. another patch.
* include patches :after_letter:
  \myspecialmacro

  \includepdf{pdf}

Namely, content of ps, encl and cc headings will be exported after
\closing{.}  in the order prescribed by
=`org-koma-letter-special-tags-after-closing'= as a (LaTeX) macro
removing trailing and leading newlines.  The macro is the same as the
tag, althogh the case is determined by the special list.

The concents of the =after_letter= heading will be inserted after
=\end{letter}= and newlines are preserved.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

3 weeks agoFix handling of author and email in koma exporter.
rasmus.pank [Sun, 26 May 2013 14:13:39 +0000]
Fix handling of author and email in koma exporter.

* ox-koma-letter.el (org-koma-letter-author): defaults to a function
that returns =`user-full-name'=.

Setting the variables `org-koma-letter-author' and
`org-koma-letter-email' to the values of `user-full-name' and
`user-mail-address' respectively, allows the user to skip =#+AUTHOR:=
and =#+EMAIL:= lines when configuring a letter.  However, if the user
wishes to set this information in LCO files, these variables need to
be set to nil.

With the old after-init-hook method my user name was always set to "".
Now org-koma-letter will (i) allow for default nil values (good if you
use LCO files); (ii) default to =`user-full-name'= and
=`user-mail-address'= like =ox-latex.el=.  These values are obtained
on-the-fly.

The two variables in question can also be strings or functions
returning strings.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

3 weeks agoFix handling of internal links and new html doctype option.
Rick Frankel [Sun, 26 May 2013 23:17:18 +0000]
Fix handling of internal links and new html doctype option.

* contrib/lisp/ox-deck.el (deck): Add deck specific link function.
(org-deck-toc): Generate correct link to slide for custom ids as well
as default section ids.
(org-deck-link): HTML custom ids link to the headline. deck.js
requires linking to the wrapper (slide) so modify the link to point at
the container instead of the headline.
(org-deck-template): Fix doctype handling to use alist option instead
of literal string.

3 weeks agoFix TOC link references.
Rick Frankel [Sun, 26 May 2013 22:31:28 +0000]
Fix TOC link references.

* contrib/lisp/ox-deck.el: TOC link references were being generated as
  "outline-container-{digit}". They need to be
  "outline-container-sec-{digit}".

3 weeks agoorg.el (orgstruct-setup): Bind all intermediate key translations.
Christopher Schmidt [Sun, 26 May 2013 15:31:49 +0000]
org.el (orgstruct-setup): Bind all intermediate key translations.

* org.el (orgstruct-setup): Bind all intermediate key
translations.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 25 May 2013 20:03:48 +0000]
Merge branch 'maint'

3 weeks agoorg-element: Small optimization
Nicolas Goaziou [Sat, 25 May 2013 20:02:26 +0000]
org-element: Small optimization

* lisp/org-element.el (org-element--remove-indentation): Small
  optimization.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 25 May 2013 15:08:57 +0000]
Merge branch 'maint'

3 weeks agoorg-element: Fix a docstring
Nicolas Goaziou [Sat, 25 May 2013 15:07:38 +0000]
org-element: Fix a docstring

* lisp/org-element.el (org-element--remove-indentation): Fix
  docstring.

3 weeks agoMerge branch 'maint'
Nicolas Goaziou [Sat, 25 May 2013 12:37:01 +0000]
Merge branch 'maint'

3 weeks agoorg-element/ox: Fix src-block indentation when it should be preserved
Nicolas Goaziou [Sat, 25 May 2013 12:18:48 +0000]
org-element/ox: Fix src-block indentation when it should be preserved

* lisp/org-element.el (org-element--remove-indentation): New function.
(org-element-example-block-parser, org-element-src-block-parser): Use
new function.
(org-element-src-block-interpreter): Update function according to
change.
* lisp/ox.el (org-export-unravel-code): Do not remove any indentation
  since it now happens at the parser level.
* testing/lisp/test-org-element.el: Add tests.
* testing/lisp/test-ox.el: Refactor tests.

3 weeks agoox-taskjuggler: Small fix
Nicolas Goaziou [Fri, 24 May 2013 12:39:06 +0000]
ox-taskjuggler: Small fix

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-assign-task-ids):
  Small fix.

3 weeks agoox-taskjuggler.el: Fix byte compiler warnings
Christian Egli [Fri, 24 May 2013 10:14:28 +0000]
ox-taskjuggler.el: Fix byte compiler warnings

* ox-taskjuggler.el (org-taskjuggler-get-project)
(org-taskjuggler-resolve-dependencies): Fix references to free
variables.