From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Palmieri Newsgroups: gmane.emacs.bugs Subject: bug#21778: 24.5; python mode: fill-paragraph with raw docstring ignores python-fill-docstring-style Date: Wed, 28 Oct 2015 12:16:20 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fe84e88f40805232f076f X-Trace: ger.gmane.org 1446061459 11957 80.91.229.3 (28 Oct 2015 19:44:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 19:44:19 +0000 (UTC) To: 21778@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 20:44:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZrWdl-0002L4-0D for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 20:44:09 +0100 Original-Received: from localhost ([::1]:40455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWdk-00061C-2k for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 15:44:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWdf-000614-NY for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:44:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWde-0005ze-CZ for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:44:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWde-0005za-9Q for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrWde-0004EC-3e for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Palmieri Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2015 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144606141816206 (code B ref -1); Wed, 28 Oct 2015 19:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2015 19:43:38 +0000 Original-Received: from localhost ([127.0.0.1]:42890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrWdF-0004DJ-IX for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:43:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43291) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrWCv-0003Ob-HY for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:16:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWCu-0006bh-7W for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:16:25 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWCu-0006bd-4M for submit@debbugs.gnu.org; Wed, 28 Oct 2015 15:16:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWCs-00008B-RB for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:16:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrWCr-0006aX-Bo for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:16:22 -0400 Original-Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:33737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrWCr-0006aN-7f for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:16:21 -0400 Original-Received: by iodd200 with SMTP id d200so21720365iod.0 for ; Wed, 28 Oct 2015 12:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CWzo3o9YN2Ho9qW45+yCdxj08eA71oooedZer0STGcA=; b=zf9XqySq8pO0CZyDiapk+G+L4TAfoYOhp+sqcM0NNwQt3x5njEK2xqlj8ONW8QTmh/ Zvi/g/OeS84hS35DDXPZ+/MIScyzIOKdgFEEnCJaqDXmiDT3qDCp79CnnQf2RrYb7pAD oAXNIkYvimKTK+okAQ1O2EwnwMBO7fp8UwrNPzKNWEN/AZ7uWd/lVybvJpn+aasxL4YW v/KSYl83s7etTaIdfeyhD7avj/ksiB3TnAzek+Vc3tCk1rd17u0p5kP2kfNy+v7dRO38 fuQB57L+68SzTYBur5BZGIvz7F3swEKBDOTawqB8j0wPmSTJsBlBTWvUIbWD5lukItAh h7iw== X-Received: by 10.107.134.231 with SMTP id q100mr14791998ioi.85.1446059780394; Wed, 28 Oct 2015 12:16:20 -0700 (PDT) Original-Received: by 10.107.9.134 with HTTP; Wed, 28 Oct 2015 12:16:20 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 28 Oct 2015 15:43:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108123 Archived-At: --001a113fe84e88f40805232f076f Content-Type: text/plain; charset=UTF-8 To recreate the bug, in Python mode, type def f(): r""" This is the docstring for my function. It's a raw docstring because I want to type \t here, and maybe \n, for example in LaTeX code like \tau or \nu. More docstring here. """ pass Now with the cursor in the first sentence of the docstring, running fill-paragraph ignores the setting of python-fill-docstring-style, I think because Emacs doesn't detect that r""" is the start of the docstring. Similarly, running fill-paragraph in the last sentence behaves badly. Also similarly, I think that it should be valid to begin a docstring with b""" or u""" (and possibly some combination of b, r, u, before """, although I'm not sure), and these also don't behave correctly. In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1348 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: value of $LANG: C locale-coding-system: utf-8-unix Major mode: Outline Minor modes in effect: goto-address-mode: t TeX-PDF-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t view-mode: t --001a113fe84e88f40805232f076f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
To recreate the bug, in Python mode, type

def = f():
=C2=A0=C2=A0=C2=A0 r"""
=C2=A0=C2=A0=C2=A0 This i= s the docstring for my function.

=C2=A0=C2=A0=C2=A0 It's a raw d= ocstring because I want to type \t here, and maybe \n,
=C2=A0=C2=A0=C2= =A0 for example in LaTeX code like \tau or \nu.

=C2=A0=C2=A0=C2=A0 M= ore docstring here.
=C2=A0=C2=A0=C2=A0 """
=C2=A0=C2= =A0=C2=A0 pass

Now with the cursor in the first sentence of the docs= tring, running fill-paragraph ignores the setting of python-fill-docstring-= style, I think because Emacs doesn't detect that r""" is= the start of the=C2=A0 docstring. Similarly, running fill-paragraph in the= last sentence behaves badly. Also similarly, I think that it should be val= id to begin a docstring with b""" or u""" (an= d possibly some combination of b, r, u, before """, although= I'm not sure), and these also don't behave correctly.


<= br>In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)=
=C2=A0of 2015-04-10 on buil= der10-9.porkrind.org
Windowing system distributor `Apple', versi= on 10.3.1348
Configured using:
=C2=A0`configure --with-ns '--enab= le-locallisppath=3D/Library/Application
=C2=A0Support/Emacs/${version}/s= ite-lisp:/Library/Application
=C2=A0Support/Emacs/site-lisp''
Important settings:
=C2=A0 value of $LANG: C
=C2=A0 locale-codin= g-system: utf-8-unix

Major mode: Outline

Minor modes in effec= t:
=C2=A0 goto-address-mode: t
=C2=A0 TeX-PDF-mode: t
=C2=A0 toolt= ip-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t<= br>=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-s= hadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: = t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 lin= e-number-mode: t
=C2=A0 auto-fill-function: do-auto-fill
=C2=A0 trans= ient-mark-mode: t
=C2=A0 view-mode: t

--001a113fe84e88f40805232f076f--