org-mode/testing/lisp
Xavier Martinez-Hidalgo f38a7d433b org-capture: Fix aborting after inserting text at end of buffer
* lisp/org-capture.el (org-capture-mark-kill-region): Set end marker
  insertion type so that it advances when inserting text at the end of
  the capture buffer.

* testing/lisp/test-org-capture.el (test-org-capture/insert-at-end-abort):
  Add test case.

Inserting text at the end of the capture buffer does not advance the
end kill marker.  This causes the narrowing region and the kill
markers to get out of sync, which prevents 'org-capture-finalize' from
correctly cleaning the target buffer when aborting the capture.

Setting the kill end marker insertion type fixes this.

TINYCHANGE
2017-11-03 22:20:11 +01: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-R.el testing/lisp/test-ob-R.el: Initialize ESS vars for :session tests 2016-01-24 10:08:31 -08:00
test-ob-awk.el awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
test-ob-emacs-lisp.el ob-emacs-lisp: Fix pp results 2017-07-23 22:41:27 +02:00
test-ob-exp.el Remove `inline-only' option for `org-export-use-babel' 2017-08-26 10:32:26 +02:00
test-ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-header-arg-defaults.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00
test-ob-lilypond.el Fix duplicate tests 2017-09-08 13:20:48 +02:00
test-ob-lob.el Fix failing test 2017-08-19 19:12:08 +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 Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-plantuml.el ob-plantuml: Add support for prologue and header variables 2016-12-10 12:06:04 +01:00
test-ob-python.el Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01: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-scheme.el ob-scheme: Fix results error on unspecified and void values 2017-09-14 15:25:04 +02:00
test-ob-sed.el Org Babel now supports sed scripts 2015-05-30 14:59:01 +02:00
test-ob-shell.el Fix duplicate tests 2017-09-08 13:20:48 +02:00
test-ob-sqlite.el Fix table variable with commas in ob-sqlite 2017-09-06 13:18:30 +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 Fix tangling of org block with nested source block 2017-10-22 12:42:05 +02:00
test-ob-vala.el ob-vala.el: Add Vala support to Babel 2017-08-07 11:40:25 +02:00
test-ob.el Fix duplicate tests 2017-09-08 13:20:48 +02:00
test-org-agenda.el test-org-agenda: Small refactoring 2017-08-19 19:42:20 +02:00
test-org-attach-annex.el Silence byte-compiler in "testing/" 2016-06-04 21:12:30 +02:00
test-org-capture.el org-capture: Fix aborting after inserting text at end of buffer 2017-11-03 22:20:11 +01:00
test-org-clock.el org-clock: Fix clock report sometimes ignoring hours before :wstart 2017-10-08 10:53:39 +02:00
test-org-colview.el Merge branch 'maint' 2017-06-14 11:03:40 +02:00
test-org-datetree.el Fix failing test 2015-12-29 22:45:14 +01:00
test-org-duration.el org-duration: Fix `org-duration-to-minutes' with the empty string 2017-09-07 15:20:26 +02:00
test-org-element.el Merge branch 'maint' 2017-06-26 22:08:46 +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: Fix footnote deletion 2017-06-09 09:43:49 +02:00
test-org-info.el ox-texinfo: Delegate "info" links handling to "org-info.el" 2017-01-21 14:19:29 +01:00
test-org-inlinetask.el test-org-inlinetask: Testing inlinetasks 2015-12-04 19:59:52 +01:00
test-org-lint.el Merge branch 'maint' 2017-08-25 15:25:02 +02:00
test-org-list.el Merge branch 'maint' 2017-05-09 14:49:59 -04:00
test-org-macro.el Merge branch 'maint' 2017-08-21 21:27:06 +02:00
test-org-macs.el org-macs: Add tests for `org-split-string. 2017-08-01 20:29:23 +02:00
test-org-pcomplete.el Fix some tests 2017-02-13 17:21:24 +01:00
test-org-protocol.el org-protocol: Sources with date URL are supported 2017-06-28 17:44:27 +02:00
test-org-src.el Fix comma escaping with multiple leading commas 2017-10-24 09:51:43 +02:00
test-org-table.el org-table: Fix sorting with times > 100 hours 2017-08-25 00:06:27 +02:00
test-org-timer.el org-timer: Fix timer setting from effort property 2017-07-05 12:33:47 +02:00
test-org.el Fix `org-insert-todo-heading' 2017-10-18 22:48:16 +02:00
test-ox-publish.el ox-publish: Fix :base-extension any with :recursive t 2017-09-24 10:57:11 +02:00
test-ox.el Fix links without contents in table of contents' entries 2017-10-14 12:29:52 +02:00
test-property-inheritance.el Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00