From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14381: 24.3; smie-auto-fill infinite loop Date: Mon, 13 May 2013 11:43:38 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368459883 13714 80.91.229.3 (13 May 2013 15:44:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 15:44:43 +0000 (UTC) Cc: 14381@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 13 17:44:41 2013 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 1UbuvZ-0003sL-CI for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 17:44:41 +0200 Original-Received: from localhost ([::1]:50111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbuvZ-0004iK-0c for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 11:44:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbuvV-0004i2-2p for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 11:44:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbuvT-0007xl-UN for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 11:44:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbuvT-0007xd-Qk for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 11:44:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ubuvu-0006mq-CQ for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2013 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14381 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14381-submit@debbugs.gnu.org id=B14381.136845984925936 (code B ref 14381); Mon, 13 May 2013 15:45:02 +0000 Original-Received: (at 14381) by debbugs.gnu.org; 13 May 2013 15:44:09 +0000 Original-Received: from localhost ([127.0.0.1]:38790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubuv3-0006kH-3v for submit@debbugs.gnu.org; Mon, 13 May 2013 11:44:09 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59112) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubuv0-0006k4-MD for 14381@debbugs.gnu.org; Mon, 13 May 2013 11:44:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rwb8/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFG4rwb8/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="11912108" Original-Received: from 184-175-6-252.dsl.teksavvy.com (HELO pastel.home) ([184.175.6.252]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 May 2013 11:43:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5A1DF67B0D; Mon, 13 May 2013 11:43:38 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Sun, 12 May 2013 11:29:01 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: , 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:74204 Archived-At: >> Should enter an infinite loop. > I would like to simplify and fix octave's fill-paragraph and auto-fill > feature. Very good idea (when I moved octave to SMIE, I wanted to do that as well, but ended up leaving it for later). > Could you help fix or direct me how to fix this bug and bug#14303? I think to fix/simplify them well, you'll need to touch some of the generic code. For bug#14303, the first ting to do is to read the code of comment-search-backward. If I were you, I'd start with octave-auto-fill, trying to replace it with something that hooks elsewhere, such as in fill-nobreak-predicate and in comment-line-break-function. For octave-fill-paragraph, I'm not sure what should be done there, but the functionality looks like it could be useful in many programming modes. So maybe it should be moved to prog-mode. Stefan