Commit Graph

1271 Commits

Author SHA1 Message Date
Nicolas Goaziou 4d789f4c30 org-export: Fix filters returning a nil value
* contrib/lisp/org-export.el (org-export-filter-apply-functions): If
  a filter returns nil, return last non-nil value.
2012-08-27 14:35:54 +02:00
Jambunathan K 9c1d338834 org-e-odt.el: Support for indented tables.
1. Use element translation for description lists.
2. Handle low-level headlines.
3. Handle tables within listified headlines.

Some crude changes for creating references to a list item.

Also other misc changes.
2012-08-26 02:06:20 +05:30
Jambunathan K 2cb72af8e8 Set `org-e-html-coding-system' to 'utf-8 2012-08-26 00:50:17 +05:30
Nicolas Goaziou 61b5e28509 org-export: Flesh out dictionary
* contrib/lisp/org-export.el (org-export-dictionary): Flesh out
  dictionary.
(org-export-translate): Allow for a :default charset in order to
simplify dictionary completion.
2012-08-25 14:07:41 +02:00
Nicolas Goaziou d86f09a854 org-element: Extract search option and application in "file"-type links
* lisp/org-element.el (org-element-link-type-is-file): New variable.
(org-element-link-parser): Extract search option and application in
"file"-type links.
* contrib/lisp/org-e-html.el (org-e-html-link): Remove components
  extraction since this in now done in `org-element-link-parser'.
* contrib/lisp/org-e-odt.el: Remove components extraction since this
  in now done in `org-element-link-parser'.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-link): Remove
  components extraction since this in now done in
  `org-element-link-parser'.
* contrib/lisp/org-e-latex.el (org-e-latex-link): Remove components
  extraction since this in now done in `org-element-link-parser'.
* contrib/lisp/org-e-man.el (org-e-man-link): Remove components
  extraction since this in now done in `org-element-link-parser'.
* contrib/lisp/org-e-groff.el (org-e-groff-link): Remove components
  extraction since this in now done in `org-element-link-parser'.
* contrib/lisp/org-md.el (org-md-link): Remove components extraction
  since this in now done in `org-element-link-parser'.
* testing/lisp/test-org-element.el: Add tests.
2012-08-25 10:38:25 +02:00
Bastien Guerry e9b4debd0f Move x11idle.c from utils/ to contrib/scripts/ 2012-08-25 10:25:01 +02:00
Bastien Guerry 9c3386567c contrib/lisp/org-notify.el: Make `org-notify-start' interactive. Clean-up.
* org-notify.el (org-notify-start): Make interactive.
(org-notify-add, org-notify-start, org-notify-stop)
(org-notify-select-highest-window, default): Docstring and
indentation clean-up.
2012-08-25 10:06:55 +02:00
Bastien Guerry be70cfd084 org-e-texinfo.el: Tiny formatting and code fix
* org-e-texinfo.el (org-e-texinfo-table-column-widths): Remove
a quote before a lambda expression.
2012-08-24 11:21:24 +02:00
Nicolas Goaziou 7e466ea883 org-export: Small clean-up 2012-08-24 10:44:05 +02:00
Nicolas Goaziou 095f9322e5 org-export: Make sure back-end specific filters do not make any back-end check
* contrib/lisp/org-e-ascii.el (org-e-ascii-filter-headline-blank-lines):
  Remove backend check.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-filter-section-blank-lines):
  Remove backend check.
* contrib/lisp/org-export.el (org-export-define-backend): Update
  docstring accordingly.
2012-08-24 10:41:41 +02:00
Nicolas Goaziou cced6735a7 org-export: Run export hook with current back-end as argument
* contrib/lisp/org-export.el (org-export-as): Run export hook with
  current back-end as argument.
* testing/lisp/test-org-export.el: Update test.
2012-08-24 10:10:44 +02:00
Nicolas Goaziou cc839259a4 org-export: Nil value from a filter means filter will be skipped
* contrib/lisp/org-export.el (org-export-filter-apply-functions): Nil
  value from a filter means filter will be skipped. To ignore the
  current element or object, the filter has to return the empty string
  instead.

This change is done to ease filter writing. When writing
a backend-specific filter (and I guess most are), there's no more need
for the somewhat contrived:

  (if (not (eq backend 'e-latex)) data
    ... filter's job...)

A more straightforward:

  (when (eq backend 'e-latex)
    ... filter's job...)

is now enough.

On the other hand, it is not possible anymore to specify 'ignore as
a filter to ignore every element or object of a given type. To
achieve that goal, one can now write, for example:

  (add-to-list 'org-export-filter-example-block-functions
                 (lambda (value backend info)
                   (when (eq backend 'e-html) "")))

It will ignore every example block in the `e-html' export back-end.
2012-08-24 09:56:48 +02:00
Nicolas Goaziou 3f40057adc org-export: Limit depth of headline collection to headline level
* contrib/lisp/org-export.el (org-export-collect-headlines): By
  default, limit depth of headline collection to last headline level.
* contrib/lisp/org-e-html.el (org-e-html-toc): Small refactoring.
2012-08-24 09:36:18 +02:00
Nicolas Goaziou 5b19471358 org-e-html: Fix TOC generation with a non numeric value
* contrib/lisp/org-e-html.el (org-e-html-toc): Accept non numeric
  values for depth.
(org-e-html-template): Call previous function even when depth isn't
a number.
(org-e-html-keyword): Call previous function even when depth isn't
a number.  Also react on #+HTML keywords, not #+LATEX.
2012-08-23 21:32:12 +02:00
Jonathan Leech-Pepin d4d29efb53 contrib/lisp/org-e-texinfo: Ensure valid export of escaped characters
and remove invalid characters from menu items

* contrib/lisp/org-e-texinfo.el (org-e-texinfo--sanitize-menu): Remove
  invalid characters from menu entries and nodes.
(org-e-texinfo--sanitize-contents): Ensure @ { and } are properly
escaped in text and headlines.
(org-e-texinfo--generate-menu-items): Strip invalid characters from
menu titles.
(org-e-texinfo-fixed-width): Escape @ { and } in fixed-width
environments.
(org-e-texinfo-headline): Ensure nodes do not have invalid characters
and escape @ { and } in section titles.
(org-e-texinfo-plain-text): Use proper escape character for @ { and }.
2012-08-23 10:51:47 -04:00
Jonathan Leech-Pepin 8441782b11 contrib/lisp/org-e-texinfo: Remove markup from headlines when
exporting to ensure info can process them properly

* contrib/lisp/org-e-texinfo.el (org-e-texinfo--generate-menu-items):
  Use org-e-texinfo--sanitize-headline to ensure markup is stripped
  before being used for sectioning and menu information.  Nodes and
  menus can fail because of formatting and section titles do not show
  any formatting when viewed in an info-viewer.
(org-e-texinfo--sanitize-headline): Wrapper function for
org-e-texinfo--sanitize-healine-contents
(org-e-texinfo--sanitize-headline-contents): Strips markup from
headlines.  It treats content recursively to ensure nested formatting
is removed as well.
2012-08-23 09:20:02 -04:00
Jonathan Leech-Pepin 44d68803d3 contrib/lisp/org-e-texinfo: Improve error reporting after makeinfo
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-collect-errors): Fixed
  error checking to actually return an error message.
2012-08-23 08:40:47 -04:00
Nicolas Goaziou f9e5600f82 org-export: Fix reference to a free variable in macros
* contrib/lisp/org-export.el (org-export-define-backend,
  org-export-define-derived-backend): Fix reference to a free variable
  in macro.
2012-08-23 11:03:09 +02:00
Jonathan Leech-Pepin 9e0f48db2f contrib/lisp/org-e-texinfo.el: Fix export bugs
* contrib/lisp/org-e-texinfo.el (org-e-texinfo--generate-detailed): Do
  not run if there are no headlines in the file.
(org-e-texinfo-template): Generate menu and detailed menu in initial
let form.  Only insert them if non-empty.
(org-e-texinfo-headline): Ensure that %'s are properly escaped in
@node's to prevent parse errors.
(org-e-texinfo-make-menu): Do not insert "detailed" if menu is empty,
return empty entry instead.

Thanks to Bastien for reporting the failures with headline-less files
and simple "%" in the headline.
2012-08-22 13:51:46 -04:00
Nicolas Goaziou 436c2a0794 org-e-beamer: Do not normalize empty arguments
* contrib/lisp/org-e-beamer.el (org-e-beamer--normalize-argument): Do
  not normalize empty arguments.
2012-08-22 17:45:18 +02:00
Nicolas Goaziou cd9ce4b914 org-e-latex: Fix bug when exporting empty items
* contrib/lisp/org-e-latex.el (org-e-latex-item): Fix bug when
  exporting empty items.
2012-08-22 16:55:18 +02:00
Nicolas Goaziou d1f36ea313 org-e-beamer: Fix bug with default value for outline frame options
* contrib/lisp/org-e-beamer.el (org-e-beamer-outline-frame-options):
  Value must be a string, so make default value an empty string
  instead of nil.
2012-08-22 16:32:16 +02:00
Nicolas Goaziou a273a37ce0 org-e-latex: Fix typo in a docstring
* contrib/lisp/org-e-latex.el (org-e-latex--delayed-footnotes-definitions):
  Fix typo in a docstring.
2012-08-22 09:34:24 +02:00
Nicolas Goaziou 043f2fcbbc org-e-latex: Display nicer horizontal rules
* contrib/lisp/org-e-latex.el (org-e-latex-horizontal-rule): Display
  nicer horizontal rules. Support :width and :thickness attributes.
2012-08-21 18:55:17 +02:00
Bastien Guerry 478a8393f2 contrib/: Update the README 2012-08-21 12:34:53 +02:00
Bastien Guerry 7d5c05463f contrib/: Delete useless files
Delete these files:
contrib/lisp/test-org-export-preproc.el
contrib/scripts/staticmathjax/README.txt
2012-08-21 12:34:37 +02:00
Bastien Guerry 502e538020 contrib/lisp/: Replace the deleted function `org-make-link' by `concat'
* org-notmuch.el (org-notmuch-store-link)
(org-notmuch-search-store-link): Use `concat' instead of
`org-make-link'.

* org-git-link.el (org-git-create-git-link)
(org-git-insert-link-interactively): Ditto.

* org-bookmark.el (org-bookmark-store-link): Ditto.

Thanks to Friedrich Delgado for reporting this.
2012-08-20 14:03:15 +02:00
Nicolas Goaziou fc6b9f1d88 org-export: Fix code comments 2012-08-20 10:25:05 +02:00
Luis Anaya 5da2745fb8 Merge branch 'master' of orgmode.org:org-mode 2012-08-19 13:14:05 -04:00
Nicolas Goaziou c81bcccbf3 org-md: Fix export of paragraph starting with an hash sign
* contrib/lisp/org-md.el (org-md-paragraph): Fix export of paragraph
  starting with an hash sign.
2012-08-19 15:59:24 +02:00
Jambunathan K 3a8969edbc org-e-html-table: Emit `caption' elements only when required 2012-08-18 21:03:49 +05:30
Nicolas Goaziou 952d722dcd org-export: Allow to toggle inlinetasks inclusion in export output
* contrib/lisp/org-export.el (org-export-options-alist,
  org-export--skip-p): Allow to toggle inlinetask inclusion in export.
(org-export-headline-levels, org-export-with-priority): Fix docstring.
(org-export-with-inlinetasks): New variable.
* testing/lisp/test-org-export.el: Add tests.
2012-08-16 12:46:49 +02:00
Bastien Guerry a4bef9a73d contrib: Do not tell files are part of Emacs if they are not (yet) 2012-08-16 00:01:59 +02:00
Bastien Guerry 3d2b7841e6 org-e-texinfo.el: Clean up code. 2012-08-16 00:00:51 +02:00
Luis Anaya 08c6b3d2e3 Merge branch 'master' of orgmode.org:org-mode 2012-08-15 16:06:47 -04:00
Jonathan Leech-Pepin eff62b3843 org-e-texinfo: Provide the ability to export to .texinfo from Org-Mode
* contrib/lisp/org-e-texinfo.el: Provide the ability to generate .texinfo and .info files from an Org-Mode file.

Export can be called using either (org-e-texinfo-export-to-texinfo) to generate a .texinfo file, or (org-e-texinfo-export-to-info) to additionally compile the .texinfo file into a .info file.
2012-08-15 16:00:20 -04:00
Nicolas Goaziou a88ab9cdbc org-e-beamer: Prevent fragile frames from eating first word
* contrib/lisp/org-e-beamer.el (org-e-beamer--format-frame): In
  a fragile frame, append a white space to contents in order to
  prevent Beamer from eating first word when appending "\par".
2012-08-12 18:24:34 +02:00
Nicolas Goaziou a270c7dd90 org-e-publish: Fix code typo
* contrib/lisp/org-e-publish.el (org-e-publish-cache-ctime-of-src):
  Fix code typo.
2012-08-12 00:50:26 +02:00
Nicolas Goaziou 8ff6054c85 org-e-publish: Mirror changes applied to org-publish.el
* contrib/lisp/org-e-publish.el (org-e-publish-needed-p,
  org-e-publish-update-timestamp, org-e-publish-file,
  org-e-publish-cache-file-needs-publishing,
  org-publish-cache-ctime-of-src): Mirror changes applied to org-publish.el.
2012-08-11 22:18:00 +02:00
Nicolas Goaziou f86ec13ce9 org-e-publish: Mirror changes made to org-publish.el
* contrib/lisp/org-e-publish.el (org-e-publish-initialize-cache): Fix
  small error.
(org-publish-cache-ctime-of-src): Simplify function.
2012-08-10 18:20:48 +02:00
Luis Anaya 36bb59fdc5 Enhanced the org-e-groff.el code to use the Groff MM letter macros
* org-e-groff.el (org-e-groff-classes): Added
letter classes.
(org-e-groff-special-tags): New variable to identify special tags.
(org-e-groff--get-tagged-content): New function to retrieve
special tagged content.
(org-e-groff--mt-head): New function to create "memo" type headers.
(org-e-groff--letter-head): New function to create "letter" type headers.
(org-e-groff-template): Handle the "letter" type.
(org-e-groff-headline): handle special tags.
2012-08-10 10:14:00 -04:00
Achim Gratz a089a3bccc add autload cookie for org-export-dispatch
* contrib/lisp/org-export.el: Add autload cookie for org-export-dispatch.
2012-08-09 18:25:45 +02:00
Bastien Guerry c81bb45d23 org-e-groff.el (org-e-groff-table--align-string): Small code cleanup.
* org-e-groff.el (org-e-groff-table--align-string): Small code
cleanup.
2012-08-08 18:48:14 +02:00
Luis Anaya a3778633c5 Removed not needed variables in org-e-groff.el and org-e-man.el
* org-e-groff.el (org-e-groff-item): Removed the `counter' variable from let assignment list.
	(org-e-groff-table--align-string): Removed the `attr' and `align' variables from the list assignment list.

	* org-e-man.el (org-e-man-item): Removed the `counter' variable from the let assignment list.
	(org-e-man-src-block): Removed non needed formatting string that was causing formatting errors for source blocks.
	(org-e-man-table--align-string): Removed `attr' and `align' variables from the let assignment list.
2012-08-08 12:31:05 -04:00
Bastien Guerry 481c89f388 org-e-groff.el: Massive code clean-up. 2012-08-08 14:11:09 +02:00
Luis Anaya 6aacc8bf7c Code Cleanup
* org-e-man.el (org-e-man-pdf-process)
	(org-e-man--caption/label-string, org-e-man-template)
	(org-e-man--caption/label-string)
	(org-e-man-source-highlight-langs, org-e-man-bold)
	(org-e-man-center-block, org-e-man-clock, org-e-man-code)
	(org-e-man-example-block, org-e-man-headline)
	(org-e-man-inline-src-block, org-e-man-item, org-e-man-keyword)
	(org-e-man-link, org-e-man-paragraph, org-e-man-radio-target)
	(org-e-man-macro, org-e-man-src-block, org-e-man-table)
	(org-e-man-table--align-string, org-e-man-table--org-table)
	(org-e-man-collect-errors): Code clean-up.

	* org-e-groff.el (org-e-groff-classes, org-e-groff-special-char)
	(org-e-groff-pdf-process, org-e-groff-registered-references)
	(org-e-groff--caption/label-string, org-e-groff--text-markup)
	(org-e-groff-template, org-e-groff-footnote-reference)
	(org-e-groff-headline, org-e-groff-inline-src-block)
	(org-e-groff-item, org-e-groff-link--inline-image)
	(org-e-groff-link, org-e-groff-paragraph)
	(org-e-groff-plain-list, org-e-groff-plain-text)
	(org-e-groff-src-block, org-e-groff-table)
	(org-e-groff-table--align-string, )
	(org-e-groff-table--org-table, org-e-groff-table-cell)
	(org-e-groff-table-row, org-e-groff-export-to-groff)
	(org-e-groff-collect-errors): Code cleanup.
2012-08-08 06:04:56 -04:00
Nicolas Goaziou d02eedc987 org-e-latex: Correctly export statistics cookies with percents
* contrib/lisp/org-e-latex.el (org-e-latex-statistics-cookie): Protect
  percents in statistics cookies.
2012-08-07 09:24:44 +02:00
Luis Anaya d69de79e4a Performed changes to meet the new org-export.el API.
* contrib/lisp/org-e-man.el (org-e-man-headline): Fixed call to org-export-first-sibling-p and org-export-last-sibling-p
	(org-e-man-table-cell): Fixed call to org-export-get-next-element
2012-08-03 07:47:50 -04:00
Luis Anaya 61c9996cf0 Perform changes in org-e-groff-headline and org-e-groff-table-cell calls to
meet changed org-export.el API calls.

	* contrib/lisp/org-e-groff.el (org-e-groff-headline): Fixed call to org-export-last-sibling-p

	* contrib/lisp/org-e-groff.el (org-e-groff-headline): Fixed call to org-export-first-sibling-p

	* contrib/lisp/org-e-groff.el (org-e-groff-table-cell): Fixed call to org-export-get-next-element.
2012-08-03 07:42:38 -04:00
Nicolas Goaziou 43606a916a org-e-ascii: Remove spurious blank lines ascii art tables
* contrib/lisp/org-e-ascii.el (org-e-ascii-table): Remove spurious
  blank lines ascii art tables.
2012-08-03 09:57:15 +02:00