From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: Re: define Info's "dir"? Date: Thu, 29 Apr 2004 05:16:48 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083216704 19742 80.91.224.253 (29 Apr 2004 05:31:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Apr 2004 05:31:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 29 07:31:33 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJ48y-00017i-00 for ; Thu, 29 Apr 2004 07:31:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJ48d-0000LE-Kw for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Apr 2004 01:31:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny02.gnilink.net.POSTED!de648aa3!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 49 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 151.203.33.25 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: nwrdny02.gnilink.net 1083215808 151.203.33.25 (Thu, 29 Apr 2004 01:16:48 EDT) Original-NNTP-Posting-Date: Thu, 29 Apr 2004 01:16:48 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:122820 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18108 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18108 On Thu Apr 29, Eli Zaretskii disturbed my nap when he said: > > Newsgroups: gnu.emacs.help > > From: Mike Ballard > > Date: Wed, 28 Apr 2004 06:44:26 GMT > > > > Is there a way to tell Emacs to always use a specific "dir" as the > > top-level dir file? Even if the name is not "dir"? > > There doesn't seem to be a way to do that. The names of DIR files are > hardwired into info.el: Emacs looks for `dir', `DIR', `dir.info', and > `DIR.INFO', in that order, in each Info directory. > > The names are hardwired because the Texinfo package never generates > DIR files under any other name. > > Why do you need that? What is the real problem behind your request? > Thanks for the info (no pun intended). I use gentoo. For some (to me, inexplicable) reason the gentoo folks have decided to have emerge (the tool for installing new sources) search for "dir" files and in some cases rename them to dir.old. I filed a bug on it six months ago and it hasn't been touched. If a bug can be classified as "absolute lowest priority in the entire world" mine's probably it. I happen to have my own top-level dir file, source-controlled, not in an info dir but in the first entry in $INFOPATH so that Emacs will use it. I've added the Info help cmds to it, formatted so that most-used are near the top, and cleaned it up to be more 'presentable' for my tastes. Gentoo's emerge script (IIRC) is python, which I know nothing about. I originally edited the script locally so it would stop being so belligerent as to have the nerve to change things how I want them. When I upgraded this edit no longer seems to do the trick. For now I have to start Emacs with a script that includes a while loop to sleep/test/rename my "dir" whenever emerge changes it. I was hoping to use a new "dir" name that emerge wouldn't mess with. Mike -- mikeballard--at--verizon.net "Roses are red, violets are blue, I'm schizophrenic and so am I"