From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: info-lookup delay on missing file Date: Thu, 28 Aug 2003 10:08:00 +1000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <874r02myov.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1062033074 716 80.91.224.253 (28 Aug 2003 01:11:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2003 01:11:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 28 03:11:12 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19sBJg-0006OV-00 for ; Thu, 28 Aug 2003 03:11:12 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19sBQM-0007Fd-00 for ; Thu, 28 Aug 2003 03:18:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sBIa-0006wc-0A for emacs-devel@quimby.gnus.org; Wed, 27 Aug 2003 21:10:04 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19sAPl-0002AR-TP for emacs-devel@gnu.org; Wed, 27 Aug 2003 20:13:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19sALd-00085K-Un for emacs-devel@gnu.org; Wed, 27 Aug 2003 20:09:10 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sAKs-0007Xh-8B for emacs-devel@gnu.org; Wed, 27 Aug 2003 20:08:22 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by mx20.gnu.org with esmtp (Exim 4.22) id 19sAKp-0003Sd-5I for emacs-devel@gnu.org; Wed, 27 Aug 2003 20:08:19 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h7S08H0J017159 for ; Thu, 28 Aug 2003 10:08:17 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h7S08Gkv002087 for ; Thu, 28 Aug 2003 10:08:16 +1000 (EST) Original-Received: from localhost (ppp99.dyn228.pacific.net.au [203.143.228.99]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h7S08Evj010926 for ; Thu, 28 Aug 2003 10:08:15 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19sAKX-0000fz-00; Thu, 28 Aug 2003 10:08:01 +1000 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16169 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16169 --=-=-= When an info file specified in info-lookup-alist doesn't exit, info-lookup has a message and sit-for every time it goes across that file in doing a lookup. For instance in sh-mode, diff.info is after coreutils.info. If you don't have coreutils.info and you try "C-h C-i diff" there's a message and delay Cannot access Info node (coreutils)Index every time before going on to bring up the diff manual. During the delay an unrelated index is shown in the info window, which I also think is quite disconcerting. I'd like to propose quietly ignoring such inaccessible files, * info-look.el (info-lookup): Don't sit-for and message on inaccessible info file. This was done on every lookup going past that file's entry and was too annoying. Leave it to happen just once on building the cache. There's still a message while first loading up info-lookup-cache, ie. the first lookup in a mode, hopefully that's enough of a warning. I struck this when appending further manuals to the c-mode setups. I don't have a termcap.info for that entry in the default setups and so got a delay on every lookup of one of my additions. Obviously it's not too hard to delete info-lookup-alist bits for things you doesn't have, but it seems to me friendlier to give just one warning and thereafter ignore missing stuff. --=-=-= Content-Disposition: attachment; filename=info-look.el.message.diff *** info-look.el.~1.34.~ Thu Jan 1 10:00:01 1970 --- info-look.el Thu Aug 21 14:53:47 2003 *************** (defun info-lookup (topic item mode) *** 351,360 **** (progn (Info-goto-node node) (setq doc-found t)) ! (error ! (message "Cannot access Info node %s" node) ! (sit-for 1) ! nil)) (condition-case nil (progn ;; Don't use Info-menu, it forces case-fold-search to t --- 351,357 ---- (progn (Info-goto-node node) (setq doc-found t)) ! (error nil)) (condition-case nil (progn ;; Don't use Info-menu, it forces case-fold-search to t --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --=-=-=--