From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#8141: 23.2.94; python-fill-paragraph Date: Tue, 01 Mar 2011 11:45:56 +0100 Message-ID: <4D6CCE64.8060203@easy-emacs.de> References: <4D6C0BF0.3050001@easy-emacs.de> <86fwr7a6m3.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1298977636 15868 80.91.229.12 (1 Mar 2011 11:07:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 11:07:16 +0000 (UTC) Cc: 8141@debbugs.gnu.org To: Christoph Scholtes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 12:07:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuNQ7-0001f1-L4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 12:07:11 +0100 Original-Received: from localhost ([127.0.0.1]:60437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuNQ6-0000Cr-UF for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 06:07:11 -0500 Original-Received: from [140.186.70.92] (port=55179 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuNPq-000082-F6 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 06:06:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuNPk-0008Ou-DV for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 06:06:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuNPk-0008Oq-C0 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2011 06:06:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PuN1m-0004Hx-Hs; Tue, 01 Mar 2011 05:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2011 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8141-submit@debbugs.gnu.org id=B8141.129897611116469 (code B ref 8141); Tue, 01 Mar 2011 10:42:02 +0000 Original-Received: (at 8141) by debbugs.gnu.org; 1 Mar 2011 10:41:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuN1b-0004Ha-Hj for submit@debbugs.gnu.org; Tue, 01 Mar 2011 05:41:51 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.186]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuN1Z-0004HN-Kl for 8141@debbugs.gnu.org; Tue, 01 Mar 2011 05:41:50 -0500 Original-Received: from [192.168.178.29] (brln-4db9ef68.pool.mediaWays.net [77.185.239.104]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M21V9-1QANfp3935-00taLI; Tue, 01 Mar 2011 11:41:43 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: <86fwr7a6m3.fsf@gmail.com> X-Provags-ID: V02:K0:LeX0wOxTyWZ2Gt9Ch7T79UYa98AvOxohp9h+Bjv5GOR pYVUVZ4y2u7MDzJtM/OY3fit+WK1kEgJTXQ1ARCeg9HQa3HMP/ 3cKz+4yx2EV3FUZ6/ksTJOX19jbM6W8a0vzpCASxsZRSe4PaEM l/RXB47sF4zY2spUAwxEq/PB+PtDZqmsyUZVbXY/5CUm34gXrM RiPjA/JF8iJ88xhfFx6UEZ8P5/HpJxJmf6l+8EK7O0= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Mar 2011 05:42:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44472 Archived-At: Am 01.03.2011 03:59, schrieb Christoph Scholtes: > Andreas Röhler writes: > >> attached a test file, revealing a bug in python-fill-paragraph already >> reported at lp, which pertains to python.el and python-mode.el >> likewise. >> >> Patch attached. > > Thanks for the bug report and the patch. > > However, I would like to understand first what the problem is/was. The > initial bug report on Launchpad included a file (kn.py), whose > doc-string caused problems, right? > > I can open this file and use python-fill-paragraph and fill-paragraph > with no problem in emacs 23.2 and the latest trunk. There is no error > and the doc string looks formatted correctly, also. > > What is the problem with the code in python.el/python-mode.el? > > Regards, > Christoph > Hi, with M-q resp. fill-paragraph it's fine here too. python-fill-paragraph displays the bug. Did you try the test delivered? AFAIS bug basically might reside in fill-paragraph, where ;; 2. Try fill-paragraph-function. (and (not (eq fill-paragraph-function t)) (or fill-paragraph-function (and (minibufferp (current-buffer)) (= 1 (point-min)))) (let ((function (or fill-paragraph-function should be written like (cond (fill-paragraph-function DTRT) (t everything else Unless I'm wrong... Thanks Andreas