Aaron Ecay
d035c14765
ob-R.el: fix a bug when a :var is propertized text
...
* lisp/ob-R.el (org-babel-R-assign-elisp): Strip text properties from
strings.
Before this change, babel would try to format propertized strings
using elisp read syntax. The upshot is that evaluating the following
code block would give an error (in R, not emacs), since the “bar” in
foo-ex gets text properties via font lock:
| #+name: foo-ex
| #+begin_example
| bar
| #+end_example
|
| #+name: foo
| #+begin_src R :var foo=foo-ex
| foo
| #+end_src
2014-08-07 01:54:23 -04:00
Rick Frankel
6fa58b3cc2
Fix html checkbox output.
...
* lisp/ox-html.el (html): Add missing `:html-checkbox-type' option.
2014-08-06 10:24:27 -04:00
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
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
Nicolas Goaziou
fd448cb1e2
Remove some options associated to variables
...
* lisp/ox-html.el: Remove options.
* lisp/ox-icalendar.el: Remove options.
* lisp/ox-latex.el (org-latex-guess-inputenc, org-latex-compile,
org-latex--collect-warnings): Use full variable name instead of an
option.
* lisp/ox-man.el: Remove options.
* lisp/ox-odt.el: Remove options.
* lisp/ox-texinfo.el: Remove options.
* doc/org.texi (Publishing options): Update documentation accordingly.
These variables are meant to be used outside (or on the fringe) of the
export process, where information channel is not available.
remove
2014-07-29 15:45:18 +02:00
Nicolas Goaziou
011df55c70
ox-latex: Use options instead of hard-coded variables
...
* lisp/ox-latex.el (org-latex-format-inlinetask-function): Change
default value.
(org-latex-guess-inputenc, org-latex--text-markup, org-latex-template,
org-latex-clock, org-latex-drawer, org-latex-footnote-reference,
org-latex-headline, org-latex-inline-src-block, org-latex-keyword,
org-latex--inline-image, org-latex-link, org-latex-planning,
org-latex-src-block, org-latex-table, org-latex--org-table,
org-latex--table, org-latex--math-table, org-latex-table-cell,
org-latex-table-row, org-latex-timestamp, org-latex-compile,
org-latex--collect-warnings): Use options instead of hard-coded
variables.
(org-latex-format-inlinetask-default-function): New function.
(org-latex-inlinetask): Use new function.
(org-latex--text-markup): Change signature.
(org-latex-bold, org-latex-code, org-latex-italic,
org-latex-strike-through, org-latex-underline, org-latex-verbatim):
Apply signature change.
2014-07-29 15:45:18 +02:00
Bastien Guerry
06aa1b615c
org.el (org-yank): Small docstring enhancement
...
* org.el (org-yank): Small docstring enhancement.
2014-07-29 15:35:39 +02:00
Malcolm Purvis
3af4949a07
org.el (org-refresh-category-properties): Regexp enhancement
...
* org.el (org-refresh-category-properties): Regexp enhancement.
TINYCHANGE
2014-07-29 15:22:54 +02:00
Bastien Guerry
a98a6afe56
Merge branch 'maint'
2014-07-29 15:21:31 +02:00
Matt Lundin
507244d56b
Remove unnecessary invocations of org-mode
...
* lisp/ox-publish.el: (org-publish-find-title) (org-publish-find-date)
Fix unnecessary invocations of org-mode with
org-inhibit-startup.
The functions above call org-mode with org-inhibit-startup in org
buffers that are already open. The result is that these open buffers
lose some crucial local variables during publishing. For instance,
an open buffer will lose its dir-local-variables-alist setting
during publishing. There is no need to call org-mode here, because
org-mode is a) either already initialized in the buffer or b)
initialized via earlier call to find-file-no-select.
This looks to me like a relic of some past time when these functions were
called in temporary buffers that contained copies of the file's contents.
2014-07-29 15:21:21 +02:00
Bastien Guerry
2dbb338ad3
Merge branch 'maint'
2014-07-28 19:23:04 +02:00
Bastien Guerry
812a889657
org-agenda.el (org-agenda-prepare): Reset preset filters
...
* org-agenda.el (org-agenda-prepare): Reset preset filters
when using sticky agendas.
Thanks to Thomas Morgan for reporting this.
2014-07-28 19:22:53 +02:00