forked from mirrors/org-mode
f1583aab46
* 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 |
||
---|---|---|
.. | ||
Makefile | ||
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 | ||
ob-ditaa.el | ||
ob-dot.el | ||
ob-ebnf.el | ||
ob-emacs-lisp.el | ||
ob-eval.el | ||
ob-exp.el | ||
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-ruby.el | ||
ob-sass.el | ||
ob-scala.el | ||
ob-scheme.el | ||
ob-screen.el | ||
ob-sh.el | ||
ob-shen.el | ||
ob-sql.el | ||
ob-sqlite.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 | ||
org-clock.el | ||
org-colview.el | ||
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-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-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 |