GNU bug report logs - #19846
25.0.50; Problem with auto-fill-mode and C mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: martin rudalics <rudalics@HIDDEN>; dated Thu, 12 Feb 2015 18:39:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 19846 <at> debbugs.gnu.org:


Received: (at 19846) by debbugs.gnu.org; 14 Feb 2015 18:22:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 14 13:22:18 2015
Received: from localhost ([127.0.0.1]:44133 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YMhM9-0005r0-Oe
	for submit <at> debbugs.gnu.org; Sat, 14 Feb 2015 13:22:18 -0500
Received: from mout.gmx.net ([212.227.15.18]:50000)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rudalics@HIDDEN>) id 1YMhM7-0005qm-CF
 for 19846 <at> debbugs.gnu.org; Sat, 14 Feb 2015 13:22:16 -0500
Received: from [188.22.43.91] ([188.22.43.91]) by mail.gmx.com (mrgmx002) with
 ESMTPSA (Nemesis) id 0Lp3x6-1Xhqp221NE-00exA8;
 Sat, 14 Feb 2015 19:22:08 +0100
Message-ID: <54DF9244.7030700@HIDDEN>
Date: Sat, 14 Feb 2015 19:21:56 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Alan Mackenzie <acm@HIDDEN>, 19846 <at> debbugs.gnu.org
Subject: Re: bug#19846: 25.0.50; Problem with auto-fill-mode and C mode
References: <20150214114837.96359.qmail@HIDDEN>
In-Reply-To: <20150214114837.96359.qmail@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:FuAfHYE+gEsavFzE5J2Vyg5jXq9/TphXdg3/etFrtgrYpaJRMVW
 JZP9ugbx2/GnXWO4lC+nqernPKaDArNEPwCQACG01XiKM27b1PogVdLFa+uXK5A2hNBQdW+
 AqAtEDU4Ezm2Sw/ixyk+eURcvA6Q1uobNXD5lkAiNAkzLqcVxxr1Y0yEsCpiVDfUXEihzpw
 6Umhpz/wJwkUHiKcJm6UQ==
X-UI-Out-Filterresults: notjunk:1;
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19846
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

 > I don't see the difference between 24.3 and current master.  On both of
 > them, the behaviour is the same.

You're right.

 > The spaces get inserted normally, up
 > to column 72, then the display freezes.  Some long while later (several
 > minutes), the display catches up again.  This is with point in column
 > ~500.  (Both of my Emacs builds were with optimisation and without
 > debugging info.  Your build was without and with.)

Here the impact is felt immediately, probably because of the way I build
Emacs.  Inserting 72 spaces doesn't make much sense anyway, so this is
not what's bothering me.  But here inserting _any_ character with auto
filling turned on is a pain.  I'm usually typing 2 to 3 characters ahead
of what I see on screen.

I'll now revise the way I build.  If this cures the problem, let's not
bother too much about the column 72 problem.

 > Incidentally, that doc string
 >
 >    If this variable is t, Emacs asks the window manager to give the frame
 >    intermediately its normal size whenever changing from a full-height or
 >    full-width state to the fully maximized one and vice versa.
 >
 > doesn't read well.  The "intermediately" in that position isn't English!
 > Perhaps something like the following would be better:
 >
 > If this variable is t, Emacs first asks the window manager to give the
 > frame its normal size, and only then the final state, whenever changing
 > from a full-height or full-width state to the fully maximized one and vice
 > versa.

If nothing else I at least found a way to get my doc-strings fixed ;-)

Thanks, martin




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#19846; Package emacs,cc-mode. Full text available.

Message received at 19846 <at> debbugs.gnu.org:


Received: (at 19846) by debbugs.gnu.org; 14 Feb 2015 16:31:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 14 11:31:41 2015
Received: from localhost ([127.0.0.1]:43977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YMfd7-0003Hn-3m
	for submit <at> debbugs.gnu.org; Sat, 14 Feb 2015 11:31:41 -0500
Received: from colin.muc.de ([193.149.48.1]:20602 helo=mail.muc.de)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <acm@HIDDEN>) id 1YMfd4-0003Hd-Lz
 for 19846 <at> debbugs.gnu.org; Sat, 14 Feb 2015 11:31:39 -0500
Received: (qmail 41255 invoked by uid 3782); 14 Feb 2015 16:31:37 -0000
Received: from acm.muc.de (pD9518CA9.dip0.t-ipconnect.de [217.81.140.169]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sat, 14 Feb 2015 17:31:36 +0100
Received: (qmail 5882 invoked by uid 1000); 14 Feb 2015 16:31:09 -0000
Date: Sat, 14 Feb 2015 16:31:09 +0000
To: 19846 <at> debbugs.gnu.org
Subject: Re: bug#19846: 25.0.50; Problem with auto-fill-mode and C mode
Message-ID: <20150214163109.GA5459@HIDDEN>
References: <54DCF303.6030202@HIDDEN> <20150214114837.96359.qmail@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20150214114837.96359.qmail@HIDDEN>
User-Agent: Mutt/1.5.22 (2013-10-16)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19846
Cc: martin rudalics <rudalics@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi, Martin.

On Sat, Feb 14, 2015 at 11:48:37AM -0000, Alan Mackenzie wrote:

> In article <mailman.19768.1423766347.1147.bug-gnu-emacs@HIDDEN> you wrote:
> > With current trunk/master and emacs -Q evaluate the following form

> > (add-hook
> >  'c-mode-hook
> >  '(lambda ()
> >     (turn-on-auto-fill)
> >     (set (make-local-variable 'fill-column) 72)))

> > and visit ~/src/xterm.c.  Go to the end of that file, move a few lines
> > backwards so that point is at the beginning of some non-empty line
> > within the doc-string of `x-frame-normalize-before-maximize' (which is
> > coded as a C comment).  Now keep the SPC key pressed.  Here Emacs
> > consumes the entire available CPU and eventually redisplay gets stuck
> > completely.  This used to work without problems in Emacs 24.3.

> A quick use of the profiler shows that forward-paragraph is taking ~87%
> of the total CPU.  There'll be a reason for this.  I'll have a look at it.

I think I've found it.  In foward-paragraph (paragraphs.el) L+37,
sp-parstat is bound as follows:

    (sp-parstart (concat "^[ \t]*\\(?:" parstart "\\|" parsep "\\)"))

, where parstart and parsep are, basically, paragraph-start and
paragraph-separate.

In CC Mode, paragraph-s{tart,eparate} both start with "[ \t]*".  So when
a regexp search for sp-parstart is done on a non-matching line beginning
with spaces, there will be a lot of alternative ways for the regexp
engine to attempt to match the spaces before finally giving up on the
line.

The optimal solution to the bug would involve intelligently combining
parstart and parsep into a safe regexp.  I don't know how to do this
(suggestions welcome).

The alternative seems to be to search for parstart and parsep separately
inside an `or' form.

Any thoughts?

> > martin

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#19846; Package emacs,cc-mode. Full text available.

Message received at 19846 <at> debbugs.gnu.org:


Received: (at 19846) by debbugs.gnu.org; 14 Feb 2015 11:48:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 14 06:48:41 2015
Received: from localhost ([127.0.0.1]:42746 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YMbDF-0003f1-7X
	for submit <at> debbugs.gnu.org; Sat, 14 Feb 2015 06:48:41 -0500
Received: from colin.muc.de ([193.149.48.1]:13190 helo=mail.muc.de)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <acm@HIDDEN>) id 1YMbDD-0003et-9e
 for 19846 <at> debbugs.gnu.org; Sat, 14 Feb 2015 06:48:40 -0500
Received: (qmail 96360 invoked by uid 3782); 14 Feb 2015 11:48:37 -0000
Date: 14 Feb 2015 11:48:37 -0000
Message-ID: <20150214114837.96359.qmail@HIDDEN>
From: Alan Mackenzie <acm@HIDDEN>
To: 19846 <at> debbugs.gnu.org
Subject: Re: bug#19846: 25.0.50; Problem with auto-fill-mode and C mode
Organization: muc.de e.V.
In-Reply-To: <mailman.19768.1423766347.1147.bug-gnu-emacs@HIDDEN>
X-Newsgroups: gnu.emacs.bug
User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/8.4-RELEASE
 (amd64))
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19846
Cc: martin rudalics <rudalics@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi, Martin.

In article <mailman.19768.1423766347.1147.bug-gnu-emacs@HIDDEN> you wrote:
> With current trunk/master and emacs -Q evaluate the following form

> (add-hook
>  'c-mode-hook
>  '(lambda ()
>     (turn-on-auto-fill)
>     (set (make-local-variable 'fill-column) 72)))

> and visit ~/src/xterm.c.  Go to the end of that file, move a few lines
> backwards so that point is at the beginning of some non-empty line
> within the doc-string of `x-frame-normalize-before-maximize' (which is
> coded as a C comment).  Now keep the SPC key pressed.  Here Emacs
> consumes the entire available CPU and eventually redisplay gets stuck
> completely.  This used to work without problems in Emacs 24.3.

I don't see the difference between 24.3 and current master.  On both of
them, the behaviour is the same.  The spaces get inserted normally, up
to column 72, then the display freezes.  Some long while later (several
minutes), the display catches up again.  This is with point in column
~500.  (Both of my Emacs builds were with optimisation and without
debugging info.  Your build was without and with.)

A quick use of the profiler shows that forward-paragraph is taking ~87%
of the total CPU.  There'll be a reason for this.  I'll have a look at it.

> In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
>  of 2015-02-12 on MACHNO
> Repository revision: da726ad0c6177a3442a374a135f40a24945d362c
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> Configured using:
>  `configure --prefix=/c/emacs-git/trunk --enable-checking=yes
>  --enable-check-lisp-object-type=yes 'CFLAGS=-O0 -g3''

Incidentally, that doc string

  If this variable is t, Emacs asks the window manager to give the frame
  intermediately its normal size whenever changing from a full-height or
  full-width state to the fully maximized one and vice versa.

doesn't read well.  The "intermediately" in that position isn't English!
Perhaps something like the following would be better:

If this variable is t, Emacs first asks the window manager to give the
frame its normal size, and only then the final state, whenever changing
from a full-height or full-width state to the fully maximized one and vice
versa.

> martin

-- 
Alan Mackenzie (Nuremberg, Germany).





Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#19846; Package emacs,cc-mode. Full text available.

Message received at 19846 <at> debbugs.gnu.org:


Received: (at 19846) by debbugs.gnu.org; 13 Feb 2015 18:27:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 13 13:27:48 2015
Received: from localhost ([127.0.0.1]:42143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YMKxw-0000Av-1t
	for submit <at> debbugs.gnu.org; Fri, 13 Feb 2015 13:27:48 -0500
Received: from mout.gmx.net ([212.227.17.21]:52687)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rudalics@HIDDEN>) id 1YMKxt-0000Ad-Kj
 for 19846 <at> debbugs.gnu.org; Fri, 13 Feb 2015 13:27:46 -0500
Received: from [88.117.117.6] ([88.117.117.6]) by mail.gmx.com (mrgmx102) with
 ESMTPSA (Nemesis) id 0Mcgur-1Y4whd1MC9-00HwQ4;
 Fri, 13 Feb 2015 19:27:36 +0100
Message-ID: <54DE420E.7060304@HIDDEN>
Date: Fri, 13 Feb 2015 19:27:26 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#19846: 25.0.50; Problem with auto-fill-mode and C mode
References: <54DCF303.6030202@HIDDEN>
 <jwv4mqp91vo.fsf-monnier+emacsbugs@HIDDEN>
In-Reply-To: <jwv4mqp91vo.fsf-monnier+emacsbugs@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:bLnsUs4ul29lQfIUd8Of79BtEzb15/eHdvMnJsNH4V6qXv6YiUi
 5ARO5NQVfQCzwAMmwdwntWO6mw2AGuzy2Ur0eYmjtxQar33w3aZy+tBKqCCUhWJoqOcRmoc
 lJr2U3NWPgLGQrtsqXTZXAjE49ZhJPWeAc46iPUV9Z15ZpVhWFxA+4X1njFiPvLGTm9iq05
 ZNWZQ8l2TZFiBVrOJmkmg==
X-UI-Out-Filterresults: notjunk:1;
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 19846
Cc: 19846 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

 >>   '(lambda ()
 >
 > Please don't quote your lambdas,

Indeed.  15 years old .emacs code, maybe 20.  I didn't even recall what
`auto-fill-mode' does.

Can you reproduce the issue?

martin




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#19846; Package emacs,cc-mode. Full text available.

Message received at 19846 <at> debbugs.gnu.org:


Received: (at 19846) by debbugs.gnu.org; 13 Feb 2015 17:07:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 13 12:07:45 2015
Received: from localhost ([127.0.0.1]:42079 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YMJiS-0006jA-Se
	for submit <at> debbugs.gnu.org; Fri, 13 Feb 2015 12:07:45 -0500
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:42625)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1YMJiQ-0006j2-Ua
 for 19846 <at> debbugs.gnu.org; Fri, 13 Feb 2015 12:07:43 -0500
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id 71D2A85F68;
 Fri, 13 Feb 2015 12:07:42 -0500 (EST)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 620621E5B8A;
 Fri, 13 Feb 2015 12:07:18 -0500 (EST)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id 441DAB4102; Fri, 13 Feb 2015 12:07:18 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#19846: 25.0.50; Problem with auto-fill-mode and C mode
Message-ID: <jwv4mqp91vo.fsf-monnier+emacsbugs@HIDDEN>
References: <54DCF303.6030202@HIDDEN>
Date: Fri, 13 Feb 2015 12:07:18 -0500
In-Reply-To: <54DCF303.6030202@HIDDEN> (martin rudalics's message of "Thu, 12
 Feb 2015 19:37:55 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 19846
Cc: 19846 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

>  '(lambda ()

Please don't quote your lambdas,


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN, bug-cc-mode@HIDDEN:
bug#19846; Package emacs,cc-mode. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Feb 2015 18:38:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 12 13:38:24 2015
Received: from localhost ([127.0.0.1]:40983 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YLyed-0007yu-VP
	for submit <at> debbugs.gnu.org; Thu, 12 Feb 2015 13:38:24 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42304)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rudalics@HIDDEN>) id 1YLyec-0007yi-Ex
 for submit <at> debbugs.gnu.org; Thu, 12 Feb 2015 13:38:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1YLyeW-00082N-AC
 for submit <at> debbugs.gnu.org; Thu, 12 Feb 2015 13:38:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39400)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1YLyeW-00082J-7V
 for submit <at> debbugs.gnu.org; Thu, 12 Feb 2015 13:38:16 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44015)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1YLyeS-00071z-Cb
 for bug-gnu-emacs@HIDDEN; Thu, 12 Feb 2015 13:38:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1YLyeP-000811-6o
 for bug-gnu-emacs@HIDDEN; Thu, 12 Feb 2015 13:38:12 -0500
Received: from mout.gmx.net ([212.227.15.18]:57997)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rudalics@HIDDEN>) id 1YLyeO-00080S-Tt
 for bug-gnu-emacs@HIDDEN; Thu, 12 Feb 2015 13:38:09 -0500
Received: from [188.22.40.98] ([188.22.40.98]) by mail.gmx.com (mrgmx003) with
 ESMTPSA (Nemesis) id 0MHX0m-1YIgrO1ogW-003Jyl for
 <bug-gnu-emacs@HIDDEN>; Thu, 12 Feb 2015 19:38:02 +0100
Message-ID: <54DCF303.6030202@HIDDEN>
Date: Thu, 12 Feb 2015 19:37:55 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Bug-Gnu-Emacs <bug-gnu-emacs@HIDDEN>
Subject: 25.0.50; Problem with auto-fill-mode and C mode
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:q2qI8oH8WQsOcsK8FBhec3V3KLGI/epPLFZ81HTb8G5Cniy2N1S
 JcevMe6SagcWGODY7O6kx7DEbPc83UUwsW8XUgkt1IUFSYPQnrUiIJer0J9UmY4EqBtPHPG
 qJFbFZVbfs4FLATaxaOqQ/uwR3tQyNM9JHVdKdB7b4nnP3BGpvraY5W9OmcoIIho8/U+leV
 xFWaKsbC37T0fKO9RWBcQ==
X-UI-Out-Filterresults: notjunk:1;
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

With current trunk/master and emacs -Q evaluate the following form

(add-hook
  'c-mode-hook
  '(lambda ()
     (turn-on-auto-fill)
     (set (make-local-variable 'fill-column) 72)))

and visit ~/src/xterm.c.  Go to the end of that file, move a few lines
backwards so that point is at the beginning of some non-empty line
within the doc-string of `x-frame-normalize-before-maximize' (which is
coded as a C comment).  Now keep the SPC key pressed.  Here Emacs
consumes the entire available CPU and eventually redisplay gets stuck
completely.  This used to work without problems in Emacs 24.3.

In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
  of 2015-02-12 on MACHNO
Repository revision: da726ad0c6177a3442a374a135f40a24945d362c
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
  `configure --prefix=/c/emacs-git/trunk --enable-checking=yes
  --enable-check-lisp-object-type=yes 'CFLAGS=-O0 -g3''

martin




Acknowledgement sent to martin rudalics <rudalics@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#19846; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.