org-mode/lisp
York Zhao f1583aab46 Fix problem with :exact-positions in capture
* lisp/org-capture.el (org-capture-place-entry): Set :exact-position
before doing other stuff, to allow function with other target settings

TINYCHANGE

Assuming file "test.org" has a single headline "* Level 1" (ended with
newline character), when trying to use function type capture target in
an org-capture template, as shown in the example:

(setq org-capture-templates
      `(("t"
         "Test function type target"
         entry
         (function
          (lambda ()
            (set-buffer (org-capture-target-buffer "test.org"))
            (goto-char (point-max))))
         "* Level 2")))

When this template gets filled, file "test.org" becomes:

* Level 1
* Level 2

Instead of:

* Level 1
** Level 2

This is because when using function type target, `:exact-position' is
used to store buffer position returned by user's function (the lambda
function here), and function `org-capture-place-entry' will never
insert template as a child of current entry when `:exact-position' is
used.

The problem is addressed by not special casing for `:exact-position'
in function `org-capture-place-entry'.

York
2013-11-26 06:28:07 +01:00
..
Makefile Makefile (clean-install): Also remove ox*.el* files 2013-04-18 14:43:45 +02:00
ob-abc.el
ob-asymptote.el
ob-awk.el
ob-C.el
ob-calc.el
ob-clojure.el
ob-comint.el
ob-core.el
ob-css.el Update Copyright lines to match Emacs format. 2013-01-08 15:04:32 +01:00
ob-ditaa.el
ob-dot.el
ob-ebnf.el
ob-emacs-lisp.el
ob-eval.el
ob-exp.el fixed export of inline src blocks 2013-11-23 12:24:58 -07:00
ob-fortran.el
ob-gnuplot.el
ob-haskell.el
ob-io.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-makefile.el
ob-matlab.el
ob-maxima.el
ob-mscgen.el
ob-ocaml.el
ob-octave.el
ob-org.el
ob-perl.el
ob-picolisp.el
ob-plantuml.el
ob-python.el
ob-R.el
ob-ref.el ob-list, ob-ref: fix byte-compiler warnings 2013-11-14 21:22:14 +01:00
ob-ruby.el
ob-sass.el
ob-scala.el Backport changes from Emacs revs 115081 and 115082 2013-11-12 20:57:31 +01:00
ob-scheme.el
ob-screen.el
ob-sh.el
ob-shen.el
ob-sql.el
ob-sqlite.el Backport changes from Emacs revs 115081 and 115082 2013-11-12 20:57:31 +01:00
ob-table.el
ob-tangle.el sometimes remove common indentation when trimming 2013-11-23 15:57:29 -07:00
ob.el
org-agenda.el Merge branch 'maint' 2013-11-17 09:17:39 +01:00
org-archive.el
org-attach.el
org-bbdb.el
org-bibtex.el
org-capture.el
org-clock.el
org-colview.el
org-compat.el org-compat: Support for getting data from Windows clipboard 2013-11-22 10:52:41 +01:00
org-crypt.el
org-ctags.el
org-datetree.el
org-docview.el
org-element.el
org-entities.el org-entities: New entities 2013-09-01 14:28:13 +02:00
org-eshell.el
org-faces.el
org-feed.el
org-footnote.el
org-gnus.el org-compat.el: New compatibility function `org-defvaralias' 2013-03-14 13:53:52 +01:00
org-habit.el
org-id.el
org-indent.el
org-info.el
org-inlinetask.el
org-install.el
org-irc.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
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
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