From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: latexenc-find-file-coding-system is slow. (was: Your Emacs changes) Date: Fri, 29 Apr 2005 14:11:34 +0200 Message-ID: <87u0lpye89.fsf_-_@xs4all.nl> References: <87ekcxrbb8.fsf@arnested.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1114777763 9603 80.91.229.2 (29 Apr 2005 12:29:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2005 12:29:23 +0000 (UTC) Cc: emacs-devel@gnu.org, Arne =?iso-8859-1?Q?J=F8rgensen?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 29 14:29:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DRUbv-0004dh-W7 for ged-emacs-devel@m.gmane.org; Fri, 29 Apr 2005 14:28:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DRUiG-0000Sr-2c for ged-emacs-devel@m.gmane.org; Fri, 29 Apr 2005 08:35:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DRUe4-0006ia-Vw for emacs-devel@gnu.org; Fri, 29 Apr 2005 08:31:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DRUe2-0006hW-JF for emacs-devel@gnu.org; Fri, 29 Apr 2005 08:30:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DRUe1-0005Yv-LT for emacs-devel@gnu.org; Fri, 29 Apr 2005 08:30:57 -0400 Original-Received: from [194.109.24.29] (helo=smtp-vbr9.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DRUPn-0008OR-3l; Fri, 29 Apr 2005 08:16:15 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr9.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3TCBZen037748; Fri, 29 Apr 2005 14:11:35 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DRULG-0001ea-00; Fri, 29 Apr 2005 14:11:34 +0200 Original-To: Thien-Thi Nguyen In-Reply-To: (Thien-Thi Nguyen's message of "28 Apr 2005 07:58:54 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 44 X-Virus-Scanned: by XS4ALL Virus Scanner 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:36503 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36503 Thien-Thi Nguyen writes: > Arne J=C3=B8rgensen writes: > >> Richard Stallman wrote March 4, 2005: >>=20 >> > We can now install them. Could you send me the >> > latest version of your changes, with change log >> > entries? >>=20 >> 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/ema= cs/lispref/modes.texi" t 0 117151 nil)) insert-file-contents("/soft/careful/emacs/lispref/modes.texi" t) byte-code("=C2.=C3 =C2\".)=87" [inhibit-read-only filename t insert-file-= contents] 3) find-file-noselect-1(# "/soft/careful/emacs/lispref/mo= des.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/ema= cs/lispref/modes.texi" t 0 117151 nil)) insert-file-contents("/soft/careful/emacs/lispref/modes.texi" t) byte-code("=C2.=C3 =C2\".)=87" [inhibit-read-only filename t insert-file-= contents] 3) find-file-noselect-1(#> "/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.