GNU bug report logs - #26642
25.1; Lisp Mode: open paren at start of line in doc string messes up top level form detection

Previous Next

Package: emacs;

Reported by: Philipp Matthias Schäfer <philipp.matthias.schaefer <at> posteo.de>

Date: Mon, 24 Apr 2017 18:21:02 UTC

Severity: wishlist

Tags: fixed

Merged with 20284, 20761

Found in versions 25.0.50, 25.0.50.1, 25.1, 25.2

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #21 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Tim Visher <tim.visher <at> gmail.com>
Cc: 20284 <at> debbugs.gnu.org
Subject: Re: bug#20284: 25.0.50;
 sexp parser breaks when 'vectors' are in docstring
Date: Sat, 10 Feb 2018 08:58:38 -0500
tags 20284 = fixed
close 20284 27.1
quit

Tim Visher <tim.visher <at> gmail.com> 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




This bug report was last modified 7 years and 104 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.