Mark Edgington
d44bf92fdc
contrib/lisp/ox-extra.el: Add ignore-headlines filter.
...
* contrib/lisp/ox-extra.el: Add ignore-headlines filter.
Thanks to Eric Schulte for the code.
Signed-off-by: Aaron Ecay <aaronecay@gmail.com>
2014-08-06 00:07:57 -04:00
Aaron Ecay
107a2c83ba
ob-core.el: add :output-dir header arg to org-babel-common-header-args-w-values
...
* lisp/ob-core.el (org-babel-common-header-args-w-values): Add
:output-dir'.
Otherwise tthis property is not inherited correctly from
subtree-/file-level properties.
2014-08-06 00:04:52 -04:00
Nicolas Goaziou
f002451544
ox-texinfo: Do not hardcode "Manual" in top node
...
* lisp/ox-texinfo.el (org-texinfo-template): Do not hardcode "Manual"
in top node.
2014-08-05 10:53:39 +02:00
Nicolas Goaziou
4b6f9b25b8
ox-texinfo: Fix `org-texinfo-classes'
...
* lisp/ox-texinfo.el (org-texinfo-classes): Change default value.
Update docstring.
(org-texinfo-template): Insert header string from current class after
"@settitle" command. Always provide "\input texinfo" at the beginning
of the output.
Header string in the class was inserted before "@setfilename".
Texinfo ignores anything between "\input texinfo" and that command,
making any value besides the default one useless.
2014-08-05 10:52:19 +02:00
Nicolas Goaziou
3ff46fdbff
ox-texinfo: Remove spurious blank lines in output
...
* lisp/ox-texinfo.el (org-texinfo-template): Remove spurious blank
lines in output. Refactor code.
2014-08-05 10:52:14 +02:00
Nicolas Goaziou
33f6dc57ae
ox-texinfo: Fix multi-line subtitles
...
* lisp/ox-texinfo.el (org-texinfo-template): Fix multi-line subtitles.
2014-08-05 10:51:46 +02:00
Nicolas Goaziou
6f73155454
ox-texinfo: Check options before inserting TOC
...
* lisp/ox-texinfo.el (org-texinfo-template): Make sure table of
contents are allowed before inserting them.
2014-08-05 10:51:46 +02:00
Nicolas Goaziou
b3fdf490b7
ox-texinfo: Handle documents without copying information
...
* lisp/ox-texinfo.el (org-texinfo-template): Check if copying data is
not nil before using it.
2014-08-05 10:51:43 +02:00
Nicolas Goaziou
2dfaf78058
ox-texinfo: Properly handle subauthors and email
...
* lisp/ox-texinfo.el (org-texinfo-template): Fix multi-line
subauthors. Correctly add email, when provided. Check if author
info is wanted first.
This patch also removes AUTHOR variable since it's up to the user to
set it or not, through a class or a header keyword.
2014-08-04 13:29:26 +02:00
Nicolas Goaziou
e9c1f5ca53
ox-texinfo: Fix docstrings
...
* lisp/ox-texinfo.el (org-texinfo-node-description-column,
org-texinfo-format-drawer-function): Fix docstrings.
2014-08-04 13:29:26 +02:00
Nicolas Goaziou
60a407a7f5
ox-texinfo: Fix comments handling
...
* lisp/ox-texinfo.el (texinfo): Make sure comments are ignored.
(org-texinfo-comment, org-texinfo-comment-block): Remove functions.
This is consistent with all other back-ends, which ignore any comment.
2014-08-04 13:29:26 +02:00
Nicolas Goaziou
fddee022b7
ox-texinfo: Fix error with wide @direntry
...
* lisp/ox-texinfo.el (org-texinfo-template): Properly pad @direntry
description.
2014-08-04 13:29:26 +02:00
Eric Schulte
003eddb82e
protect lisp code blocks from ending comments
...
* lisp/ob-lisp.el (org-babel-lisp-dir-fmt): Protect lisp code blocks
from ending comments by adding newlines behind code in format
strings.
2014-08-03 21:33:13 -04:00
Nicolas Goaziou
0feec82c63
ox-ascii: Fix error preventing export
...
* lisp/ox-ascii.el (org-ascii-filter-paragraph-spacing): Fix "concat:
Wrong type argument: wholenump, auto" error.
Thanks to Xebar Saram for reporting the bug and to Eric Abrahamsen for
finding it out.
http://permalink.gmane.org/gmane.emacs.orgmode/89096
2014-08-03 21:41:37 +02:00
Nicolas Goaziou
381ad4b33a
Small refactoring
...
* lisp/org.el (org-fill-paragraph): Avoid calling
`fill-region-as-paragraph' if BEG is equal to END.
2014-08-03 09:57:37 +02:00
Nicolas Goaziou
d649b792c0
Small refactoring
...
* lisp/org.el (org-fill-paragraph): Small refactoring.
2014-08-02 23:16:05 +02:00
Nicolas Goaziou
cbb82d0c6e
Speed up paragraph filling
...
* lisp/org.el (org-fill-paragraph): Do not parse objects in whole
paragraph if none looks like a line break.
2014-08-02 22:49:24 +02:00
Konrad Herbst
b2866a504d
ox-bibtex: Use bibtex files not in current directory
...
* contrib/lisp/ox-bibtex.el (org-bibtex-process-bib-files): Process
bibtexfilename so that it does not have to be in the same directory.
2014-08-02 21:25:08 +02:00
Nicolas Goaziou
035b2a224d
ORG-NEWS: Document new title behaviour
2014-08-02 21:19:30 +02:00
Nicolas Goaziou
604b93892c
ox: Title fallbacks to nil instead of file name
...
* lisp/ox.el (org-export--get-inbuffer-options):
(org-export-as): Remove title default value handling.
(org-export--get-buffer-attributes): Remove unnecessary property.
* doc/org.texi (Document title):
(Export settings):
* doc/orgguide.texi (Export options): Update documentation.
* testing/lisp/test-ox.el (test-org-export/set-title): Update tests
according to new specifications.
2014-08-02 21:14:22 +02:00
Nicolas Goaziou
6ba05e3200
ox-html: Fix missing <span> block around section number
...
* lisp/ox-html.el (org-html-headline): Add <span> element around
section number.
http://permalink.gmane.org/gmane.emacs.orgmode/89369
2014-08-02 15:36:42 +02:00
Moritz Kiefer
91eee36742
ox-latex.el: Add page number of link when exporting to latex
...
* lisp/ox-latex.el (org-latex--inline-image): Use page
number (:search-option) of pdf links as page option in
includegraphics.
TINYCHANGE
2014-08-02 10:24:41 +02:00
Bastien Guerry
296d82a383
New alias `org-toggle-latex-fragment' for `org-preview-latex-fragment'
...
* org.el (org-ellipsis, org-remove-highlights-with-change):
Enhance docstring.
(org-preview-latex-fragment): Make obsolete. Alias to the new
name `org-toggle-latex-fragment'.
(org-mode, org-mode-map): Use `org-toggle-latex-fragment'.
2014-08-01 13:52:32 +02:00
Nicolas Goaziou
cdb85242d6
Fix block hiding
...
* lisp/org.el (org-hide-block-toggle): Correctly find boundaries of
the block at point. Fix `off' argument behavior. Allow to hide
a block when at any affiliated keyword.
* testing/lisp/test-org.el (test-org/hide-block-toggle): New test.
Thanks to Andrea Rossetti for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89324
2014-08-01 10:50:36 +02:00
Nicolas Goaziou
82b64d1c9b
org.texi: Fix a4fc82c
...
* doc/org.texi (Macro replacement): Ignore quote blocks since they
ultimately contain paragraphs or equivalent. Fix typo.
2014-07-31 16:32:26 +02:00
Nicolas Goaziou
a4fc82ca1c
org.texi: Fix documentation about macros
...
* doc/org.texi (Macro replacement): Fix allowed contexts for macros.
Be more accurate about the time of macro expansion.
2014-07-31 14:57:43 +02:00
Bastien Guerry
4f3c8948e0
Fix trailing spaces in previous commit
2014-07-31 12:54:40 +02:00
Ista Zahn
7326d10dc5
ob-stata.el: new file for stata code evaluation
...
* contrib/lisp/ob-stata.el: New file based on ob-julia.el.
* contrib/README: Document addition of new file.
ob-stata.el provides basic support for evaluating Stata code.
2014-07-31 12:54:17 +02:00
Nicolas Richard
350fdfd676
ox: Signal an error if keyword is unknown while defining backends
...
* lisp/ox.el (org-export-define-backend):
(org-export-define-derived-backend): Signal an error if keyword is
unknown.
2014-07-31 12:22:00 +02:00
Nicolas Goaziou
5ec0468e0a
Merge branch 'maint'
...
Conflicts:
lisp/org-element.el
2014-07-31 12:19:40 +02:00
Nicolas Goaziou
f5065b2ff6
org-element: Fix docstring
...
* lisp/org-element.el (org-element-headline-parser): Add missing
`:post-blank' property in docstring.
2014-07-31 12:17:35 +02:00
Nicolas Goaziou
cc7d757571
ox-html: Fix missing section number in ids
...
* lisp/ox-html.el (org-html-headline): Fix missing section number in
div ids.
Thanks to Matt Lundin for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89291
2014-07-31 10:59:58 +02:00
Nicolas Goaziou
b81d4d0f6c
org.texi: Fix documentation
...
* doc/org.texi (Publishing options): Fix documentation according to
282d8c86e7
.
2014-07-30 21:30:01 +02:00
Matt Lundin
282d8c86e7
Fix broken links in html publishing
...
* lisp/ox-html.el: Fix incorrect property name in :options-alist of
html backend definition.
2014-07-30 09:57:18 +02:00
Bastien Guerry
3b6f386795
Merge branch 'maint'
2014-07-29 23:28:34 +02:00
Achim Gratz
60bfafcb0c
org.el (org-refresh-category-properties): Enhance regexp
...
* org.el (org-refresh-category-properties): Enhance regexp.
2014-07-29 23:28:08 +02:00
Matt Lundin
a40f568f19
Protect open buffers when publishing sitemap
...
* lisp/ox-publish.el: (org-publish-find-title) (org-publish-find-date)
Make sure to call org-export-get-environment in copy of buffer if
emacs is already visiting. Otherwise, #+bind variables meant for
export can be set in live buffers.
This patch also optimizes the above functions by inhibiting
org-startup on buffers emacs visits temporarily.
2014-07-29 23:20:19 +02:00
Matt Lundin
dc4942442c
Fix docstring of org-agenda-inhibit-startup
...
* lisp/org.el: org-agenda-inhibit-startup: fix docstring to reflect
default value
2014-07-29 23:19:10 +02:00
Bastien Guerry
2558de0ab3
Merge branch 'master' of orgmode.org:org-mode
2014-07-29 23:18:49 +02:00
Achim Gratz
1358c62ee7
Merge branch 'maint'
2014-07-29 22:12:22 +02:00
Achim Gratz
3f67b185cc
mk/targets.mk: consider only release_* tags for constructing version strings
...
Cherry-picked from d1692902f1
, which was dropped by force-pushing 79873390ed
.
2014-07-29 22:11:28 +02:00
Achim Gratz
547f6ee541
Fix 1f3fefcba5
...
* testing/lisp/test-org.el: The title of the Emacs manual is "The Emacs Editor".
2014-07-29 21:55:47 +02:00
Achim Gratz
ec231c5db2
Fix 600d3bb56b
...
* lisp/org-table.el: The reference has been saved in `formrpl', not
`repl'.
2014-07-29 21:35:43 +02:00
York Zhao
12d5d5f775
org-table.el (org-table-eval-formula): Fix variable name typo
2014-07-29 19:27:57 +02:00
Bastien Guerry
8d8dfacfc6
Fix code typo in 3af4949a
2014-07-29 16:56:44 +02:00
Nicolas Goaziou
cb51b4e7ff
ORG-NEWS: Deprecate `org-list-empty-line-terminates-plain-lists'
2014-07-29 15:50:33 +02:00
Nicolas Goaziou
7b9e1f6620
ORG-NEWS: Document changes relative to publishing options
2014-07-29 15:45:19 +02:00
Nicolas Goaziou
c9ca0b6df8
ox-html: Use options instead of hard-coded variables
...
* contrib/lisp/ox-s5.el (org-s5--format-toc-headline): Apply signature
change.
* lisp/ox-md.el (org-md-headline): Apply signature change.
* lisp/ox-html.el (org-html-format-drawer-function,
org-html-publish-to-html): Small reformatting.
(org-html-infojs-install-script, org-html--build-meta-info,
org-html--build-mathjax-config, org-html-format-spec,
org-html--build-pre/postamble, org-html-template, org-html-toc,
org-html--format-toc-headline, org-html-list-of-listings,
org-html-list-of-tables, org-html-bold, org-html-drawer,
org-html-headline, org-html-inlinetask, org-html-italic,
org-html-checkbox, org-html-inline-image-p, org-html-link,
org-html-section, org-html-strike-through, org-html-table-cell,
org-html-table-row, org-html-underline, org-html-verbatim,
org-html-final-function, org-html-export-to-html): Do not use
hard-coded variable names.
(org-html-format-headline-function,
org-html-format-inlinetask-function): Change default value. Require
an additional argument.
(org-html-format-footnote-reference,
org-html-format-footnotes-section,
org-html-format-footnote-definition, org-html-format-headline,
org-html-format-headline--wrap, org-html-format-section): Remove
functions.
(org-html-footnote-section, org-html-footnote-reference): Apply
function removal. Do not use hard-coded variable names.
(org-html--anchor, org-html--todo, org-html--tags): Change signature.
Do not use hard-coded variable names.
(org-html-radio-target, org-html-target): Apply signature change.
(org-html-format-headline-default-function,
org-html-format-inlinetask-default-function): New functions.
2014-07-29 15:45:18 +02:00
Nicolas Goaziou
3c22bb19e0
ox-odt: Use options instead of hard-coded variables
...
* lisp/ox-odt.el (org-odt-styles-dir,
org-odt-create-custom-styles-for-srcblocks, org-odt-table-styles,
org-odt-get-table-cell-styles): Fix docstring.
(org-odt-format-headline-function,
org-odt-format-inlinetask-function): Change default value.
(org-odt-template, org-odt-drawer, org-odt-format-headline--wrap,
org-odt-inlinetask, org-odt--enumerate, org-odt--image-size,
org-odt--enumerable-image-p, org-odt--enumerable-latex-image-p,
org-odt--enumerable-formula-p, org-odt-link, org-odt-table-style-spec,
org-odt-timestamp): Use option instead of hard-coded variables.
(org-odt-format-headline): Remove function.
(org-odt-do-format-code): Change signature. Use options instead of
hard-coded variables.
(org-odt-fixed-width, org-odt-latex-environment,
org-odt-link--inline-image, org-odt-format-code): Apply signature
change.
(org-odt-format-headline-default-function,
org-odt-format-inlinetask-default-function): New functions.
(org-odt-link--inline-image): Fix indentation.
2014-07-29 15:45:18 +02:00
Nicolas Goaziou
0540dccadd
Use options instead of hard-coded variables
...
* lisp/ox-beamer.el (org-beamer--format-frame,
org-beamer--format-block, org-beamer-template): Use options instead
of hard-coded variables.
* lisp/ox-man.el (org-man-inline-src-block, org-man-src-block,
org-man-table, org-man-table-cell): Use options instead of
hard-coded variables.
* lisp/ox-md.el (org-md-headline): Use options instead of hard-coded
variables.
* lisp/ox-texinfo.el (org-texinfo-format-headline-function,
org-texinfo-format-inlinetask-function): Change default value.
(org-texinfo--text-markup, org-texinfo--format-menu): Change signature
(org-texinfo--build-menu, org-texinfo-bold, org-texinfo-code,
org-texinfo-comment, org-texinfo-italic, org-texinfo-verbatim): Apply
signature change.
(org-texinfo-template, org-texinfo-clock, org-texinfo-drawer,
org-texinfo-link, org-texinfo-plain-list, org-texinfo-planning,
org-texinfo-table, org-texinfo-table-cell, org-texinfo-timestamp): Use
options instead of variable names.
(org-texinfo-format-headline-default-function,
org-texinfo-format-inlinetask-default-function): New functions.
(org-texinfo-headline, org-texinfo-inlinetask): Use new functions.
2014-07-29 15:45:18 +02:00