From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk Ullrich Newsgroups: gmane.emacs.bugs Subject: bug#13942: 24.3.50; `smie-auto-fill' loops Date: Wed, 13 Mar 2013 05:29:38 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=20cf301b6431a8aca604d7c6da51 X-Trace: ger.gmane.org 1363149068 6935 80.91.229.3 (13 Mar 2013 04:31:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 04:31:08 +0000 (UTC) To: 13942@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 13 05:31:33 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 1UFdLg-0004f3-9F for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 05:31:32 +0100 Original-Received: from localhost ([::1]:54022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFdLJ-0008IG-Bj for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 00:31:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFdLE-0008I6-1C for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFdL9-0001AA-4K for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:31:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFdL9-0001A6-1j for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:30:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UFdMA-000171-CG for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dirk Ullrich Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Mar 2013 04:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13942 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.13631490644200 (code B ref -1); Wed, 13 Mar 2013 04:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Mar 2013 04:31:04 +0000 Original-Received: from localhost ([127.0.0.1]:49938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFdLD-00015g-KA for submit@debbugs.gnu.org; Wed, 13 Mar 2013 00:31:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40115) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFdLA-00015C-HU for submit@debbugs.gnu.org; Wed, 13 Mar 2013 00:31:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFdK0-0000T5-Rb for submit@debbugs.gnu.org; Wed, 13 Mar 2013 00:29:51 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:35361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFdK0-0000T1-OA for submit@debbugs.gnu.org; Wed, 13 Mar 2013 00:29:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFdJw-0008AB-8x for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:29:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFdJr-0000Bu-Uh for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:29:44 -0400 Original-Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:39011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFdJr-0000Bq-OS for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 00:29:39 -0400 Original-Received: by mail-ie0-f170.google.com with SMTP id c11so891356ieb.1 for ; Tue, 12 Mar 2013 21:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=11Tsdwhrdhnn0lf4RzzKZRHd0+hQxQUpKQzUyBJkUzM=; b=lNjMbS7gALfk/tQMgcoivCxbbavkeXnAhNvXNyoGWKh/RJc0Vb7S8kb/XpznDfgRqq RqinGaQhIZ1QRidNl+u5QP882msKuz/q6UivhwccfVRpXOkFvE2jpGIHRFVXCLxxdhT1 IY3uETcONJaPTSpSVCcc81I5EmfqUjqHO642GQCsBrKgjYAlWz4Rk4EaQebKxofHFLsy 0vpHUjvNSLkqPOETpmU6smnUe3Mv+psK4ACa435kIFno4+G2+wr67kGyrY0wX3TSO/hM zBwCPm8sF7blpw/OETWLFMnaBGVj6cz3XC9U/kauHY6QcOFAw1ZnoPiHVDc43B+0wfck HlHg== X-Received: by 10.42.126.133 with SMTP id e5mr14825389ics.17.1363148978804; Tue, 12 Mar 2013 21:29:38 -0700 (PDT) Original-Received: by 10.64.136.19 with HTTP; Tue, 12 Mar 2013 21:29:38 -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: GNU/Linux 2.6.x 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:72410 Archived-At: --20cf301b6431a8aca604d7c6da51 Content-Type: text/plain; charset=ISO-8859-1 Prerequisits: 1. An Emacs with recent-enough `lisp/emacs-lisp/smie.el' module such that `smie-auto-fill' is provided. 2. A ProofGeneral (PG) with its Coq mode based on `smie' (and `load-path' properly set). 3. A Coq file with a comment longer than `fill-column'. How to reproduce the bug: 1. Initialize PG by loading `pg-init.el'. 2. Enable auto-filling for PG's Coq mode. 3. Load the Coq test file, and trigger auto-filling by placing the cursor just after a to-long comment line and hitting ENTER. -> Emacs loops. Remarks: 1. A debugger session shows that the looping is caused by `smie-auto-fill'. 2. A simple Coq test file is appended to this bug report. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2013-03-13 on koan Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.0 (wheezy) Configured using: `configure --prefix=/usr/local/packages/emacs-devel --sysconfdir=/etc --mandir=/usr/local/packages/emacs-devel/share/man --localstatedir=/var/local/packages/emacs-devel --libexecdir=/usr/local/packages/emacs-devel/lib --enable-locallisppath=/etc/emacs --without-sound --with-gameuser=packages --program-suffix=-devel --with-x-toolkit=gtk3' Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Coq Minor modes in effect: holes-mode: t tooltip-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 line-number-mode: t auto-fill-function: smie-auto-fill transient-mark-mode: t Recent input: C-x C-f P . M-x a u - f SPC C-x C-s M-q C-x u C-x C-s C-x C-s C-x C-s M-x e m a r e p o r t Recent messages: Wrote /common/depot/unfinished/2do/emacs-devel/smie-auto-fill/PG_Autofill.v Quit Mark set Saving file /common/depot/unfinished/2do/emacs-devel/smie-auto-fill/PG_Autofill.v... Wrote /common/depot/unfinished/2do/emacs-devel/smie-auto-fill/PG_Autofill.v Quit End of buffer Saving file /common/depot/unfinished/2do/emacs-devel/smie-auto-fill/PG_Autofill.v... Wrote /common/depot/unfinished/2do/emacs-devel/smie-auto-fill/PG_Autofill.v 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-mode vc-git which-func imenu coq coq-smie-lexer smie coq-indent coq-par-compile coq-seq-compile coq-compile-common coq-abbrev coq-local-vars local-vars-list coq-syntax coq-db holes proof proof-shell pg-user completion pg-goals pg-response proof-toolbar pg-assoc proof-tree proof-script proof-menu cus-edit cus-start cus-load wid-edit span proof-auxmodes proof-utils scomint proof-syntax advice help-fns bufhist easy-mmode ring proof-splash derived pg-custom proof-config proof-faces proof-useropts pg-pamacs proof-compat easymenu proof-site proof-autoloads cl-macs gv cl nadvice cl-lib pg-vars time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-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 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --20cf301b6431a8aca604d7c6da51 Content-Type: application/octet-stream; name="PG_Autofill.v" Content-Disposition: attachment; filename="PG_Autofill.v" Content-Transfer-Encoding: base64 X-Attachment-Id: f_he7znpaz0 KCogV2Ugc3RhcnQgdG8gbG9hZCBzb21lIG1vZHVsZXMgZm9yIENvcSdzIHN0YW5kYXJkIGxpYnJh cnkgd2hvc2Ugc3R1ZmYgd2UgdXNlIGhlcmUuICop --20cf301b6431a8aca604d7c6da51--