From: Topher Brown <topher200@gmail.com>
To: 20860@debbugs.gnu.org
Subject: bug#20860: 24.4; python.el's fill-paragraph incorrectly handles doc-strings with long first lines
Date: Sat, 20 Jun 2015 12:51:50 -0400 [thread overview]
Message-ID: <CAE3SAJWNur4W-OvjbgiLEock=YX1LoezNUBhoJufcHfC_WpEKg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4785 bytes --]
Confirmed with `emacs -Q`.
The default `fill-column` is 70 characters. So, running `fill-paragraph`
on a doc-string line that is over 70 characters should wrap to leave
under 70 characters. All the lines after the first one work
correctly. However, the first line gets wrapped to 74 characters
instead.
An example function can be found here:
https://gist.github.com/topher200/9b04870d74e26682adde
In the example, running `fill-paragraph` should put my `SHOULDBEWRAPPED`
string on a new line. It incorrectly stays on the first line; 74
characters remain on that line, way over our `fill-column` of 70.
In GNU Emacs 24.4.1 (i686-pc-mingw32)
of 2014-10-24 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.3.9600
Configured using:
`configure --prefix=/c/usr'
Important settings:
value of $LANG: ENU
locale-coding-system: cp1252
Major mode: Python
Minor modes in effect:
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
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
SPC a s d SPC a s d SPC a s d SPC a s d SPC a s d SPC
a s d SPC a s d SPC a s d SPC a s d SPC a s d SPC a
s d SPC a s d SPC a s d SPC a s d SPC a s d SPC a s
d SPC a s d SPC a s d SPC a s d SPC a s d SPC a s d
SPC a s d SPC a s d SPC a s d SPC a s d SPC a s d SPC
a s d SPC a s d SPC a s d SPC a s d SPC a s d SPC a
s d SPC a s d <down> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> M-q <up> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <left>
<right> f M-q <down> <up> <right> <left> <left> M-q
<down> M-q <down> <down> M-q <up> <up> <up> <down>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <backspace> SPC M-q M-x
b u g <tab> <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> r e p o <tab> <tab> <tab> <backspace>
<backspace> <backspace> <backspace> r e p o t <backspace>
r t - e m <tab> <return>
Recent messages:
Hide or show this option.
M-TAB: complete field; RET: enter value
Change the state of this item.
M-TAB: complete field; RET: enter value
Auto-saving...done
Auto-saving...done
Auto-saving...done
Making completion list...
delete-backward-char: Text is read-only
Making completion list...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-fns cus-edit wid-edit help-mode cus-start
cus-load python easymenu json comint ring cl-loaddefs cl-lib ansi-color
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
w32notify w32 multi-tty emacs)
Memory information:
((conses 8 102616 6180)
(symbols 32 19900 0)
(miscs 32 135 405)
(strings 16 17338 3956)
(string-bytes 1 467539)
(vectors 8 11791)
(vector-slots 4 403635 5512)
(floats 8 67 341)
(intervals 28 471 42)
(buffers 508 15))
[-- Attachment #2: Type: text/html, Size: 7109 bytes --]
next reply other threads:[~2015-06-20 16:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-20 16:51 Topher Brown [this message]
2015-09-08 10:37 ` bug#20860: 24.4; python.el's fill-paragraph incorrectly handles doc-strings with long first lines Tobias Getzner
2021-04-20 0:12 ` bug#20860: " Deneb Meketa
2021-05-26 23:22 ` bug#20860: 24.4; " Lars Ingebrigtsen
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='CAE3SAJWNur4W-OvjbgiLEock=YX1LoezNUBhoJufcHfC_WpEKg@mail.gmail.com' \
--to=topher200@gmail.com \
--cc=20860@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.