From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#14886: Fwd: A significant slowdown calling font-lock-fontify-buffer from a hook Date: Wed, 17 Jul 2013 17:16:15 +0200 Message-ID: References: <83ip0a2xlb.fsf@gnu.org> <83ehay2vgw.fsf@gnu.org> <837ggp3kcb.fsf@gnu.org> <83zjtl1b43.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1374074295 19572 80.91.229.3 (17 Jul 2013 15:18:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jul 2013 15:18:15 +0000 (UTC) Cc: 14886@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 17:18:15 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 1UzTUZ-0006xG-NU for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 17:18:11 +0200 Original-Received: from localhost ([::1]:57372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzTUZ-0006CG-1b for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2013 11:18:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzTUV-0006C7-06 for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 11:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzTUQ-0004Pk-EZ for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 11:18:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzTUQ-0004Pg-BA for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 11:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UzTUP-0001EH-Th for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2013 11:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Jul 2013 15:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14886-submit@debbugs.gnu.org id=B14886.13740742244591 (code B ref 14886); Wed, 17 Jul 2013 15:18:01 +0000 Original-Received: (at 14886) by debbugs.gnu.org; 17 Jul 2013 15:17:04 +0000 Original-Received: from localhost ([127.0.0.1]:33105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzTTU-0001Bz-2P for submit@debbugs.gnu.org; Wed, 17 Jul 2013 11:17:04 -0400 Original-Received: from mail-ee0-f52.google.com ([74.125.83.52]:58191) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UzTTR-0001BR-F0 for 14886@debbugs.gnu.org; Wed, 17 Jul 2013 11:17:02 -0400 Original-Received: by mail-ee0-f52.google.com with SMTP id c50so1124362eek.39 for <14886@debbugs.gnu.org>; Wed, 17 Jul 2013 08:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=a5wdsG1eXx8dMEOuHmfwdU7fgwAsfWb4+/8SGoq3fe8=; b=oqc8XLpUgPbSobWw1D9d7WZVJ1xvlBwJtzd28nU1YXvSonX5lp+YY241qhUCTL9PKD wabuE6ZnTAsUdcTWEVLV25ybM34PcJ7KI1Eeb5k6PqhnBe6IWqPCdco2yKsUNgyMfuZC SdMjQITq1Da75NXlbIsylDVM96vo1R6b73G+6ZcmCsEj1dofpCCXfrx7sDalS7jJe+E/ WDe62FDtApOUZA7/OZAMDIF8kOX/ytcRxWCbC6AkGbrjDr/JYjeB+lrvC5cZtCZlpFFq RnhXuvR7iXvYM4wBkLYrvitxFaXQEDED0io41Nye2igWUeChQ5SPWTRiw5W9i0QNQIFX Cw6Q== X-Received: by 10.14.4.70 with SMTP id 46mr6801959eei.42.1374074215419; Wed, 17 Jul 2013 08:16:55 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Wed, 17 Jul 2013 08:16:15 -0700 (PDT) In-Reply-To: <83zjtl1b43.fsf@gnu.org> 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:76428 Archived-At: On Wed, Jul 17, 2013 at 5:04 PM, Eli Zaretskii wrote: > If we must always > run this from weird --eval arguments on the command line Using --eval from the command line is not required, just makes timing it all easier. But if you want a reproducible case without eval: ;; .emacs starts here (add-hook 'prog-mode-hook 'font-lock-fontify-buffer) ;; .emacs ends here emacs [/path/to/]xdisp.c That's it. I don't know how to make it simpler. > and on top > of that call fontification from an obscure mode hook prog-mode-hook isn't "obscure", We've spent time making all programming modes derive from prog-mode, so running things on it is nothing strange. Also, I do not choose where I will hit a bug :-) J