]> git.eshelyaron.com Git - emacs.git/commit
Fix recently extended delete-indentation behavior
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 27 Mar 2019 15:13:25 +0000 (15:13 +0000)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sun, 31 Mar 2019 16:08:21 +0000 (17:08 +0100)
commit0cd250e9583deb1e1f4d8dae2ec44c4f7c13efa6
treea50516ab3cc6eebcfc683a037a88d31a805c8a7f
parent99be0aba4defb8377cb148f7805ea07babc6182f
Fix recently extended delete-indentation behavior

* doc/lispref/text.texi (User-Level Deletion): Document new optional
arguments of delete-indentation.

* lisp/simple.el (delete-indentation): Do not barf if called
interactively when region is inactive. (bug#35021)
Do not skip blank lines. (bug#35036)
Consistently deactivate mark even when no text was changed.
Handle active region spanning a single line.

* test/lisp/simple-tests.el (simple-test--buffer-substrings):
New convenience function.
(simple-test--dummy-buffer, simple-test--transpositions): Use it.
(simple-delete-indentation-no-region)
(simple-delete-indentation-inactive-region): Update commentary.
Call delete-indentation interactively when testing for behavior with
inactive region and region is not explicitly defined.
(simple-delete-indentation-blank-line)
(simple-delete-indentation-boundaries)
(simple-delete-indentation-region)
(simple-delete-indentation-prefix): New tests.
doc/lispref/text.texi
lisp/simple.el
test/lisp/simple-tests.el