Fix bug in delete-indentation when region is inactive
commitb515edb98521cf489c81457fa22e6efe78bb042d
authorStephen Leake <stephen_leake@stephe-leake.org>
Fri, 22 Mar 2019 23:14:50 +0000 (22 16:14 -0700)
committerStephen Leake <stephen_leake@stephe-leake.org>
Fri, 22 Mar 2019 23:14:50 +0000 (22 16:14 -0700)
tree091144df9a7ad8facda14cd03a1f8f1815856ae6
parentc1b63af4458e92bad33da0def2b15c206656e2fa
Fix bug in delete-indentation when region is inactive

* test/lisp/simple-tests.el: Add tests for delete-indentation.
(simple-delete-indentation-no-region): Works with no region.
(simple-delete-indentation-inactive-region): Was broken with inactive
region; now fixed.

* lisp/simple.el (delete-indentation): Check (use-region-p) before using BEG.
lisp/simple.el
test/lisp/simple-tests.el