org-mode/lisp
Nicolas Goaziou 05794b13b3 org-element: Add :format property to link objects
* lisp/org-element.el (org-element-link-parser): Add :format property.
  Tiny refactoring.

* testing/lisp/test-org-element.el (test-org-element/link-interpreter):
  Add one test.  Update some others.

Since the link format is lost during parsing, the interpreter can hardly
handle nested links.  Indeed, in that case, the inner link is
interpreted as a bracket link, thus breaking the outer link.

Another option could be to guess a safe format for the link to be
interpreted. E.g.,

- any inner link could default to angle format unless it contains ">",
  it which case it would become a plain link;

- other links would have the bracket format, unless they contain "][" or
  "]]".

In any case, defining :format is less error prone and is similar to what
entities and sub/super-scripts have for curly brackets.

Reported-by: Thibault Marin <thibault.marin@gmx.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/109623>
2016-10-09 09:34:26 +02:00
..
Makefile
ob-abc.el Use assq instead of assoc for :keywords 2016-09-23 11:20:09 +01:00
ob-asymptote.el
ob-awk.el
ob-C.el
ob-calc.el
ob-clojure.el
ob-comint.el
ob-coq.el
ob-core.el
ob-css.el
ob-ditaa.el
ob-dot.el
ob-ebnf.el
ob-emacs-lisp.el
ob-eval.el
ob-exp.el
ob-forth.el
ob-fortran.el
ob-gnuplot.el
ob-groovy.el
ob-haskell.el
ob-io.el
ob-J.el
ob-java.el
ob-js.el
ob-keys.el
ob-latex.el
ob-ledger.el
ob-lilypond.el
ob-lisp.el
ob-lob.el
ob-lua.el
ob-makefile.el
ob-matlab.el
ob-maxima.el Use assq instead of assoc for :keywords 2016-09-23 11:20:09 +01:00
ob-mscgen.el
ob-ocaml.el
ob-octave.el
ob-org.el
ob-perl.el
ob-picolisp.el
ob-plantuml.el
ob-processing.el
ob-python.el
ob-R.el
ob-ref.el
ob-ruby.el
ob-sass.el
ob-scala.el
ob-scheme.el
ob-screen.el
ob-sed.el
ob-shell.el
ob-shen.el
ob-sql.el
ob-sqlite.el Use ‘eq’ instead of ‘equal’ for symbols 2016-09-25 16:29:06 +01:00
ob-stan.el
ob-table.el
ob-tangle.el
ob.el
org-agenda.el
org-archive.el
org-attach.el
org-bbdb.el
org-bibtex.el
org-capture.el Fix some `cl-case' uses 2016-09-25 21:08:36 +02:00
org-clock.el
org-colview.el Change :version in defcustoms from "25.1" to "25.2" 2016-10-05 11:18:39 +02:00
org-compat.el
org-crypt.el
org-ctags.el
org-datetree.el
org-docview.el
org-element.el
org-entities.el
org-eshell.el
org-eww.el
org-faces.el
org-feed.el
org-footnote.el
org-gnus.el
org-habit.el
org-id.el
org-indent.el
org-info.el
org-inlinetask.el
org-install.el
org-irc.el
org-lint.el
org-list.el
org-macro.el
org-macs.el
org-mhe.el
org-mobile.el
org-mouse.el
org-pcomplete.el
org-plot.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
org-protocol.el
org-rmail.el
org-src.el
org-table.el
org-timer.el
org-w3m.el
org.el
ox-ascii.el
ox-beamer.el Change :version in defcustoms from "25.1" to "25.2" 2016-10-05 11:18:39 +02:00
ox-html.el
ox-icalendar.el
ox-latex.el
ox-man.el
ox-md.el
ox-odt.el
ox-org.el
ox-publish.el
ox-texinfo.el
ox.el