From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#36056: 26.2; Python Documentation String Indent In Auto Fill Mode Date: Sat, 22 Jun 2019 19:31:48 -0400 Message-ID: <87sgs1tcwr.fsf@gmail.com> References: <7310965c-3f16-a013-ed9d-736ad7b8b8be@lycos.com> <87h897scxi.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182091"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: ricercar , 36056@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 23 01:32:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hepUP-000l6l-QG for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jun 2019 01:32:09 +0200 Original-Received: from localhost ([::1]:42704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hepUO-0004Vu-Ro for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jun 2019 19:32:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41109) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hepUJ-0004VW-K1 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 19:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hepUI-0000Og-DV for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 19:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39151) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hepUI-0000Oc-9o for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 19:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hepUI-0002Rb-56 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2019 19:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2019 23:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36056 X-GNU-PR-Package: emacs Original-Received: via spool by 36056-submit@debbugs.gnu.org id=B36056.15612463219393 (code B ref 36056); Sat, 22 Jun 2019 23:32:02 +0000 Original-Received: (at 36056) by debbugs.gnu.org; 22 Jun 2019 23:32:01 +0000 Original-Received: from localhost ([127.0.0.1]:52695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hepUH-0002RM-8R for submit@debbugs.gnu.org; Sat, 22 Jun 2019 19:32:01 -0400 Original-Received: from mail-io1-f42.google.com ([209.85.166.42]:37337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hepUB-0002Qq-9H; Sat, 22 Jun 2019 19:31:55 -0400 Original-Received: by mail-io1-f42.google.com with SMTP id e5so106960iok.4; Sat, 22 Jun 2019 16:31:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hPBe0cAffM4oCY9tNOZ73H0mI17zqqVx2cn3z1wxGDM=; b=Pmnve1EryQYnW/7gXO2hZ3ZrytK9pnN/UZuke9GtrW8p5DsQqVAxxGXzut70p71kjd ixUlG2eo17bS8mHFI2Dx7qR1297EWF28jjRNbVgEbE3/ekd1oqCoBp2kPAUdM8OaxScZ HLS9ETnccxLPlTPv7DW9m8bxEx/kPW/TA8mvJa5EIp9DoZ5BnmZuPwOPhC//6yb73+d6 aNVALiHQivBVvDiuwHJqEmqeU8N01U95ddlxq2OVFc7Mh88Ivh4JzllMHgMur1lddszN 84GJFn44vzD3B15MHKDazfhObllS9Uo9TwKTu+1aEp2IFPyX4W0G49bzP0FpcDL+L7bA i5qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=hPBe0cAffM4oCY9tNOZ73H0mI17zqqVx2cn3z1wxGDM=; b=bf3LmyRJiyXyNbYR896RDmCzal65wNTzqYxoNrYmx6/Ff/KqtRrRwE22pGp5jS4tUv SrajkBtb1Wf8Cmi/cFia3akTTwkVvDRk9UJHirOmUOGnGhqPn+CTYByiVD0umkWE5uEH nmKvOvzcnl8iWywPYDPezMbVmISM1crDgPnC8Nbl9EikSaqPKUBO1Tf7I6bcfW4L59OA W/d0x1Gw3W8ckTbzQDRl0WEFvoD50R+Yc/b2JYr7iaXNCTT4AmpQlLaXm5jN7UlBmrGt NNVUvcMChcDDac9Dqch227xHLGB9Uj/7TUD4c5T0tps5/4tZhoQPB9yRUvSa4nqHPov3 GZDg== X-Gm-Message-State: APjAAAUEH1JU2rJwjZhaBc/JKjx6iwZbtPO8PYCaFBs6CW+LDp1ZW/pW vDCiXPSOWm4MLbgC0sCqElZ6qblJ X-Google-Smtp-Source: APXvYqzwshC8lz5teru0AzPf3FsgUAT24hQbD1hQjguUV8FFay6n4JAmvXSVojkHoGl+EjwyqeV1Pw== X-Received: by 2002:a02:b050:: with SMTP id q16mr16173807jah.120.1561246309713; Sat, 22 Jun 2019 16:31:49 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id a15sm5382522ioc.27.2019.06.22.16.31.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jun 2019 16:31:49 -0700 (PDT) In-Reply-To: <87h897scxi.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 03 Jun 2019 01:57:45 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161074 Archived-At: tags 36056 fixed close 36056 27.1 quit "Basil L. Contovounesios" writes: > I'm not familiar with this part of Emacs or python.el, and I don't know > what else this may break, but from stepping through do-auto-fill I > discovered the following setting gives the desired auto-fill behaviour: > > (add-hook 'python-mode-hook > (lambda () > (setq-local fill-indent-according-to-mode t))) Seems like fill-indent-according-to-mode isn't consulted for anything else, so I've pushed a fix to master which sets this locally in python-mode. The comment on fill-indent-according-to-mode says it can break cc-mode filling "tricks", but hopefully python-mode won't have any similar problems. 0f01a58c39 2019-06-22T19:25:44-04:00 "Fix python docstring auto-fill (Bug#36056)" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0f01a58c390faf30c33b369fc81b2a14ec5b7f2e