emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: slow with html-file]


From: Andreas Roehler
Subject: Re: address@hidden: slow with html-file]
Date: Wed, 04 Apr 2007 19:35:38 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]