From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#62142: 30.0.50; python-fill-paragraph problems on filling strings Date: Sun, 12 Mar 2023 18:05:48 +0000 Message-ID: <87v8j5rgjn.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6093"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62142@debbugs.gnu.org, Stefan Monnier To: kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 12 19:04:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbQ3Q-0001Pe-7P for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Mar 2023 19:04:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbQ3A-0000f7-3m; Sun, 12 Mar 2023 14:04:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbQ38-0000ev-OM for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2023 14:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbQ38-0004dV-Ec for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2023 14:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbQ37-0005Ld-UP for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2023 14:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Mar 2023 18:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62142 X-GNU-PR-Package: emacs Original-Received: via spool by 62142-submit@debbugs.gnu.org id=B62142.167864423720548 (code B ref 62142); Sun, 12 Mar 2023 18:04:01 +0000 Original-Received: (at 62142) by debbugs.gnu.org; 12 Mar 2023 18:03:57 +0000 Original-Received: from localhost ([127.0.0.1]:33070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbQ33-0005LL-IA for submit@debbugs.gnu.org; Sun, 12 Mar 2023 14:03:57 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:46732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbQ31-0005L9-RZ for 62142@debbugs.gnu.org; Sun, 12 Mar 2023 14:03:56 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id r29so1299029wra.13 for <62142@debbugs.gnu.org>; Sun, 12 Mar 2023 11:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678644229; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mtdA0JEa8I0yOlWK/o3Ogij5gBH4lxup+viMBpIEGko=; b=Nge54g0gulklVnbsqzbgeygLZcf4OK9ugZjaeht4VICjJCG3EW3p9OF0KOYi1JnCil sbfT2HgQ+k6sDwzLAhZJWosMzFXGLJ+q5hJMoz3Rwj4VIff9F0sZUABMVv/zmuq9hkrt 6yiDqolfXC2eLa3IF8AyCycSHpJ4W0z6vvYkwOGXoDHNFc3PxqlUv4Mwa1XYW7kuakqS EV0COtC1Bh2pld6p3toxXEyW5+ThCsW1y2xnNjikE1/lyCVQXwXe7sLJz6EABYDu22+X Vs0b395T2JTTDAZTpdlRIkOVvb2T43/GaZcILSjY2AqFwFYwiVaIXkXwAxVa9zPN6jDM Y7MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678644229; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=mtdA0JEa8I0yOlWK/o3Ogij5gBH4lxup+viMBpIEGko=; b=a/OIANTrHqfdugpGl0iND7zlGZFc1C/npOgNkDx1DFimLeKxq8Rs1SnK0x//eey++e SNNxxc3INErxEebTT4Iv6yhdvtSDzf9j5+TbWkanqp9vXbVyOAhktPNVWhRjv/+RjHZE vqilI7x9LaTiVz9s7CCXARHYi6WtOQJ6VBl1LPUy0Tdg1XFkmsDwItc+8y4yOvu/KgLV ksoNeZDJdvDCqQM8LPvWvfzaoEB0MBjFqzNLwRHmX/E+6j/6k+XIJvWLXgS0GWwwAeiH u53VJuE6JhplIMsNLq3gF8ZrRwfxixt7kji+7+4WXxTdA/5hb2mInHnfxWu/wEB6K+Oz RtQg== X-Gm-Message-State: AO0yUKV0wCnSUVBzJnSHMCDrkl5V5kqqiwAkpp9BpGE/raI4Gz/3RQXf RmA3HLcbnu2R1isEEPsvuHk= X-Google-Smtp-Source: AK7set8ELRt/sZjo5ovVeI3qSPnvHbzkC5eSFkuxiiL7HbX03H9n2y50l+Z4YfIcf2jYUoqqLrI+Dw== X-Received: by 2002:a5d:6a88:0:b0:2c7:832:8cce with SMTP id s8-20020a5d6a88000000b002c708328ccemr21016573wru.49.1678644229548; Sun, 12 Mar 2023 11:03:49 -0700 (PDT) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id p10-20020adfe60a000000b002cda9aa1dc1sm5728240wrm.111.2023.03.12.11.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 11:03:49 -0700 (PDT) In-Reply-To: (kobarity@gmail.com's message of "Sun, 12 Mar 2023 17:39:37 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257873 Archived-At: kobarity 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,=20 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=C3=A3o