From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jindrich Makovicka Newsgroups: gmane.emacs.devel Subject: Re: C mode too slow Date: Wed, 8 Jun 2011 09:30:59 +0200 Message-ID: <20110608093059.68293061@holly> References: <4DEDC752.7090604@gmx.at> <83boy9d932.fsf@gnu.org> <837h8xcsak.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307518621 29697 80.91.229.12 (8 Jun 2011 07:37:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 07:37:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 08 09:36:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUDJu-0001Dt-0V for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2011 09:36:54 +0200 Original-Received: from localhost ([::1]:42405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDJt-0001e9-0c for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2011 03:36:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDIF-0001No-68 for emacs-devel@gnu.org; Wed, 08 Jun 2011 03:35:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUDID-0006Qm-0m for emacs-devel@gnu.org; Wed, 08 Jun 2011 03:35:11 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:58457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDIC-0006Qi-FJ for emacs-devel@gnu.org; Wed, 08 Jun 2011 03:35:08 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QUDI9-0000Fo-G6 for emacs-devel@gnu.org; Wed, 08 Jun 2011 09:35:05 +0200 Original-Received: from ip-78-45-77-163.net.upcbroadband.cz ([78.45.77.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 09:35:05 +0200 Original-Received: from makovick by ip-78-45-77-163.net.upcbroadband.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 09:35:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip-78-45-77-163.net.upcbroadband.cz In-Reply-To: X-Newsreader: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140291 Archived-At: On Tue, 07 Jun 2011 22:43:57 -0300 Stefan Monnier wrote: > >> >> > _and_ because editing lisp.h is virtually impossible these > >> >> > days. I have to use an old Emacs - almost each editing step > >> >> > takes about 15 secs here with the more recent Emacs > >> >> > versions :-( > >> >> I tend to find editing code such as lisp.h too slow as well. > >> >> Can we do something about it? > >> > Disable font-lock? > >> I'd rather not have to resort to such a workaround. > > I didn't mean that as a workaround. I meant to point out what I > > thought was the reason for the slowdown. > > Oh, yes, it does seem strongly linked to font-lock. There might be > some other ways to trigger the slowness, but usually if I disable > font-lock it's pretty responsive. I set jit-lock-defer-time to 0.2, so the font locking at least doesn't interfere with cursor motion (on 2.67GHz Core-i5). Makes Emacs a lot more responsive. -- Jindrich Makovicka