org-mode/lisp
Nicolas Goaziou 92ee4d06a2 org-capture: Fix escaping characters in template embedded S-exps
* lisp/org-capture.el (org-capture-fill-template): Escape backslash
  characters in %i contents when those are inserted within a S-exp.
  Also prevent adding any prefix to %i contents spanning over multiple
  lines when they are inserted within a S-exp.

* testing/lisp/test-org-capture.el (test-org-capture/fill-template):
  Add tests.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112232>
2017-03-14 09:03:59 +01:00
..
Makefile Makefile (clean-install): Also remove ox*.el* files 2013-04-18 14:43:45 +02:00
ob-C.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-J.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
ob-R.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-abc.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-asymptote.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-awk.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-calc.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-clojure.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-comint.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-coq.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-core.el ob-core: Properly escape Org syntax when inserting results 2017-03-01 22:19:04 +01:00
ob-css.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-ditaa.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-dot.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-ebnf.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-emacs-lisp.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-eval.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-exp.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
ob-forth.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-fortran.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-gnuplot.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-groovy.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-haskell.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-io.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-java.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-js.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-keys.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-latex.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-ledger.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-lilypond.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-lisp.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
ob-lob.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-lua.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-makefile.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-matlab.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-maxima.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-mscgen.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-ocaml.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-octave.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-org.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-perl.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-picolisp.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-plantuml.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-processing.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-python.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-ref.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-ruby.el ob-ruby: Silence byte-compiler 2017-01-02 00:14:06 +01:00
ob-sass.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-scala.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-scheme.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-screen.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-sed.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-shell.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-shen.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-sql.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-sqlite.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-stan.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-table.el Update copyright years 2017-01-05 20:19:37 -05:00
ob-tangle.el Update copyright years 2017-01-05 20:19:37 -05:00
ob.el Update copyright years 2017-01-05 20:19:37 -05:00
org-agenda.el org-agenda: Fix infloop in `org-find-top-headline' 2017-03-11 11:20:35 +01:00
org-archive.el Update copyright years 2017-01-05 20:19:37 -05:00
org-attach.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
org-bbdb.el Update copyright years 2017-01-05 20:19:37 -05:00
org-bibtex.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
org-capture.el org-capture: Fix escaping characters in template embedded S-exps 2017-03-14 09:03:59 +01:00
org-clock.el org-clock: Add german translation. 2017-02-19 09:39:06 +01:00
org-colview.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
org-compat.el ob-core: Move org-babel-local-file-name to org-compat.el 2017-01-25 22:00:48 -05:00
org-crypt.el Update copyright years 2017-01-01 11:19:15 +01:00
org-ctags.el Update copyright years 2017-01-05 20:19:37 -05:00
org-datetree.el Update copyright years 2017-01-05 20:19:37 -05:00
org-docview.el Update copyright years 2017-01-05 20:19:37 -05:00
org-element.el Fix file:// uri handling for windows-nt and cygwin 2017-02-17 08:36:00 +01:00
org-entities.el Update copyright years 2017-01-05 20:19:37 -05:00
org-eshell.el Update copyright years 2017-01-05 20:19:37 -05:00
org-eww.el org-eww: Fix copy of form-elements 2017-02-12 09:00:56 +01:00
org-faces.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
org-feed.el Update copyright years 2017-01-05 20:19:37 -05:00
org-footnote.el Update copyright years 2017-01-05 20:19:37 -05:00
org-gnus.el Update copyright years 2017-01-05 20:19:37 -05:00
org-habit.el Update copyright years 2017-01-05 20:19:37 -05:00
org-id.el Update copyright years 2017-01-05 20:19:37 -05:00
org-indent.el Update copyright years 2017-01-05 20:19:37 -05:00
org-info.el org-info: Fix HTML export of info link 2017-01-21 13:48:27 +01:00
org-inlinetask.el Update copyright years 2017-01-05 20:19:37 -05:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-irc.el Update copyright years 2017-01-05 20:19:37 -05:00
org-lint.el org-lint: Add checker for empty headlines with tags 2017-02-17 13:23:26 +01:00
org-list.el Update copyright years 2017-01-05 20:19:37 -05:00
org-macro.el Update copyright years 2017-01-05 20:19:37 -05:00
org-macs.el Update copyright years 2017-01-05 20:19:37 -05:00
org-mhe.el Update copyright years 2017-01-05 20:19:37 -05:00
org-mobile.el org-mobile: Silence byte-compiler 2017-01-14 16:16:08 +01:00
org-mouse.el Update copyright years 2017-01-05 20:19:37 -05:00
org-pcomplete.el Update copyright years 2017-01-05 20:19:37 -05:00
org-plot.el Update copyright years 2017-01-05 20:19:37 -05:00
org-protocol.el org-protocol: Fix library name 2017-02-28 13:37:48 +01:00
org-rmail.el Update copyright years 2017-01-05 20:19:37 -05:00
org-src.el org-src: Fix typo in code comment 2017-02-18 14:56:41 +01:00
org-table.el org-table: Move table column with leaving text-properties untouched 2017-02-13 15:37:53 +01:00
org-timer.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
org-w3m.el Update copyright years 2017-01-05 20:19:37 -05:00
org.el org.el: Make faces org-quote and org-verse be appended 2017-02-23 14:17:56 +01:00
ox-ascii.el Revert "ox-ascii: Remove useless brackets in sub/super script" 2017-03-11 11:21:26 +01:00
ox-beamer.el Fix LaTeX and Beamer publishing processes 2017-03-08 09:33:09 +01:00
ox-html.el ox-html: Fix verse blocks 2017-03-08 00:12:55 +01:00
ox-icalendar.el Update copyright years 2017-01-05 20:19:37 -05:00
ox-latex.el Fix LaTeX and Beamer publishing processes 2017-03-08 09:33:09 +01:00
ox-man.el Update copyright years 2017-01-05 20:19:37 -05:00
ox-md.el ox-md: Fix internal links 2017-03-10 18:52:06 +01:00
ox-odt.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
ox-org.el Update copyright years 2017-01-05 20:19:37 -05:00
ox-publish.el ox-publish: Fix docstring typo 2017-01-15 16:41:22 -05:00
ox-texinfo.el Change :version in defcustoms from "25.2" to "26.1" 2017-01-26 00:02:03 -05:00
ox.el Fix file:// uri handling for windows-nt and cygwin 2017-02-17 08:36:00 +01:00