unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Roehler <andreas.roehler@easy-emacs.de>
To: rms@gnu.org
Cc: Chong Yidong <cyd@stupidchicken.com>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: [andreas.roehler@easy-emacs.de: slow with html-file]
Date: Wed, 04 Apr 2007 19:35:38 +0200	[thread overview]
Message-ID: <4613E1EA.3030306@easy-emacs.de> (raw)
In-Reply-To: <E1HZ64v-0002qn-BO@fencepost.gnu.org>

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	other threads:[~2007-04-04 17:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-03 21:40 [andreas.roehler@easy-emacs.de: slow with html-file] Richard Stallman
2007-04-03 22:26 ` Chong Yidong
2007-04-04 14:03   ` Richard Stallman
2007-04-04 17:35     ` Andreas Roehler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4613E1EA.3030306@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).