From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Slow Info startup Date: Tue, 29 Nov 2005 21:41:35 -0500 Message-ID: <87d5kiq2lc.fsf@stupidchicken.com> 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 1133318485 11551 80.91.229.2 (30 Nov 2005 02:41:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2005 02:41:25 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 30 03:41:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhHtr-0002t8-CN for ged-emacs-devel@m.gmane.org; Wed, 30 Nov 2005 03:40:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhHtq-00061i-KR for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 21:40:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EhHtg-00061d-AV for emacs-devel@gnu.org; Tue, 29 Nov 2005 21:40:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EhHte-00061R-QA for emacs-devel@gnu.org; Tue, 29 Nov 2005 21:40:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhHte-00061O-Mn for emacs-devel@gnu.org; Tue, 29 Nov 2005 21:40:38 -0500 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EhHte-0005b9-O6 for emacs-devel@gnu.org; Tue, 29 Nov 2005 21:40:38 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 69FF21208AF; Tue, 29 Nov 2005 21:41:35 -0500 (EST) Original-To: Katsumi Yamaoka In-Reply-To: <878xv6zwqa.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 29 Nov 2005 21:38:05 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:46792 Archived-At: Gah... shouldn't have been sending emails while hacking on longlines. Sorry about that, here's the real patch. *** emacs/lisp/info.el.~1.463.~ 2005-11-29 15:07:25.000000000 -0500 --- emacs/lisp/info.el 2005-11-29 21:22:28.000000000 -0500 *************** *** 3800,3816 **** (and (not (equal (match-string 4) "")) (match-string 4)) (match-string 2))))) ! (file Info-current-file) (hl Info-history-list) res) (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node) ! (setq file (Info-find-file (match-string 1 node) t) node (if (equal (match-string 2 node) "") "Top" (match-string 2 node)))) (while hl (if (and (string-equal node (nth 1 (car hl))) ! (string-equal file (nth 0 (car hl)))) (setq res (car hl) hl nil) (setq hl (cdr hl)))) res))) 'info-xref-visited 'info-xref)) --- 3800,3817 ---- (and (not (equal (match-string 4) "")) (match-string 4)) (match-string 2))))) ! (file (file-name-nondirectory Info-current-file)) (hl Info-history-list) res) (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node) ! (setq file (match-string 1 node) node (if (equal (match-string 2 node) "") "Top" (match-string 2 node)))) (while hl (if (and (string-equal node (nth 1 (car hl))) ! (string-equal file (file-name-nondirectory ! (nth 0 (car hl))))) (setq res (car hl) hl nil) (setq hl (cdr hl)))) res))) 'info-xref-visited 'info-xref)) *************** *** 3905,3921 **** (let ((node (if (equal (match-string 3) "") (match-string 1) (match-string 3))) ! (file Info-current-file) (hl Info-history-list) res) (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node) ! (setq file (Info-find-file (match-string 1 node) t) ! node (if (equal (match-string 2 node) "") "Top" (match-string 2 node)))) (while hl (if (and (string-equal node (nth 1 (car hl))) ! (string-equal file (nth 0 (car hl)))) (setq res (car hl) hl nil) (setq hl (cdr hl)))) res))) 'info-xref-visited 'info-xref))) --- 3906,3923 ---- (let ((node (if (equal (match-string 3) "") (match-string 1) (match-string 3))) ! (file (file-name-nondirectory Info-current-file)) (hl Info-history-list) res) (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node) ! (setq file (match-string 1 node) ! node (if (equal (match-string 2 node) "") "Top" (match-string 2 node)))) (while hl (if (and (string-equal node (nth 1 (car hl))) ! (string-equal file (file-name-nondirectory ! (nth 0 (car hl))))) (setq res (car hl) hl nil) (setq hl (cdr hl)))) res))) 'info-xref-visited 'info-xref)))