From: Ralph Schleicher <ralph@mueller-schleicher.de>
To: 8258@debbugs.gnu.org
Subject: bug#8258: INFOPATH bug on Windows
Date: Tue, 15 Mar 2011 20:44:40 +0100 [thread overview]
Message-ID: <87bp1cjhhz.fsf@bravo.mueller-schleicher.i> (raw)
Hi,
on Windows, Emacs 23.3 fails to parse INFOPATH due to a hard-coded
colon as path separator. Below is a patch together with a change
log entry.
2011-03-11 Ralph Schleicher <rs@ralph-schleicher.de>
* info.el (info-initialize): Replace all uses of `:' with
path-separator for compatibility with non-Unix systems.
Cache quoting of path-separator.
--- emacs-23.3/lisp/info.el.orig 2011-01-08 12:45:14 +0100
+++ emacs-23.3/lisp/info.el 2011-03-11 11:45:14 +0100
@@ -588,15 +588,15 @@
(defun info-initialize ()
"Initialize `Info-directory-list', if that hasn't been done yet."
(unless Info-directory-list
- (let ((path (getenv "INFOPATH")))
+ (let ((path (getenv "INFOPATH"))
+ (sep (regexp-quote path-separator)))
(setq Info-directory-list
(prune-directory-list
(if path
- (if (string-match ":\\'" path)
- (append (split-string (substring path 0 -1)
- (regexp-quote path-separator))
+ (if (string-match (concat sep "\\'") path)
+ (append (split-string (substring path 0 -1) sep)
(Info-default-dirs))
- (split-string path (regexp-quote path-separator)))
+ (split-string path sep))
(Info-default-dirs)))))))
;;;###autoload
--
Ralph
next reply other threads:[~2011-03-15 19:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-15 19:44 Ralph Schleicher [this message]
2011-03-16 0:04 ` bug#8258: INFOPATH bug on Windows Juanma Barranquero
2011-04-08 17:49 ` Glenn Morris
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=87bp1cjhhz.fsf@bravo.mueller-schleicher.i \
--to=ralph@mueller-schleicher.de \
--cc=8258@debbugs.gnu.org \
/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.