From: John Palmieri <jhpalmieri64@gmail.com>
To: 21778@debbugs.gnu.org
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 [thread overview]
Message-ID: <CAHNEuZzWQ6HfN8eTwPZf1wczNfM=93DsUc0QWpzUAjMZE7a9xw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2042 bytes --]
next reply other threads:[~2015-10-28 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-28 19:16 John Palmieri [this message]
2017-08-16 9:09 ` bug#21778: 24.5; python mode: fill-paragraph with raw docstring ignores python-fill-docstring-style Charles A. Roelli
[not found] ` <CAHNEuZzTfFHPcuyt8fnzUKmw8f9c=AQiGday7pBP81DmJiwwpw@mail.gmail.com>
2017-08-16 15:05 ` Charles A. Roelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHNEuZzWQ6HfN8eTwPZf1wczNfM=93DsUc0QWpzUAjMZE7a9xw@mail.gmail.com' \
--to=jhpalmieri64@gmail.com \
--cc=21778@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.