From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#19846: 25.0.50; Problem with auto-fill-mode and C mode Date: 14 Feb 2015 11:48:37 -0000 Organization: muc.de e.V. Message-ID: <20150214114837.96359.qmail@mail.muc.de> References: <54DCF303.6030202@gmx.at> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423914559 3329 80.91.229.3 (14 Feb 2015 11:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 11:49:19 +0000 (UTC) To: 19846@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 12:49:13 2015 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 1YMbDk-0000DG-JE for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 12:49:12 +0100 Original-Received: from localhost ([::1]:59490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMbDk-0004wM-0Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 06:49:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMbDg-0004fx-6Q for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 06:49:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMbDf-0004U2-5I for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 06:49:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMbDZ-0004TM-QY; Sat, 14 Feb 2015 06:49:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMbDZ-0003fb-LE; Sat, 14 Feb 2015 06:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 14 Feb 2015 11:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19846 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 19846-submit@debbugs.gnu.org id=B19846.142391452214080 (code B ref 19846); Sat, 14 Feb 2015 11:49:01 +0000 Original-Received: (at 19846) by debbugs.gnu.org; 14 Feb 2015 11:48:42 +0000 Original-Received: from localhost ([127.0.0.1]:42746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMbDF-0003f1-7X for submit@debbugs.gnu.org; Sat, 14 Feb 2015 06:48:41 -0500 Original-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 ) id 1YMbDD-0003et-9e for 19846@debbugs.gnu.org; Sat, 14 Feb 2015 06:48:40 -0500 Original-Received: (qmail 96360 invoked by uid 3782); 14 Feb 2015 11:48:37 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/8.4-RELEASE (amd64)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:99371 Archived-At: Hi, Martin. In article 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).