From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.devel Subject: Re: [andreas.roehler@easy-emacs.de: slow with html-file] Date: Wed, 04 Apr 2007 19:35:38 +0200 Message-ID: <4613E1EA.3030306@easy-emacs.de> References: <874pnxt7qz.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175708126 12472 80.91.229.12 (4 Apr 2007 17:35:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 17:35:26 +0000 (UTC) Cc: Chong Yidong , Stefan Monnier , emacs-devel To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 04 19:35:18 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 1HZ9O8-0005Nk-FN for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 19:35:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZ9RP-0003mz-Hj for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 13:38:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZ9RM-0003jw-3M for emacs-devel@gnu.org; Wed, 04 Apr 2007 13:38:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZ9RJ-0003fD-Hd for emacs-devel@gnu.org; Wed, 04 Apr 2007 13:38:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZ9RJ-0003ey-Do for emacs-devel@gnu.org; Wed, 04 Apr 2007 13:38:33 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZ9O0-0003Ei-JJ; Wed, 04 Apr 2007 13:35:08 -0400 Original-Received: from [84.190.133.172] (helo=[192.168.178.25]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1HZ9Nm2OD7-0000Yj; Wed, 04 Apr 2007 19:34:59 +0200 User-Agent: Thunderbird 1.5.0.4 (X11/20060516) In-Reply-To: X-Provags-ID: V01U2FsdGVkX1/a5R0VALzQY8jRtkODqUqj2Uuk4sJhoh5MaFj LKg3GbSaJPXsHPipqNUdNK56lM/w8JW8O4BQi+ieA/L2041k0T OuGuxubDzpyIWulW/g6Bg== X-detected-kernel: Linux 2.6? (barebone, rare!) 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:69062 Archived-At: Richard Stallman schrieb: > Anreas, can you figure out what operation the time is spent in? > > Could you tell us precisely what input is needed, starting with > `emacs -Q', to make this failure occur? > > > 'semantic' seems the cause... Used Emacs from latest pretest tarball. The described delay does _not_ occur with emacs -Q. When Emacs is not called with option -Q it doesn't occur - if `global-font-lock-mode' is off. Switching it on after load, don't entrail such a delay. - if feature `semantic' is disabled via unload-feature - if paragraphs in html-code are provided with a newline before. (Which is done at the moment with the shell-script sent below): So it seems not an Emacs-problem as such. Thanks a lot Andreas Roehler #!/bin/bash # -- html-zeilenschalter.sh -------------------- # If no file is specfied when called, user is prompted export LC_ALL=C function zeilenschalter(){ for i in *.htm; do cp "$i" "$i".bak sed 's/\(<\/*[pP]>\)/\1\n/g' "$i".bak | sed '/^[ \t\f\n\r]*$/d;G' > "$i" done;} if [ $# == 0 ]; then echo "Treat all html-files in directory?" antwort= read antwort case $antwort in y) zeilenschalter ;; *) echo Abbruch! esac else zeilenschalter $1 fi # End