Make sure indent-sexp stops at end of sexp (Bug#26878)
commit750f0e2e79e1bdc3246b07aa3219cab34ebde6e7
authorNoam Postavsky <npostavs@gmail.com>
Thu, 11 May 2017 22:12:40 +0000 (11 18:12 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 16 May 2017 02:58:17 +0000 (15 22:58 -0400)
tree9dbb72248eb3843359cc1ad6d475d53112ddf3c2
parent24d06313c4f205061fb74c9665d5819a05362636
Make sure indent-sexp stops at end of sexp (Bug#26878)

* lisp/emacs-lisp/lisp-mode.el (indent-sexp): Check endpos before
indenting.
* test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-stop): New
test.
lisp/emacs-lisp/lisp-mode.el
test/lisp/emacs-lisp/lisp-mode-tests.el