From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sood@tenet.res.in (Ritesh) Newsgroups: gmane.emacs.help Subject: Re: INFOPATH and emacs Date: 19 Apr 2003 02:34:57 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3E9EE2EE.5060709@yahoo.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1050745082 4353 80.91.224.249 (19 Apr 2003 09:38:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2003 09:38:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 19 11:38:00 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 196onI-00017m-00 for ; Sat, 19 Apr 2003 11:38:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 196olm-0007KD-07 for gnu-help-gnu-emacs@m.gmane.org; Sat, 19 Apr 2003 05:36:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 203.199.213.3 Original-X-Trace: posting.google.com 1050744897 7233 127.0.0.1 (19 Apr 2003 09:34:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 19 Apr 2003 09:34:57 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:112116 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8615 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8615 Jeremy Gray wrote in message news:... > Jeremy Gray wrote: > > Kevin Rodgers wrote: > >> > >> So there is a discrepancy between the command line info program and > >> Emacs' M-x info command in how an empty INFOPATH component is > >> interpreted. I think Emacs should emulate info as closely as > >> possible; if the OP agrees, he should use M-x report-emacs-bug to > >> submit a bug report. > > > > I think setting the entire path is easier in the long run since it > > works for both info and info-mode. But, I think this is a easily fixed > > bug. > > This appears to work, at least for me. > > diff -Naur emacs-21.3/lisp/info.el emacs-21.3-jag/lisp/info.el > --- emacs-21.3/lisp/info.el 2001-12-21 13:08:17.000000000 -0600 > +++ emacs-21.3-jag/lisp/info.el 2003-04-17 14:08:25.000000000 -0500 > @@ -320,7 +320,8 @@ > (insert-file-contents fullname visit)))) > > (defun info-initialize () > - "Initialize `Info-directory-list', if that hasn't been done yet." > + "Initialize `Info-directory-list', respecting a final colon like > +info standalone, if that hasn't been done yet." > (unless Info-directory-list > (let ((path (getenv "INFOPATH")) > (source (expand-file-name "info/" source-directory)) > @@ -341,7 +342,10 @@ > (setq Info-directory-list > (prune-directory-list > (if path > - (split-string path (regexp-quote path-separator)) > + (if (string-match ":$" path) > + (append (split-string path (regexp-quote path-separator)) > + Info-default-directory-list) > + (split-string path (regexp-quote path-separator))) > (if (and sibling (file-exists-p sibling)) > ;; Uninstalled, Emacs builddir != srcdir. > (setq alternative sibling) thanks! can you please list out the steps? I've deleted/added the relevent lines from above to my info.el file and also byte-compiled the file. however, still the same behavior persists, that is the default info path is not appended. I am running Red Hat Linux 7.3, emacs 21.2.1.