From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Slow Info startup Date: Wed, 30 Nov 2005 04:48:47 +0200 Organization: JURTA Message-ID: <87y836j09n.fsf@jurta.org> References: <878xv6zwqa.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133322383 19735 80.91.229.2 (30 Nov 2005 03:46:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2005 03:46:23 +0000 (UTC) Cc: yamaoka@jpl.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 30 04:46:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhIuo-0000M3-P7 for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2005 04:45:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhIun-0003UP-Tt for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 22:45:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EhIrC-0001Nw-2P for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:42:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EhIrA-0001NL-NK for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:42:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhIrA-0001NF-Eo for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:42:08 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EhIrA-0008JF-9b for emacs-devel@gnu.org; Tue, 29 Nov 2005 22:42:08 -0500 Original-Received: from mail.neti.ee (80-235-34-14-dsl.mus.estpak.ee [80.235.34.14]) by Relayhost1.neti.ee (Postfix) with ESMTP id A07E316EF; Wed, 30 Nov 2005 05:42:15 +0200 (EET) Original-To: Chong Yidong In-Reply-To: <878xv6zwqa.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 29 Nov 2005 21:38:05 -0500") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:46799 Archived-At: > The change was to correctly fontify Info buffers opened with > Info-on-current-buffer. If we are willing to sacrifice a little > correctness, there is one change that can speed things up. See the > attached patch. It seems this patch just reverts your changes in that part. > The side-effect of this is that Info will fontify incorrectly in one > corner case. This happens when you call Info-on-current-buffer on > a file named (e.g.) "elisp" outside of Info-directory list, or > a non-file buffer named "elisp". When you browse around, your Info > history will be recorded as though you are visiting the real "elisp" > info file, at /usr/share/info/elisp or wherever. If you later visit > the "real" info file, those links will be fontified as "previously > visited" links. Maybe that's an acceptable situation, however. I think this is not a big issue. Another case where it might not fontify correctly is when the user changes Info-directory-list so xrefs to the manuals with the same name are fontified as xrefs to the same manual. OTOH, with the old code in info.el, the user could move the same manual to another directory in Info-directory-list and still be able to see xrefs to the moved manual fontified correctly. So the old "manual-name-based" code (instead of the new "file-name-based") is not absolutely incorrect, and is much faster. -- Juri Linkov http://www.jurta.org/emacs/