0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-30 09:57:47 +00:00
org-mode/testing/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
..
test-ob-awk.el awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
test-ob-C.el Babel C, C++, D support for non-homogeneous input tables 2014-06-08 19:20:16 -04:00
test-ob-emacs-lisp.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-exp.el Fix coderef handling in source blocks 2016-08-28 11:56:14 +02:00
test-ob-fortran.el
test-ob-header-arg-defaults.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00
test-ob-lilypond.el ob-lilypond: Fix failing tests 2015-11-08 17:31:34 +01:00
test-ob-lob.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-lua.el ob-lua.el: Update library for Org 9.0 2016-08-29 08:57:10 +02:00
test-ob-maxima.el test-ob-maxima: Revert last commit 2016-08-20 23:43:35 +02:00
test-ob-octave.el
test-ob-perl.el
test-ob-python.el Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01:00
test-ob-R.el testing/lisp/test-ob-R.el: Initialize ESS vars for :session tests 2016-01-24 10:08:31 -08:00
test-ob-ruby.el Replace org-ctrl-c-ctrl-c' by org-babel-execute-maybe' 2015-01-30 18:28:05 +01:00
test-ob-sed.el Org Babel now supports sed scripts 2015-05-30 14:59:01 +02:00
test-ob-shell.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-table.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob-tangle.el Turn org-mode into Org or Org mode 2016-08-23 22:13:56 +02:00
test-ob.el ob-core: Prevent spurious blanks lines when executing code 2016-10-07 23:56:37 +02:00
test-org-attach-annex.el Silence byte-compiler in "testing/" 2016-06-04 21:12:30 +02:00
test-org-capture.el Add ERTs for feed templates 2016-01-13 08:19:23 +01:00
test-org-clock.el org-clock: Fix infloop when creating a clock table 2016-08-20 00:22:13 +02:00
test-org-colview.el Fix a test 2016-06-04 21:27:55 +02:00
test-org-datetree.el Fix failing test 2015-12-29 22:45:14 +01:00
test-org-element.el org-element: Add :format property to link objects 2016-10-09 09:34:26 +02:00
test-org-feed.el org-feed: Fix failing test 2016-01-13 17:08:58 +01:00
test-org-footnote.el org-footnote: Handle un-referenced definitions 2016-02-27 16:05:35 +01:00
test-org-inlinetask.el test-org-inlinetask: Testing inlinetasks 2015-12-04 19:59:52 +01:00
test-org-lint.el Add tests for Org Lint 2016-09-19 00:57:20 +02:00
test-org-list.el Move `org-toggle-item' in "org-list.el" 2016-07-04 23:52:40 +02:00
test-org-macro.el org-macro: Fix expansion in narrowed buffers 2016-01-29 00:52:49 +01:00
test-org-pcomplete.el Silence byte-compiler in "testing/" 2016-06-04 21:12:30 +02:00
test-org-protocol.el org-protocol: Allow key=val&key2=val2-style URLs 2015-12-22 13:41:45 +01:00
test-org-src.el org-src: Fix coderef regexp 2016-08-18 01:04:28 +02:00
test-org-table.el org-table: Fix inserting a new row 2016-09-28 23:33:32 +02:00
test-org-timer.el org-timer.el: hh:mm:ss format for setting a timer 2015-06-02 23:18:13 +02:00
test-org.el Change org-align-tags-here' into org--align-tags-here' 2016-10-05 11:54:49 +02:00
test-ox.el Create `org-link-parameters' 2016-07-18 22:47:42 +02:00
test-property-inheritance.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00