GNU bug report logs - #27920
25.2; Elisp indentation breaks when function docstring matches "^("

Previous Next

Package: emacs;

Reported by: Ryan <rct <at> thompsonclan.org>

Date: Wed, 2 Aug 2017 16:46:01 UTC

Severity: wishlist

Tags: fixed

Found in versions 25.0.50, 25.0.50.1, 25.1, 25.2

Fixed in version 26.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ryan Thompson <rct <at> thompsonclan.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>, 27920 <at> debbugs.gnu.org
Subject: bug#27920: 25.2; Elisp indentation breaks when function docstring matches "^("
Date: Wed, 02 Aug 2017 21:39:58 +0000
[Message part 1 (text/plain, inline)]
Ok, that's good to know. That page claims that Emacs "highlights confusing
opening delimiters (those that ought to be quoted) in bold red", but I'm
not seeing that in this case. Is there some setting to enable this, or is
it likely that some other elisp package I have installed is interfering
with this highlighting? Or can Emacs not catch this kind of misplaced paren
in a string?

On Wed, Aug 2, 2017 at 2:34 PM Philipp Stephani <p.stephani2 <at> gmail.com>
wrote:

>
>
> Ryan <rct <at> thompsonclan.org> schrieb am Mi., 2. Aug. 2017 um 18:57 Uhr:
>
>>
>> When editing Emacs Lisp code, if I write a function whose docstring
>> contains a line beginning with an open paren, Emacs refuses to
>> auto-indent any line in the function body.
>
>
> Emacs by default doesn't accept opening parentheses in the first column
> that don't start a top-level definition. See
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Left-Margin-Paren.html
> .
>
[Message part 2 (text/html, inline)]

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

Previous Next


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