Carsten Dominik
2b9f8c9433
Rewrite org-insert-heading for maintainability
...
* lisp/org.el (org-insert-heading): Rewritten from scratch.
(org-N-empty-lines-before-current): New function
(org-insert-heading-respect-content): Set the correct argument to
force a heading even in lists.
2013-08-08 08:34:40 +02:00
Nicolas Goaziou
9154c70a04
Export back-ends: Apply changes to export functions
...
* contrib/lisp/ox-confluence.el (org-confluence-export-as-confluence):
* contrib/lisp/ox-deck.el (org-deck-export-as-html,
org-deck-export-to-html):
* contrib/lisp/ox-freemind.el (org-freemind-export-to-freemind):
* contrib/lisp/ox-groff.el (org-groff-export-to-groff,
org-groff-export-to-pdf):
* contrib/lisp/ox-koma-letter.el (org-koma-letter-export-as-latex,
org-koma-letter-export-to-latex, org-koma-letter-export-to-pdf):
* contrib/lisp/ox-rss.el (org-rss-export-as-rss,
org-rss-export-to-rss):
* contrib/lisp/ox-s5.el (org-s5-export-as-html,
org-s5-export-to-html):
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-export):
* lisp/ob-haskell.el:
* lisp/ox-ascii.el (org-ascii-export-as-ascii,
org-ascii-export-to-ascii):
* lisp/ox-beamer.el (org-beamer-export-as-latex,
org-beamer-export-to-latex, org-beamer-export-to-pdf):
* lisp/ox-html.el (org-html-export-as-html, org-html-export-to-html):
* lisp/ox-icalendar.el (org-icalendar-export-to-ics):
* lisp/ox-latex.el (org-latex-export-as-latex,
org-latex-export-to-pdf):
* lisp/ox-man.el (org-man-export-to-man, org-man-export-to-pdf):
* lisp/ox-md.el (org-md-export-as-markdown,
org-md-export-to-markdown):
* lisp/ox-odt.el (org-odt-export-to-odt):
* lisp/ox-org.el (org-org-export-as-org, org-org-export-to-org):
* lisp/ox-publish.el (org-publish-org-to):
* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo,
org-texinfo-export-to-info):
* testing/lisp/test-ob-exp.el (test-ob-exp/org-babel-exp-src-blocks/w-no-file):
2013-08-07 16:11:42 +02:00
Nicolas Goaziou
6f55864f20
ox: Add arguments to `org-export-to-file' and `org-export-to-buffer'
...
* lisp/ox.el (org-export-to-buffer): Add two arguments: one to trigger
asynchronous export and the other to do extra processing from within
the buffer.
(org-export-to-file): Add two arguments: one to trigger asynchronous
export and the other to do extra processing on the output file.
(org-export-async-start): Small clean up.
2013-08-07 16:10:38 +02:00
Nicolas Goaziou
d1d918100e
ox: Fix f5161671ce
...
* lisp/ox.el (org-export-as): Use new back-end structure.
2013-08-03 09:46:58 +02:00
Nicolas Goaziou
b95d7842f2
Merge branch 'maint'
2013-08-03 09:45:42 +02:00
Nicolas Goaziou
f5161671ce
ox: Re-introduce `org-export-current-backend' for compatibility
...
* lisp/ox.el (org-export-current-backend): New variable.
(org-export-as): Use new variable.
Thanks to Christophe Rhodes for providing a preliminary patch.
2013-08-03 09:44:34 +02:00
Nicolas Goaziou
6db74e8d5c
Merge branch 'maint'
2013-08-03 01:52:27 +02:00
Nicolas Goaziou
216521ea2b
ox-ascii: Remove spurious new line between a table and the caption below
...
* lisp/ox-ascii.el (org-ascii-table): Remove spurious new line between
a table and the caption below.
Thanks to Rick Frankel for reporting it and providing a patch.
2013-08-03 01:51:47 +02:00
Nicolas Goaziou
a3375f3432
Merge branch 'maint'
2013-07-31 14:45:09 +02:00
Nicolas Goaziou
cc10c80d85
ox: Preserve coding system when writing output to a file
...
* lisp/ox.el (org-export-to-file): Preserve coding system when writing
output.
2013-07-31 14:44:33 +02:00
Bastien Guerry
483977e016
Merge branch 'maint'
2013-07-30 12:44:56 +02:00
oleh
2710267ed7
o org-clock.el (org-clock-notify-once-if-expired): Honor `org-clock-sound'
...
* org-clock.el (org-clock-notify-once-if-expired): Honor
`org-clock-sound'.
TINYCHANGE
2013-07-30 12:44:43 +02:00
Eric Schulte
184109d416
ob-core remove-if -> org-remove-if
...
* lisp/ob-core.el (org-babel-merge-params): Replace remove-if with
org-remove-if.
2013-07-29 18:18:41 -06:00
Eric Schulte
db9f11a860
check html-link-home exists before triming
...
Ensure that the :html-link-home property exists before passing it to
`org-trim' which assumes it's argument is a string.
2013-07-30 00:04:10 +02:00
Eric Schulte
99a8d97ffa
don't modify missing header arguments during merge
...
* lisp/ob-core.el (org-babel-merge-params): More careful to check that
the colname- and rowname-names header arguments exist during merge.
2013-07-29 07:58:22 -06:00
Nicolas Goaziou
d73ff5fd61
Merge branch 'maint'
2013-07-28 21:40:37 +02:00
Nicolas Goaziou
33a2c7ea68
ox: Fix compilation error with Emacs < 24
...
* lisp/ox.el (org-export-stack-mode-map): Fix compilation error with
Emacs < 24.
2013-07-28 21:40:02 +02:00
Nicolas Goaziou
9b7f43768f
Merge branch 'maint'
2013-07-28 21:33:24 +02:00
Nicolas Goaziou
17ba41434e
ox: Maintain compatibility with Emacs 23
...
* lisp/ox.el (org-export--dispatch-action): Maintain compatibility
with Emacs 23.
2013-07-28 21:32:48 +02:00
Nicolas Goaziou
aef1b17773
Merge branch 'maint'
2013-07-28 10:17:17 +02:00
Nicolas Goaziou
36161345d1
Reintroduce support for `adaptive-fill-regexp' in paragraphs and comments
...
* lisp/org.el (org-adaptive-fill-function, org-fill-paragraph): Add
support for `adaptive-fill-regexp' in paragraphs and comments.
* testing/lisp/test-org.el: Add tests.
2013-07-28 10:16:03 +02:00
Aaron Ecay
0cef5b63eb
ox-latex: support SVG images
...
* lisp/ox-latex.el (org-latex-inline-image-rules): add "svg" to
supported filetypes.
(org-latex--inline-image): implement the appropriate code for including
SVG files.
This relies on the "svg" LaTeX package (http://www.ctan.org/pkg/svg )
2013-07-27 02:24:38 -04:00
Aaron Ecay
46d05e4d08
Update function declaration in ob-python.el
...
* lisp/ob-python.el: Update the arglist passed to `declare-function' for
`run-python'.
2013-07-27 02:21:22 -04:00
Eric Schulte
3142297d69
delete colnames/rownames for replaced variables
...
Thanks to Rick Frankel for help debugging this problem.
* lisp/ob-core.el (org-babel-merge-params): When merging parameters, if
a variable is replaced with a new value, then delete colnames/rownames
for the original value of that variable.
2013-07-26 18:53:13 -06:00
Nicolas Goaziou
6f20e3f0ff
Merge branch 'maint'
2013-07-25 19:00:51 +02:00
Nicolas Goaziou
af300bd5b0
Fix indentation after a list
...
* lisp/org.el (org-indent-line): Fix indentation after a list.
2013-07-25 18:57:59 +02:00
Bastien Guerry
c815fe55cd
Merge branch 'maint'
2013-07-24 01:37:33 +02:00
Bastien Guerry
c31ad79326
ox.el: Remove reference to the obsolete variable `org-export-language-setup'
...
* ox.el: Remove reference to the obsolete variable
`org-export-language-setup'.
2013-07-24 01:37:16 +02:00
Nicolas Goaziou
814755a2d7
ox: Fix small bug
...
* lisp/ox.el (org-export--get-inbuffer-options): Fix small bug
introduced in 908d42c9b6
.
2013-07-22 16:06:47 +02:00
Nicolas Goaziou
908d42c9b6
ox: Multiple options can be set through the same keyword
...
* lisp/ox.el (org-export--get-inbuffer-options): Multiple options can
now be set through the same buffer keyword.
* testing/lisp/test-ox.el: Add test.
2013-07-22 15:15:01 +02:00
Nicolas Goaziou
95dd398f6a
Merge branch 'maint'
...
Conflicts:
testing/lisp/test-org-element.el
2013-07-21 15:54:08 +02:00
Nicolas Goaziou
b4a8ec9321
org-element: Fix infloop when parsing a list at the end of buffer
...
* lisp/org-element.el (org-element-plain-list-parser): Fix infloop
when parsing a list at the end of buffer, if buffer doesn't end at
a line beginning.
* testing/lisp/test-org-element.el: Add test.
2013-07-21 15:51:14 +02:00
Nicolas Goaziou
17b584df89
Merge branch 'maint'
2013-07-20 13:53:35 +02:00
Nicolas Goaziou
21dd83661b
org-element: Do not url-decode parsed links
...
* lisp/org-element.el (org-element-link-parser): Do not url-decode
parsed links.
The function now assumes link at point is correctly encoded if needed.
`org-insert-link' already automatically url-encode generated links,
and link types not handled by this function (e.g., custom-id links) do
not need such encoding.
2013-07-20 13:51:18 +02:00
Nicolas Goaziou
3386033165
Merge branch 'maint'
2013-07-18 15:57:15 +02:00
Nicolas Goaziou
40b44e4505
org-pcomplete: Remove spurious white spaces in block completion
...
* lisp/org-pcomplete.el (pcomplete/org-mode/file-option): Remove
spurious white spaces, excepted for source blocks' opening string.
Small refactoring.
2013-07-18 15:54:15 +02:00
Andreas Leha
0b770b125f
add *.tikz files as possible result files for latex blocks
...
* lisp/ob-latex.el (org-babel-execute:latex) add a tizk option
that copies the body of the block into a tikz file
2013-07-17 15:44:49 -06:00
Eric Schulte
8d5ad6553f
make java executable configurable for ditaa blocks
...
* lisp/ob-ditaa.el (org-babel-ditaa-java-cmd): Make java executable
configurable for ditaa blocks.
2013-07-17 08:20:37 -06:00
Eric Schulte
f6ac1a2078
fix bug in ob-sh when dealing with list variables
...
* lisp/ob-sh.el (org-babel-sh-var-to-string): Fix bug in ob-sh when
dealing with list variables.
2013-07-17 08:15:41 -06:00
Nicolas Goaziou
e8766c33f8
Merge branch 'maint'
2013-07-15 17:43:24 +02:00
Nicolas Goaziou
1af5a8a7c8
org-pcomplete: Fix completion for block boundaries
...
* lisp/org-pcomplete.el (pcomplete/org-mode/file-option): Remove
spurious colons from block boundaries.
2013-07-15 17:42:13 +02:00
Feng Shu
2a94fca6ca
Fix generating LaTeX formula images
...
* lisp/ox-odt.el (org-odt--translate-latex-fragments): Fix imagemagick support.
* lisp/ox-html.el (org-html-latex-environment)
(org-html-latex-fragment): Fix imagemagick support.
* org.el (org-create-formula-image-with-imagemagick): Generate correct
size formula image.
(org-format-latex-header): Change pagestyle command position.
* doc/org.texi (@LaTeX{} fragments)
(Previewing @LaTeX{} fragments)
(Math formatting in HTML export)
(Working with @LaTeX{} math snippets): Add document about creating
formula image with imagemagick.
2013-07-15 15:31:38 +02:00
Eric Schulte
ca56230fc1
more robust sbe macro
2013-07-14 16:20:49 -06:00
Eric Schulte
4899c79e66
org-src-lang-modes in block demarcation options
...
* lisp/ob-core.el (org-babel-demarcate-block): Include
org-src-lang-modes in block demarcation options.
2013-07-13 12:37:09 -06:00
Eric Schulte
7f5288780f
removed modification of org-babel-load-languages
...
* lisp/ob-C.el: Don't modify `org-babel-load-languages' from ob-* files.
2013-07-13 11:05:45 -06:00
rasmus
6727f1aa75
Better C++ recognition
...
* ob-C.el: Added =C++= to =`org-babel-load-languages'=
automatically after loading =C=.
* org-src.el (org-src-lang-modes): Added association between
language =C++= and =`c++-mode'=.
=C++= is added to org-babel-load-languages to make
`org-babel-demarcate-block' recognize =C++= as a proper language.
2013-07-13 10:35:34 -06:00
Nicolas Goaziou
0c233ae4e9
Merge branch 'maint'
2013-07-12 15:12:01 +02:00
Nicolas Goaziou
7fcf4995af
ox-publish: Fix :recursive parameter ignoring extension restriction
...
* lisp/ox-publish.el (org-publish-find-date): Also return date for
directories.
(org-publish-get-base-files-1): Fix :recursive parameter ignoring
extension restriction.
2013-07-12 15:09:58 +02:00
Nicolas Goaziou
44082746da
Merge branch 'maint'
2013-07-12 09:19:24 +02:00
Nicolas Goaziou
956837087b
ox-beamer: Remove strange indentation in default header
...
* lisp/ox-beamer.el: Remove strange indentation in default header.
2013-07-12 09:18:47 +02:00