Bastien Guerry
16ea957cd0
Copyright year fixes for contrib/.
2012-02-19 08:16:54 -07:00
Bastien Guerry
01f7b698a7
More copyright year fixes.
2012-02-19 08:16:27 -07:00
Bastien Guerry
b73075a8d2
Code cleanup up: rename org-on-*-p to org-at-*-p.
...
Rename `org-on-heading-p' and `org-on-target-p' to
`org-at-heading-p' and `org-at-target-p' to be more
consistent with the org-at-*-p family.
Also define two aliases.
2012-01-02 19:52:35 +01:00
Nicolas Goaziou
44bd38556c
contrib/lisp/org-element.el: Fix docstrings
2011-12-29 19:41:16 +01:00
Bastien Guerry
371b0cf9aa
org-drill.el: fix a few wrong :type spec.
...
* org-drill.el (org-drill-leech-method, org-drill-scope)
(org-drill-spaced-repetition-algorithm): Fix wrong :type spec.
Thanks to Joost Kremers for spotting this.
2011-12-26 15:40:02 +01:00
Bastien Guerry
80dd8f47f0
org-element.el: Added "This file is not part of GNU Emacs".
2011-12-26 15:34:36 +01:00
Nicolas Goaziou
732725a79b
contrib/lisp/org-element: Translate "data" affiliated keyword into "name"
...
* contrib/lisp/org-element.el (org-element-keyword-translation-alist):
Make "data" an alternate from "name" according to code blocks standardization.
2011-12-26 12:33:58 +01:00
Nicolas Goaziou
5136d2ee41
contrib/lisp/org-export: Add footnote number to footnotes definitions collection
...
* contrib/lisp/org-export.el
(org-export-collect-footnote-definitions): Change key to footnote
number, retrieved with `org-export-get-footnote-number'. Also, do
not use beginning position as label for inline footnotes, as those
are weak identifiers.
2011-12-26 09:59:53 +01:00
Nicolas Goaziou
a7afc47572
contrib/lisp/org-export: Extend footnote numbering to definitions
...
* contrib/lisp/org-export.el (org-export-get-footnote-number): Also
retrieve ordinal associated to a footnote definition.
2011-12-25 16:46:38 +01:00
Nicolas Goaziou
639810cb54
contrib/lisp/org-element: Add attributes to inlinetask element
...
* contrib/lisp/org-element.el (org-element-headline-parser): Update
list of attributes in the docstring.
(org-element-inlinetask-parser): Complete attributes with properties
inherited from any property drawer within the inlinetask and with
time properties (i.e. scheduled, clock...).
2011-12-25 10:15:36 +01:00
Nicolas Goaziou
64d9cd2b06
contrib/lisp/org-element.el (org-element-inlinetask-parser): Fix attributes names
2011-12-24 18:00:02 +01:00
Nicolas Goaziou
d140374fc9
contrib/lisp/org-export.el (org-export-collect-headline-numbering): Small fix
2011-12-24 14:57:57 +01:00
Nicolas Goaziou
b78800f05a
contrib/lisp/org-element: Hygienize org-element-map
...
* contrib/lisp/org-element.el (org-element-map): Change name of local
variables to prevent variable name collisions with the function
around org-element-map.
2011-12-24 14:57:57 +01:00
Nicolas Goaziou
27480a2ee7
contrib/lisp/org-export: Improve footnote API
...
* contrib/lisp/org-export.el (org-export-initial-options): Rename
`:footnotes-labels-alist' property into `:footnote-definition-alist'
for consistency. Add comments to code.
(org-export-persistent-properties-list): Apply previous renaming.
(org-export-update-info): Rename `:seen-footnote-labels' into
`footnote-seen-labels'.
(org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-definition,
org-export-get-footnote-number): New functions.
2011-12-23 16:24:13 +01:00
Bastien Guerry
a0f2396f8f
Move org-eshell.el by Konrad Hinsen to Org's core.
...
* org-eshell.el: New file.
2011-12-21 09:43:48 +01:00
Nicolas Goaziou
e6ab3158e1
org-export: Add a function associating an ordinal to an element or object
...
* contrib/lisp/org-export.el (org-export-get-ordinal): New function.
2011-12-20 20:09:03 +01:00
Nicolas Goaziou
10ea126b36
contrib/lisp/org-export: Add omitted persistent properties
...
* contrib/lisp/org-export.el (org-export-persistent-properties-list):
Add omitted persistent properties.
This patch also updates documentation with regards to persistent properties.
2011-12-20 19:58:24 +01:00
Nicolas Goaziou
4aace47474
contrib/lisp/org-export: Normalize collecting functions names
...
* contrib/lisp/org-export.el (org-export-collect-figures): Renamed
from `org-export-get-figures'.
2011-12-20 19:18:11 +01:00
Nicolas Goaziou
3210994bc4
contrib/lisp/org-export.el: Simplify headlines collection
...
* contrib/lisp/org-export.el (org-export-collect-headlines): Simplify
function, in order to allow greater flexibility to build a proper
table of contents.
2011-12-20 19:16:19 +01:00
Nicolas Goaziou
c3972265bb
Modification to the type signature of `org-export-inline-image-p'
...
EXPERIMENTAL/org-e-latex.el (org-e-latex-link): Apply changes.
contrib/lisp/org-export.el (org-export-inline-image-p): Remove
description of the link as a required argument, since this function is
called with link contents anyway.
2011-12-20 18:50:59 +01:00
Nicolas Goaziou
69505ed062
contrib/lisp/org-export: New function to export to a file
...
* contrib/lisp/org-export.el (org-export-to-buffer): Slight change to
doc-string.
(org-export-to-file): New function.
2011-12-20 13:49:06 +01:00
Paul M. Rodriguez
bf25b68915
Rewrite of contrib/lisp/org-velocity.el.
...
From the author: "This is a rewrite of Org-Velocity for speed. Delays due
to file size should no longer be perceptible. I have also added in-line
previews of entry contents and dropped support for Org-Remember."
2011-12-11 17:14:09 +01:00
Nicolas Goaziou
4e36b533e0
Code indentation fix (tabify)
2011-12-11 11:20:11 +01:00
Jambunathan K
6aef72be12
Move org-lparse.el and org-odt.el to the main lisp dir
2011-12-10 18:12:53 +01:00
Nicolas Goaziou
b377e54c6a
contrib/lisp/org-export: Extract more properties from tables
...
* contrib/lisp/org-export.el (org-export-table-format-info): Extract
column width and and row groups.
2011-12-07 20:49:10 +01:00
Nicolas Goaziou
816f60b0c7
contrib/lisp/org-element: Re-order a function within the file
2011-12-01 15:42:06 +01:00
Nicolas Goaziou
b1f2903392
contrib/lisp/org-element: Do not map function to ignored elements or objects
...
* contrib/lisp/org-element.el (org-element-map): In an export
situation, only map function on included elements or objects.
2011-12-01 15:04:38 +01:00
Nicolas Goaziou
9ee429ca1d
contrib/lisp/org-export: Fix headline numbering
...
* contrib/lisp/org-export.el (org-export-persistent-properties-list):
Remove unused persistent properties.
(org-export-initialize-persistent-properties): Delegate headline
numbering alist to `org-export-collect-headline-numbering'.
(org-export-collect-headline-numbering): New function.
(org-export-update-info): Remove part relative to headline numbering.
(org-export-get-headline-number): Use new `:headline-numbering' to get
current headline number.
Headline numbering is not done on demand anymore, but built once and
for all at the beginning of the export process, and stored in an
alist, accessible through the `:headline-numbering' property in the
communication channel.
2011-12-01 14:35:43 +01:00
Nicolas Goaziou
21758c30c9
contrib/lisp/org-export: Fix visibility influence on list parsing
...
* contrib/lisp/org-export.el (org-export-with-current-buffer-copy):
Full invisibility prevents `current-column' from returning useful
values. Thus, keep visibility related text-properties and set
`buffer-invisibility-spec' to nil.
2011-11-28 20:14:20 +01:00
Nicolas Goaziou
55e4d0e695
contrib/lisp/org-export: Fix a docstring.
...
* contrib/lisp/org-export.el (org-export-option-alist): Fix docstring.
2011-11-25 19:33:23 +01:00
Nicolas Goaziou
c84192e567
contrib/lisp/org-export.el: Fix misleading comments about transcoders
...
* contrib/lisp/org-export.el: Fix misleading comments about transcoders.
2011-11-25 19:06:19 +01:00
Nicolas Goaziou
4e2aaadda9
contrib/org-export: Generic Export Engine For Org
...
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 16:02:42 +01:00
Jeremy Compostella
bafffdc5f6
org-odt.el: Export TOC max-level information.
...
The TOC max level which could be specified by user is lost during the
export operation. However, this information could be useful in particular
with the ODT exporter. So if another script work on the ODT afterward and
ask to re-compute the TOC, the new TOC will keep this max level.
TINYCHANGE.
2011-11-25 00:27:49 +05:30
Jambunathan K
2ded8ccb85
org-odt.el: Fix performance issue on manifest file writing
...
* contrib/lisp/org-odt.el (org-odt-write-manifest-file): Don't
use write-region.
The org-odt-write-manifest-file function take too much time -
several seconds for 164 files. This patch provides a cheaper
implementation (hundredths of a seconds for 164 files).
Original patch by Jérémy Compostella
<jeremy.compostella@gmail.com>. Rewritten by Jambunathan K to
minimize the actual number of lines changed.
TINYCHANGE.
From http://www.mail-archive.com/emacs-orgmode@gnu.org/msg49248.html
I'm currently generating a road book for a trip from different
Org-Mode file and other data. It results in a 13 thousands
lines Org-Mode file and I have some performance issues. Using
the ELP package, I isolated the two main bottlenecks.
One is in org-odt : the org-odt-write-manifest-file function
is called once and takes 5.546672 seconds to write a 167 lines
file. I rewrote this function and now it takes 0.01606 seconds
to write the same file.
2011-11-24 23:46:57 +05:30
Nicolas Goaziou
5a24ffe004
org-element: Fix parsing of src-block switches when there is more than one
...
* contrib/lisp/org-element.el (org-element-src-block-parser): Previous
regexp would only get the last switch if more than one were
provided.
2011-11-24 14:29:53 +01:00
Jambunathan K
e10722c9cd
org-odt.el: Fix a bug wrt label references
...
* contrib/lisp/org-odt.el (org-odt-fixup-label-references)
(org-export-odt-preprocess-label-references): Modified.
Workaround for issue reported here:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00773.html
2011-11-23 06:01:33 +05:30
Nicolas Goaziou
45587af37b
org-element: Parser for Org syntax
...
* contrib/lisp/org-element.el (org-element-center-block-parser,
org-element-center-block-interpreter, org-element-drawer-parser,
org-element-drawer-interpreter, org-element-dynamic-block-parser,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-parser,
org-element-headline-parser, org-element-headline-interpreter,
org-element-inlinetask-parser, org-element-inlinetask-interpreter,
org-element-item-parser, org-element-item-interpreter,
org-element-plain-list-parser, org-element-plain-list-interpreter,
org-element-quote-block-parser,
org-element-quote-block-interpreter,
org-element-special-block-parser,
org-element-special-block-interpreter,
org-element-babel-call-parser, org-element-babel-call-interpreter,
org-element-comment-parser, org-element-comment-interpreter,
org-element-comment-block-parser,
org-element-comment-block-interpreter,
org-element-example-block-parser,
org-element-example-block-interpreter,
org-element-export-block-parser,
org-element-export-block-interpreter,
org-element-fixed-width-parser,
org-element-fixed-width-interpreter,
org-element-horizontal-rule-parser,
org-element-horizontal-rule-interpreter,
org-element-keyword-parser, org-element-keyword-interpreter,
org-element-latex-environment-parser,
org-element-latex-environment-interpreter,
org-element-paragraph-parser, org-element-paragraph-interpreter,
org-element-property-drawer-parser,
org-element-property-drawer-interpreter,
org-element-quote-section-parser,
org-element-quote-section-interpreter,
org-element-src-block-parser, org-element-src-block-interpreter,
org-element-table-parser, org-element-table-interpreter,
org-element-verse-block-parser,
org-element-verse-block-interpreter, org-element-emphasis-parser,
org-element-emphasis-interpreter,
org-element-text-markup-successor, org-element-entity-parser,
org-element-entity-interpreter,
org-element-latex-or-entity-successor,
org-element-export-snippet-parser,
org-element-export-snippet-interpreter,
org-element-export-snippet-successor,
org-element-footnote-reference-parser,
org-element-footnote-definition-interpreter,
org-element-footnote-reference-interpreter,
org-element-footnote-reference-successor,
org-element-inline-babel-call-parser,
org-element-inline-babel-call-interpreter,
org-element-inline-babel-call-successor,
org-element-inline-src-block-parser,
org-element-inline-src-block-successor,
org-element-latex-fragment-parser,
org-element-latex-fragment-interpreter,
org-element-line-break-parser, org-element-line-break-interpreter,
org-element-line-break-successor, org-element-link-parser,
org-element-link-interpreter, org-element-link-successor,
org-element-macro-parser, org-element-macro-interpreter,
org-element-macro-successor, org-element-radio-target-parser,
org-element-radio-target-interpreter,
org-element-radio-target-successor,
org-element-statistics-cookie-parser,
org-element-statistics-cookie-interpreter,
org-element-statistics-cookie-successor,
org-element-subscript-parser, org-element-subscript-interpreter,
org-element-sub/superscript-successor,
org-element-superscript-parser,
org-element-superscript-interpreter, org-element-target-parser,
org-element-target-interpreter, org-element-target-successor,
org-element-time-stamp-parser, org-element-time-stamp-interpreter,
org-element-time-stamp-successor, org-element-verbatim-parser,
org-element-verbatim-interpreter, org-element-get-property,
org-element-get-contents, org-element-at-point,
org-element-guess-type, org-element-collect-affiliated-keywords,
org-element-parse-buffer, org-element-parse-secondary-string,
org-element-map, org-element-parse-elements,
org-element-parse-objects, org-element-get-next-object-candidates,
org-element-interpret-data, org-element-interpret-secondary,
org-element-interpret--affiliated-keywords,
org-element-normalize-string, org-element-normalize-contents,
org-element-swap-A-B, org-element-backward,
org-element-drag-backward, org-element-drag-forward,
org-element-forward, org-element-mark-element,
org-narrow-to-element, org-transpose-elements,
org-element-unindent-buffer, org-element-up): New functions.
(org-element-paragraph-separate, org-element-all-elements,
org-element-greater-elements, org-element-all-successors,
org-element-object-successor-alist, org-element-recursive-objects,
org-element-non-recursive-block-alist,
org-element-affiliated-keywords,
org-element-keyword-translation-alist,
org-element-multiple-keywords, org-element-parsed-keywords,
org-element-dual-keywords, org-element-object-restrictions,
org-element-string-restrictions, org-element--affiliated-re,
org-element--element-block-types): New variables.
2011-11-21 08:12:25 +01:00
Jambunathan K
e28e1038c4
org-odt.el: Rescale a large images so that it fits in text area
...
* contrib/lisp/org-odt.el (org-export-odt-max-image-size): New
variable.
(org-odt-image-size-from-file): Honor above variable.
Ivars Finvers <ifinvers@shaw.ca> says -
One minor issue that I came across in using the ODT
exporter relates to the size of embedded images. I often need
to include plots of simulation results in my documents. These
plots can be larger than a normal page, which causes problems
in the text flow. In LaTeX, I've grown used to being able to
automatically rescale a plot to match the maximum text width
of the document. It would be useful to have such a feature
for the ODT exporter.
2011-11-17 23:58:42 +05:30
Jambunathan K
9edb523bdd
org-xhtml.el: Merge commit 2f50b1
2011-11-14 02:00:56 +05:30
Jambunathan K
457375be28
org-xhtml.el: Bring over few commits (contd.)
...
Bring over following commits:
-22ed1906
-2f1fbc58
-8d25fdc7
-236642dc
-d85e0e35
2011-11-14 01:05:48 +05:30
Jambunathan K
7e31ecdb22
org-lparse.el & co: Bring over few commits (contd.)
...
Bring over following commits:
- dfcb6fae
- 767f5188
- ca49e893
- 728611fa
- b2408c00
- 97d107d9
2011-11-13 15:25:20 +05:30
Jambunathan K
c5081b8f14
org-lparse.el & co: Bring over few commits
...
Bring over following commits:
- 97538eb9
- 5c53026d
- 3482284b
- 58f1dbcc
- 8b16fae4
- 106993d3
2011-11-13 13:55:22 +05:30
Jambunathan K
22b9e68782
org-lparse.el: Fix issues with formatting of custom links
...
* contrib/lisp/org-lparse.el (org-lparse-format-org-link): Fix
issues with formatting of custom links - pass the right
backend to the custom formatter.
Fix for bug reported by Christian Moe here:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00474.html
TODO: Modify `org-bbdb-export' to support odt backend. Review contrib
modules for odt compatibility.
2011-11-13 02:45:57 +05:30
Jambunathan K
25eefa57e4
org-xhtml.el: Minor fix
...
* contrib/lisp/org-xhtml.el (org-xhtml-begin-environment)
(org-xhtml-end-environment): Fix param list.
Continue commit 2e0e462d14
.
Support for annotation blocks for xhtml backend still needs to
be ported. See org-exp-blocks.el for more information.
2011-11-13 02:45:33 +05:30
Jambunathan K
311146aa21
Add support for embedding an equation via a link to its *.odf file
...
* contrib/lisp/org-odt.el (org-odt-is-formula-link-p):
Recognize *.mml and *.mathml as mathml files. Recognize *.odf
files as OpenDocument formula file.
(org-odt-copy-formula-file): Use `org-odt-zip-extract-one' to
handle ODF formula files.
(org-export-odt-format-formula): If a ODF formula link has no
caption or label, embed it inline. Otherwise embed it as
displayed.
2011-11-08 05:08:26 +05:30
Jambunathan K
a69547c61c
Add command to export LaTeX fragments to OpenDocument formula file
...
* contrib/lisp/org-lparse.el (org-lparse-and-open): Add a new
param `file-or-buf' to accommodate
`org-export-as-odf-and-open'.
* contrib/lisp/org-odt.el (org-export-as-odf)
(org-export-as-odf-and-open): New interactive commands.
(org-export-odt-convert): Add autoload cookie.
2011-11-08 03:08:55 +05:30
Jambunathan K
fe19f7a637
org-odt.el: Preparing for introducing `org-export-as-odf'
...
* contrib/lisp/org-odt.el (org-odt-update-styles-file)
(org-odt-write-mimetype-file): New. Extracted out of
`org-odt-save-as-outfile'.
(org-odt-save-as-outfile): Use above routines.
(org-export-odt-tmpdir-prefix)
(org-odt-init-outfile): Misc changes.
Preparing for introducing `org-export-as-odf'. The new
command will create OpenDocument Formula files out of LaTeX
fragments. Dynamic variable `org-lparse-backend' will be set
to 'odf during this command.
2011-11-08 03:08:48 +05:30
Jambunathan K
f8168144a9
Annotate Dvipng images/Math formula and strengthen error handling
...
* contrib/lisp/org-odt.el (org-odt-encode-plain-text): New.
(org-odt-format-line)
(org-odt-format-source-code-or-example-plain): Use it.
(org-odt-format-object-description): New. Format svg:title
and svg:desc elements out of plain text.
(org-export-odt-format-formula, org-export-odt-format-image):
Check whether the incoming formula or image is generated out
of a latex fragment. If yes, pass the latex fragment for
downstream processing.
(org-odt-format-frame): Check if the object that is enclosed
in the frame has metadata associated with it. If yes, dump it
as part of svg:title and svg:desc elements.
(org-odt-protect-latex-fragment): New after advice for
`org-format-latex-as-mathml'. Fixes the following bug
http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00176.html
2011-11-07 00:32:27 +05:30
Jambunathan K
00cb82c266
org-odt.el: Minor modifications to reflect change in package layout
...
* contrib/lisp/org-odt.el (org-odt-data-dir): Modified to
reflect change in ELPA package layout.
2011-11-03 00:01:58 +05:30
Jambunathan K
e856d1cfe7
org-odt.el: Protect label references against downstream expansion
...
* contrib/lisp/org-odt.el
(org-export-odt-preprocess-label-references): Mark label as
protected text and protect it from being expanded downstream.
Fixes bug reported by Myles English here:
http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00069.html
2011-11-02 23:33:10 +05:30