tags 35286 + patch quit Leo Liu writes: > The bug is caused by the following unsafe part of indent-sexp introduced > in 26.2: > > (save-excursion > (let ((eol (line-end-position))) > (forward-sexp 1) > (condition-case () > (while (and (< (point) eol) (not (eobp))) > (forward-sexp 1)) > (scan-error nil))) > (point)) > > which can easily include two or more sexps after point. This looks like > a major breakage. I put that code there because Emacs 25 and earlier also indents more than one sexps after point in some cases. The regression is that the Emacs 26 code gets confused by comments at the end of line. Here's a patch for emacs-26 to fix this: