GNU bug report logs - #62142
30.0.50; python-fill-paragraph problems on filling strings

Previous Next

Package: emacs;

Reported by: kobarity <kobarity <at> gmail.com>

Date: Sun, 12 Mar 2023 08:40:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: João Távora <joaotavora <at> gmail.com>
To: kobarity <kobarity <at> gmail.com>
Cc: 62142 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#62142: 30.0.50; python-fill-paragraph problems on filling strings
Date: Sun, 12 Mar 2023 18:05:48 +0000
kobarity <kobarity <at> gmail.com> writes:

> Attached is a patch to fix these problems.  Main changes are:
>
> 1. single-quoted-string and triple-quoted-string are added as a TYPE
>    argument of `python-syntax-context'.
> 2. New helper function `python-info-triple-quoted-string-p' is added
>    to detect triple quoted strings including quotes.
> 3. `python-fill-paragraph' and `python-fill-string' use
>    `python-info-triple-quoted-string-p' to detect triple quoted
>    strings only.
>
> I look forward to your comments.

Hi kobarity, 

I suppose the test suite still passes.  Did also enable
electric-pair-mode and play around and find acceptable behaviour?  Does
bug#49518 stay solved?

If so, this is fine with me, and let's let Stefan chime in.

João






This bug report was last modified 2 years and 71 days ago.

Previous Next


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