1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-11 09:20:32 +00:00
org-mode/testing/lisp
Kyle Meyer 5f3d8037a5 org-add-planning-info: Improve deletion handling
* lisp/org.el (org-add-planning-info): Reset point before each
  planning entry search.  Clean up extra spaces.

* testing/lisp/test-org.el (test-org/add-planning-info): Add tests.

- Reposition save-excursion call to reset point every dolist
  iteration.  Otherwise, the order of the entries to be removed
  matters, and a call like

      (org-add-planning-info nil nil 'scheduled 'deadline)

  on

      DEADLINE: <2015-06-26 Fri> SCHEDULED: <2015-06-26 Fri>

  will fail to remove the deadline entry.

- Delete leading white space even when at the beginning of the line so
  that, when org-adapt-indentation is nil, a space is not inserted
  when removing the leading planning info entry.

  This prevents headings with repeating entries like

      SCHEDULED: <2015-06-26 Fri +1w>

  from being closed and recycled with an extra space in front of
  SCHEDULED.

- Add leading white space to the planning info entry regexp to prevent
  leftover white space when removing entries other than the first
  entry.
2015-06-28 09:03:46 +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 Replace org-ctrl-c-ctrl-c' by org-babel-execute-maybe' 2015-01-30 18:28:05 +01:00
test-ob-exp.el Update some copyright years 2015-02-16 01:40:07 +01:00
test-ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-header-arg-defaults.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-lilypond.el ob-lilypond: Code cleanup 2014-08-20 22:24:01 +02:00
test-ob-lob.el Update some copyright years 2015-02-16 01:40:07 +01:00
test-ob-maxima.el Update copyright years again. 2014-01-07 14:18:17 +01: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-python.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-R.el Update copyright years again. 2014-01-07 14:18:17 +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-sed.el Org Babel now supports sed scripts 2015-05-30 14:59:01 +02:00
test-ob-shell.el ob-shell.el: export vars as arrays for 'sh' code blocks 2014-04-14 21:24:00 -06:00
test-ob-table.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-tangle.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob.el test-ob: Simplify a test 2015-05-26 21:24:20 +02:00
test-org-clock.el Update some copyright years 2015-02-16 01:40:07 +01:00
test-org-element.el org-element: Fix cache bug for orphaned elements 2015-06-14 14:52:04 +02:00
test-org-footnote.el org-footnote: Rename `org-footnote-goto-local-insertion-point' 2015-05-06 23:47:13 +02:00
test-org-list.el org-list: Fix checkbox update with inlinetasks 2015-06-09 17:06:17 +02:00
test-org-macro.el Allow optional argument to {{{property}}} for remote entries 2015-05-10 11:48:13 +02:00
test-org-src.el Update some copyright years 2015-02-16 01:40:07 +01:00
test-org-table.el ox-html: Less generic names for table aligns. 2015-05-15 13:17:10 +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 org-add-planning-info: Improve deletion handling 2015-06-28 09:03:46 +02:00
test-ox.el ox: Handle subtree properties referring to multiple options 2015-06-23 22:09:43 +02:00
test-property-inheritance.el Update copyright years again. 2014-01-07 14:18:17 +01:00