Commit Graph

18923 Commits

Author SHA1 Message Date
Nicolas Goaziou 8e92216a7c org.texi: Spread LaTeX export back-end documentation
* doc/org.texi (Top): Update master menu
(@LaTeX{} export): Update menu.

(@LaTeX{} header and sectioning):
(Quoting @LaTeX{} code):
(Images in @LaTeX{} export):
(Plain lists in @LaTeX{} export):
(Source blocks in @LaTeX{} export):
(Special blocks in @LaTeX{} export):
(Horizontal rules in @LaTeX{} export): New subsections.
2016-07-23 13:56:29 +02:00
Nicolas Goaziou 9ee185c3af org.texi: Rename `latex' export back-end section
* doc/org.texi (Top):
(Exporting):
(Beamer export):
(Beamer specific syntax):
(JavaScript support): Rename `latex' export back-end section.

The PDF output format is not specific to `latex' back-end so it doesn't
need to be part of the section name.
2016-07-23 12:09:39 +02:00
Nicolas Goaziou c4b68a13a1 org.texi: Update default export back-ends
* doc/org.texi (Export back-ends): Notify that `odt' back-end is loaded
  by default.
2016-07-23 12:04:59 +02:00
Nicolas Goaziou 0dc3811a7a ob-shell: Silence byte-compiler 2016-07-23 11:49:28 +02:00
Nicolas Goaziou 250304bd2e ob-shell: Make `org-babel-shell-initalize' a command
* lisp/ob-shell.el (org-babel-shell-initialize): Add `interactive.
2016-07-23 10:47:01 +02:00
Nicolas Goaziou 0f7df32711 ob-shell: Use cl-lib 2016-07-23 10:41:17 +02:00
Nicolas Goaziou 609c3b3c14 ob-shell: Improve `org-babel-shell-name' customization
* lisp/ob-shell.el (org-babel-shell-initialize): New function
(org-babel-shell-names): Properly update execute functions whenever the
variable is modified outside the Customize interface.
2016-07-23 10:34:37 +02:00
Nicolas Goaziou fcc2ca6957 org-compat: Improve obsolete notification 2016-07-22 10:23:21 +02:00
Nicolas Goaziou 8d44c95025 org-compat: Silence byte-compiler 2016-07-22 10:20:49 +02:00
Nicolas Goaziou 47138a986e org-table: Fix calculations with locale specific time-stamps
* lisp/org-table.el (org-table-eval-formula): Fix calculations with
  locale specific time-stamps.
* testing/lisp/test-org-table.el (test-org-table/time-stamps): New test.

Reported-by: "Ulrich J. Herter" <ujh@posteo.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/108165>
2016-07-21 11:49:15 +02:00
Nicolas Goaziou 8fc25eb409 org-table: Assume `calc-eval' is always available
* lisp/org-table.el (org-table-maybe-eval-formula):
(org-table-eval-formula): Assume `calc-eval' is always available, which
is the case on any recent GNU Emacs.
2016-07-21 10:25:44 +02:00
Nicolas Goaziou eb9fb15b2d ox-html: Remove unprefixed "cl" macros
* lisp/ox-html.el (org-html-infojs-install-script):
(org-html-list-of-listings):
(org-html-list-of-tables):
(org-html-format-list-item):
(org-html-inline-image-p):
(org-html-standalone-image-p):
(org-html-link):
(org-html-begin-plain-list):
(org-html-end-plain-list):
(org-html-table): Refactor code so as to avoid using un-prefixed "cl"
macros.
2016-07-20 22:02:50 +02:00
Nicolas Goaziou 3548c4bead ox-html: Use unescaped URL in links without description
* lisp/ox-html.el (org-html-link): Use unescaped URL in links without
  description.

Reported-by: Arun Isaac <arunisaac@systemreboot.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108359>
2016-07-20 21:52:10 +02:00
Nicolas Goaziou 7d0eef5fd5 org-compat: Preserve compatibility with Emacs 24.3
* lisp/org-compat.el: Use `eval-after-load' instead of
  `with-eval-after-load' since the latter was introduce in Emacs 24.4.
2016-07-20 21:45:30 +02:00
Nicolas Goaziou 41c0f509c6 org-mobile: Fix code typo
* lisp/org-mobile.el (org-mobile-create-index-file): Fix code typo.

Reported-by: Martin Leduc <ldcmrtn@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108193>
2016-07-20 10:06:28 +02:00
Nicolas Goaziou 8fe6f27512 Deprecate "file+application" link types
* doc/org.texi (External links): Remove "file+emacs" and "file+sys"
  syntax.
* lisp/org-compat.el (org): Support "file+emacs" and "file+sys" for the
  time being.
* lisp/org-lint.el (org-lint--checkers): Add checker for obsolete link
  types.
(org-lint-file-application): New function.
* lisp/org.el (org-link-parameters): Remove deprecated link types.
2016-07-18 23:45:52 +02:00
Nicolas Goaziou aa822a4614 Remove unnecessary link application handler
* lisp/org.el (org-linkg-parameters): Use default follow function
  instead of providing one.
(org--open-file-link): Remove function.
2016-07-18 23:14:15 +02:00
Nicolas Goaziou 7552b67ac2 Externalize hard-coded type links
* lisp/org.el (org-link-parameters): Add follow function for "doi",
  "elisp", "ftp", "help", "http", "https", "mailto", "message", "news"
  and "shell" link types.
(org--open-elisp):
(org--open-doi):
(org--open-help):
(org--open-shell): New functions.
(org-open-at-point): Remove hard-coded follow functions.
2016-07-18 22:56:02 +02:00
John Kitchin 1c01b74301 Update the contrib manual 2016-07-18 22:47:51 +02:00
John Kitchin e920819911 Update NEWS with link announcement 2016-07-18 22:47:51 +02:00
John Kitchin 4e42012090 Update the texinfo for link parameters documentation 2016-07-18 22:47:51 +02:00
John Kitchin 91e6b3b057 Update id link definition
* lisp/org-id.el ("id"): Update to use org-link-set-parameters.
2016-07-18 22:47:51 +02:00
John Kitchin 4e3fd4a1c8 Update w3m link definition
* lisp/org-w3m.el ("w3m"):
Update to use org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin 12f473f584 Update rmail link definition
* lisp/org-rmail.el ("rmail"):
Use org-link-set-parameters to define link.
2016-07-18 22:47:50 +02:00
John Kitchin 35835bce9d Update mhe link definition
* lisp/org-mhe.el ("mhe"): Define link with org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin 02a00841dc Update irc link definition
* lisp/org-irc.el ("irc"):
Define link with org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin 692f874a12 Update info link definition
* lisp/org-info.el ("info"):
Update link definition with org-link-set-parameters and change a doc string to
point to org-link-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin 386e3957a6 Update gnus link definition
* lisp/org-gnus.el ("gnus"):
Update link definition with org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin 60988ca502 Update eshell link definition
* lisp/org-eshell.el ("eshell"):

Update to use org-link-set-parameters.
2016-07-18 22:47:50 +02:00
John Kitchin a1ab5b284b Update docview link definition
* lisp/org-docview.el ("docview"):

Update link definition with org-link-set-parameters.
2016-07-18 22:47:49 +02:00
John Kitchin 91fd0a1072 Update bibtex link definition
* lisp/org-bibtex.el ("bibtex"):

Change link definition to use org-link-set-parameters
2016-07-18 22:47:49 +02:00
John Kitchin d55afe29f3 Update bbdb link definition
* lisp/org-bbdb.el ("bbdb"):

Change link definition to org-link-set-parameters
2016-07-18 22:47:49 +02:00
John Kitchin 82f1f46052 Make plain and bracketed link properties stick
* lisp/org.el (org-set-font-lock-defaults): If t is after the face, than
  org-link clobbers everything from the activation functions.
2016-07-18 22:47:49 +02:00
John Kitchin 5c17aa7994 Update `org-activate-bracket-links'
* lisp/org.el (org-activate-bracket-links): Use `org-link-parameters' to
  build link properties.
2016-07-18 22:47:49 +02:00
John Kitchin b4dd8245b7 Update `org-activate-plain-links'
* lisp/org.el (org-activate-plain-links): Use `org-link-parameters' to
  create the link properties.
2016-07-18 22:47:48 +02:00
John Kitchin de6858f293 Get the complete function from `org-link-parameters'
* lisp/org.el (org-link-try-special-completion):
Get the follow function from `org-link-parameters'

Only follow when a function is defined.

* lisp/org.el (org-open-at-point): Some links don't have a :follow
  function, so we should not call nil in that case.
2016-07-18 22:47:48 +02:00
John Kitchin a5f5fedf3e Remove `org-link-protocols' variable
* lisp/org.el (org-link-protocols): Remove variable org-link-protocols.
The data in this variable is now retrieved with org-link-get-parameter.

* lisp/org.el: Enable file links to use the application link property to
  determine the follow action. Also add a space after let*.
2016-07-18 22:47:48 +02:00
John Kitchin 9bc2940034 Create `org-link-parameters'
* lisp/org-element.el: Replace `org-link-types' variable with
  `org-link-types' function.

* lisp/org.el: Replace the `org-link-types' variable with
  `org-link-types' function. Create `org-link-get-parameter' and
  `org-link-set-parameters' functions. Remove `org-add-link-type'. Add
  `org-store-link-functions' function and remove
  `org-store-link-functions' variable. Add `org--open-file-link' for use
  as a :follow function for file type links.

* lisp/org.el: Set :follow functions for file links in `org-link-parameters.
Define `org-open-file-link' that opens a file link with an app.

* testing/lisp/test-ox.el: Remove usage of the `org-link-types'
  variable.

* lisp/org-compat.el: Move `org-add-link-type' and mark it as obsolete.

* lisp/ox.el: Change org-add-link-type comment in ox.el.
2016-07-18 22:47:42 +02:00
Nicolas Goaziou 481709e11b ob-exp: Remove spurious declaration 2016-07-17 22:55:03 +02:00
Nicolas Goaziou e1f24f537e Fix `org-compile-file' error
* lisp/org.el (org-compile-file): Fix error when source file is not
  located in current directory.

Reported-by: "Charles C. Berry" <ccberry@ucsd.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/108245>
2016-07-17 14:28:00 +02:00
Nicolas Goaziou 08d91f37af Merge branch 'maint' 2016-07-17 12:06:55 +02:00
Nicolas Goaziou 8301b72ed2 Revert "ob-exp: Remove spurious comma un-escaping"
This reverts commit 0279d84cd7.
2016-07-17 12:04:28 +02:00
thomas 63f7f6cd22 * ob-vbnet.el: Org-babel functions for VB.Net evaluation
* contrib/lisp/ob-vbnet.el: Add org-babel functions for VB.Net evaluation.
(org-babel-vbnet-command): Name of the VB command (mono)
(org-babel-vbnet-compiler): Name of the VB compiler (vbnc)
(org-babel-execute:vbnet): Execute VB.Net code
(org-babel-prep-session:vbnet): Throw error (sessions are not supported)
2016-07-08 12:27:33 +02:00
Nicolas Goaziou 482db1551d Merge branch 'maint' 2016-07-07 12:21:21 +02:00
Fabrice Popineau ebe7aa6692 org-eldoc: Handle source blocks with empty language
* contrib/lisp/org-eldoc.el (org-eldoc-get-src-header): When inserting
  a new src block, the language may not yet be chosen when this is
  called.
2016-07-07 12:17:49 +02:00
Fabrice Popineau e31587fa13 org-eldoc: Fix "wrong-type-argument symbolp" error
* contrib/lisp/org-eldoc.el (org-eldoc-documentation-function): The
  doc-fun object may be a function object and not a symbol.
2016-07-07 12:15:03 +02:00
Nicolas Goaziou 610ec90cf4 Move `org-toggle-item' in "org-list.el"
* lisp/org.el (org-toggle-item): Move function ...
* lisp/org-list.el (org-toggle-item): ... here.

* testing/lisp/test-org-list.el (test-org-list/toggle-item): New test.
2016-07-04 23:52:40 +02:00
Nicolas Goaziou 1b8e1fc63f Merge branch 'maint' 2016-07-04 23:23:51 +02:00
thomas 9494706b86 ob-csharp.el: Org-babel functions for C# evaluation
* contrib/lisp/ob-csharp.el: Add org-babel functions for C# evaluation.
(org-babel-csharp-command): Name of the C# command (mono)
(org-babel-csharp-compiler): Name of the C# compiler (mcs)
(org-babelexecute:csharp): Execute C# code.
(org-babel-prep-session:csharp): Throw error (sessions are not supported).
2016-07-04 15:25:21 +02:00
Nicolas Goaziou cd3a552ef4 Fix toggling multiple headings with a TODO keyword
* lisp/org.el (org-toggle-item): Remove TODO keyword in each headling
  when changed to an item.
2016-07-04 14:12:13 +02:00