From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.devel Subject: Calling Info-find-file from other parts of Emacs Date: Sun, 11 Jun 2006 14:51:00 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150030246 13186 80.91.229.2 (11 Jun 2006 12:50:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2006 12:50:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 11 14:50:45 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FpPOu-0001DO-DH for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2006 14:50:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpPOt-0004Q3-Oo for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2006 08:50:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FpPOj-0004Pr-5e for emacs-devel@gnu.org; Sun, 11 Jun 2006 08:50:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FpPOf-0004PH-Q5 for emacs-devel@gnu.org; Sun, 11 Jun 2006 08:50:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpPOf-0004PD-KO for emacs-devel@gnu.org; Sun, 11 Jun 2006 08:50:29 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FpPXA-0005Rc-9P for emacs-devel@gnu.org; Sun, 11 Jun 2006 08:59:16 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FpPOb-0001At-5b for emacs-devel@gnu.org; Sun, 11 Jun 2006 14:50:25 +0200 Original-Received: from dialin-212-144-186-209.pools.arcor-ip.net ([212.144.186.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jun 2006 14:50:25 +0200 Original-Received: from angeli by dialin-212-144-186-209.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jun 2006 14:50:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialin-212-144-186-209.pools.arcor-ip.net Cancel-Lock: sha1:sra/1SWvhfviS/r234rgA18zFH8= 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:55826 Archived-At: Hi, AUCTeX currently uses `Info-find-file' for checking if certain info files are available. There are two problems with that. First, the function is not autoloaded. That's why AUCTeX autoloads it manually, which of course fails with Emacs 21 where the function is not present and which will break should the function ever be moved to another file. (I think, I can code around that problem.) So maybe the function can be autoloaded? Second, if the function is called before the canonical entry point `info' (or `Info-goto-node' for that matter) is called, the variable `Info-directory-list' will not be initialized and search for any file will fail. Could initialization of `Info-directory-list' be done by `Info-find-file' as well, or maybe even by loading info.el? With the above changes the function could be used reliably by other parts of Emacs. Does this make sense or is there another way of checking for the availability of info files? -- Ralf