Subject: Re: bug#26187: Bug in indent-sexp

From: [email-masked]
Date: Tue, 21 Mar 2017 20:49:42 -0400

tags 26187 fixed
close 26187 
quit

Gdobbins <[email-masked]> writes:

> The refactor of indent-sexp in commit 3ee3995d105ff02f0fac540757431d36cb45c6c7 broke the assumption
>
> ;; If ENDPOS is nil, it is safe not to scan before point
> ;; since every line we indent is more deeply nested than point is.
>
> thereby breaking functionality in paredit. The attached patch fixes this.
>

Pushed to master [1: bcb6c7b7cd], added test in [2: 0b60d7657a].

1: 2017-03-21 20:45:31 -0400 bcb6c7b7cd954fc653fe54c20aa4a5d8dd97d76d
  * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Fix null endpos case

2: 2017-03-21 20:45:32 -0400 0b60d7657a2d9e5f9a233032643b0f3ce55420ee
  * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-subsexp): Test for Bug#26187