emacs-devel
[Top][All Lists]
Advanced

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

latexenc-find-file-coding-system is slow. (was: Your Emacs changes)


From: Lute Kamstra
Subject: latexenc-find-file-coding-system is slow. (was: Your Emacs changes)
Date: Fri, 29 Apr 2005 14:11:34 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

> Arne Jørgensen <address@hidden> writes:
>
>> Richard Stallman <address@hidden> wrote March 4, 2005:
>> 
>> > We can now install them.  Could you send me the
>> > latest version of your changes, with change log
>> > entries?
>> 
>> So now I'm trying to post to list
>
> i have installed the files w/ the suggested names;
> only modification was to re-indent latexenc.el.

Since this change, opening a 117k .texi file takes seconds.  It used
to take a fraction of a second.  I did a debug-on-quit during the wait
a couple of times and that consistently gave me one of these two
backtraces:

Debugger entered--Lisp error: (quit)
  re-search-forward("^[^%$]*\\inputencoding{\\(.*\\)}" nil t)
  latexenc-find-file-coding-system((insert-file-contents 
"/soft/careful/emacs/lispref/modes.texi" t 0 117151 nil))
  insert-file-contents("/soft/careful/emacs/lispref/modes.texi" t)
  byte-code("�.�        �\".)�" [inhibit-read-only filename t 
insert-file-contents] 3)
  find-file-noselect-1(#<buffer modes.texi> 
"/soft/careful/emacs/lispref/modes.texi" nil nil 
"/soft/careful/emacs/lispref/modes.texi" (185464 775))
  find-file-noselect("/soft/careful/emacs/lispref/modes.texi" nil nil t)
  find-file("/soft/careful/emacs/lispref/modes.texi" t)
  call-interactively(find-file)

Debugger entered--Lisp error: (quit)
  re-search-forward("^[^%$]*\\usepackage\\[\\(.*\\)\\]{inputenc}" nil t)
  latexenc-find-file-coding-system((insert-file-contents 
"/soft/careful/emacs/lispref/modes.texi" t 0 117151 nil))
  insert-file-contents("/soft/careful/emacs/lispref/modes.texi" t)
  byte-code("�.�        �\".)�" [inhibit-read-only filename t 
insert-file-contents] 3)
  find-file-noselect-1(#<buffer modes.texi<3>> 
"/soft/careful/emacs/lispref/modes.texi" nil nil 
"/soft/careful/emacs/lispref/modes.texi" (185464 775))
  find-file-noselect("/soft/careful/emacs/lispref/modes.texi" nil nil t)
  find-file("/soft/careful/emacs/lispref/modes.texi" t)
  call-interactively(find-file)

I guess the re-searching in latexenc-find-file-coding-system needs to
be improved.

Lute.




reply via email to

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