Subject: bug#20284: 25.0.50; sexp parser breaks when 'vectors' are in docstring

From: Noam Postavsky <[email-masked]>
Date: Sat, 10 Feb 2018 08:58:38 -0500

tags 20284 = fixed
close 20284 27.1
quit

Tim Visher <[email-masked]> writes:

> Starting from `emacs -Q`:
>
> In *scratch* define the following function
>
> (defun should-this-work? ()
>   "A docstring with 'vectors'
>
> [|[a b c]
>   [d e f]
>   [g h i]]
>
> [[|a b c]
>  [ d e f]
>  [ g h i]]"
>   (message "charnock"))
>
> With point in the body, attempt to `M-x eval-defun` and notice that it
> doesn't.
>
> Attempt to add to the body and notice that indentation is off.
>
> Other sexp things behave in unexpected ways.

This is fixed in master [1: 14b9558752] (the indenting part is fixed in
26, see Bug#27920).

[1: 14b9558752]: 2017-12-12 23:03:00 -0500
  * src/syntax.c (find_defun_start): Use syntax-ppss
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=14b95587520959c5b54356547a0a69932a9bb480