From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.bugs Subject: font-lock latency Date: Mon, 02 Sep 2002 23:50:01 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031003401 27441 127.0.0.1 (2 Sep 2002 21:50:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2002 21:50:01 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17lz55-00078U-00 for ; Mon, 02 Sep 2002 23:49:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lz6e-000340-00; Mon, 02 Sep 2002 17:51:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17lz5H-0002Qc-00 for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2002 17:50:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17lz5E-0002Ov-00 for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2002 17:50:10 -0400 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lz5D-0002MJ-00 for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2002 17:50:07 -0400 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g82Lo3n3027953 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 2 Sep 2002 23:50:03 +0200 Original-To: bug-gnu-emacs@gnu.org X-Hashcash: 0:020902:bug-gnu-emacs@gnu.org:d8336ebd191942cf Original-Lines: 88 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3380 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3380 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-03-22 on raven, modified by Debian configured using `configure i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: This has really started to annoy me, and isn't fixed in CVS, so I'm reporting it. I did not investigate the causes so this may be known, but I didn't find anything in PROBLEMS. It doesn't happen in Emacs 20 or Emacs 19. $ emacs -q --no-site-file foo.c M-x font-lock-mode RET change the line #include "foo.h" into #include "foo. and wait a couple of seconds. Then add the " back. Font locking in the buffer is now messed up and the only way to restore it is to wait a couple of seconds again. I find myself wasting many seconds each day staring at the screen waiting for it to redisplay. ;-) Is there a workaround? Ideally I think this should not be present at all by default. IMHO, highlighting of unterminated strings should be disabled if this can't be fixed properly. foo.c looks like: #include "foo.h" int main() { int i; for (i=0;i<42;i++) puts("foo"); return i; } Recent input: M-x f o n t - o c l o c k - m o d e SPC f o o " C-_ C-_ M-x r e p o r e Recent messages: Loading image...done Loading tooltip...done For information about the GNU Project and its goals, type C-h C-p. Loading cc-mode...done Loading font-lock... Loading regexp-opt...done Loading font-lock...done Font-Lock mode enabled Undo! [2 times] Loading emacsbug...done