From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: narrow-to-defun and mark-defun now work properly for CC Mode. Date: Wed, 11 Apr 2007 17:53:56 -0400 (EDT) Message-ID: References: <20070409123730.GD1065@muc.de> <17948.11246.263666.982903@farnswood.snap.net.nz> <461C71A8.7060401@gmx.at> <871wiqkejv.fsf@stupidchicken.com> <873b36ajc5.fsf@stupidchicken.com> <20070411210916.GA1818@muc.de> <20070411214155.GB1818@muc.de> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1176328495 20868 80.91.229.12 (11 Apr 2007 21:54:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 21:54:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 11 23:54:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hbkm2-0004pA-Tc for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2007 23:54:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hbkq8-0006Al-3i for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2007 17:58:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hbkq2-00068V-VB for emacs-devel@gnu.org; Wed, 11 Apr 2007 17:58:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hbkq2-00067p-BK for emacs-devel@gnu.org; Wed, 11 Apr 2007 17:58:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hbkq2-00067l-2W for emacs-devel@gnu.org; Wed, 11 Apr 2007 17:58:50 -0400 Original-Received: from cpe-69-205-32-54.nycap.res.rr.com ([69.205.32.54] helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hbklw-0002jq-3S for emacs-devel@gnu.org; Wed, 11 Apr 2007 17:54:36 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Wed, 11 Apr 2007 17:53:56 -0400 (EDT) In-reply-to: <20070411214155.GB1818@muc.de> (message from Alan Mackenzie on 11 Apr 2007 22:22:20 +0200) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69313 Archived-At: Both before and after fontification with what amounts to emacs -Q -D , but more on the command line, both C-s method and M-> are fast, very fast. Fontifying the emacs/src/xdisp.c buffer took nearly 5 minutes. An IBM A21p laptop running a Pentium III (Coppermine) at 697.429 MHz, using a Debian testing distribution of GNU/Linux, kernel 2.4.25, updated this morning at around 11:45 UTC, along with Today's GNU Emacs CVS snapshot, Wed, 2007 Apr 11 11:52 UTC GNU Emacs 22.0.97.8 (i686-pc-linux-gnu, GTK+ Version 2.8.20) started with /usr/local/src/emacs/src/emacs -Q -D \ --eval '(setq-default mode-line-buffer-identification (quote (#("%14b" 0 4 (face (:weight normal))))))' \ -fn "-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1" \ --visit=/usr/local/bin/emacs-test \ --eval "(setq frame-title-format '(\"Emacs test: %b\"))" \ --eval '(set-frame-name "Emacs test")' \ --eval '(switch-to-buffer "*scratch*")' \ --eval '(emacs-version t)' I found the emacs/src/xdisp.c buffer and in it, I did: M-: (progn (load "elp") (elp-instrument-function 'font-lock-fontify-buffer) (elp-reset-all)) RET M-x font-lock-fontify-buffer RET M-: (elp-results) RET *ELP Profiling Results* buffer Function Name Call Count Elapsed Time Average Time ======================== ========== ============ ============ font-lock-fontify-buffer 1 297.907887 297.907887 -- Robert J. Chassell GnuPG Key ID: 004B4AC8 bob@rattlesnake.com bob@gnu.org http://www.rattlesnake.com http://www.teak.cc