unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* a bug report on info.el
@ 2005-09-18 14:35 Hiroshi Okagawa
  2005-09-20  0:02 ` Richard M. Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Hiroshi Okagawa @ 2005-09-18 14:35 UTC (permalink / raw)


Hi,

I've found a bug in info.el which comes with Emacs 22.0.50.1
and want to report it.

Its info-initialize is written as:
> (defun info-initialize ()
>   "Initialize `Info-directory-list', if that hasn't been done yet."
>   (unless Info-directory-list
>     (let ((path (getenv "INFOPATH")))
>       (setq Info-directory-list
> 	    (prune-directory-list
> 	     (if path
> 		 (if (string-match ":\\'" path)
> 		     (append (split-string (substring path 0 -1)
> 					   (regexp-quote path-separator))
> 			     (Info-default-dirs))
> 		   (split-string path (regexp-quote path-separator)))
> 	       (Info-default-dirs)))))))

However, I think last two lines should be written like this:

	  (append   (split-string path (regexp-quote path-separator)))
  (Info-default-dirs)))

Otherwise, the last (Info-default-dirs) won't be appended to
Info-directory-list.

I think this bug appeared in Revision 1.343 of info.el for the first time.

Best regards,
--
Hiroshi Okagawa
okagawa@gmail.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: a bug report on info.el
  2005-09-18 14:35 a bug report on info.el Hiroshi Okagawa
@ 2005-09-20  0:02 ` Richard M. Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard M. Stallman @ 2005-09-20  0:02 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    However, I think last two lines should be written like this:

	      (append   (split-string path (regexp-quote path-separator)))
      (Info-default-dirs)))

    Otherwise, the last (Info-default-dirs) won't be appended to
    Info-directory-list.

You are supposed to end INFOPATH with a colon
if you want the defaults added at the end.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-20  0:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-18 14:35 a bug report on info.el Hiroshi Okagawa
2005-09-20  0:02 ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).