all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sood@tenet.res.in (Ritesh)
Subject: Re: INFOPATH and emacs
Date: 19 Apr 2003 02:34:57 -0700	[thread overview]
Message-ID: <e910f684.0304190134.555759ba@posting.google.com> (raw)
In-Reply-To: slrnb9tvbo.u3i.gray@euthanasia.ath.cx

Jeremy Gray <gray@euthanasia.ath.cx> wrote in message news:<slrnb9tvbo.u3i.gray@euthanasia.ath.cx>...
> Jeremy Gray <gray@euthanasia.ath.cx> wrote:  
> > Kevin Rodgers <ihs_4664@yahoo.com> 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.

  parent reply	other threads:[~2003-04-19  9:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-16  6:34 INFOPATH and emacs Ritesh
2003-04-16 17:54 ` David Masterson
2003-04-17  5:18   ` Ritesh
2003-04-17  6:52     ` Jeremy Gray
2003-04-17 17:22       ` Kevin Rodgers
2003-04-17 19:22         ` Jeremy Gray
2003-04-17 20:12           ` Jeremy Gray
2003-04-17 19:26             ` David Masterson
2003-04-17 20:46               ` Jeremy Gray
2003-04-19  9:34             ` Ritesh [this message]
2003-04-19 11:38               ` Eli Zaretskii
     [not found]               ` <mailman.4929.1050748877.21513.help-gnu-emacs@gnu.org>
2003-04-19 19:03                 ` Stefan Monnier
2003-04-20  7:03                   ` Ritesh
2003-04-22 13:44                     ` Ritesh
2003-04-19  8:44           ` Ritesh
2003-04-17 16:52 ` Kai Großjohann
2003-04-17 18:55   ` David Masterson
2003-04-17 20:21     ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e910f684.0304190134.555759ba@posting.google.com \
    --to=sood@tenet.res.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.