Commit 688070a5 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Allow visiting Info files with no "Up" pointer, such as DIR files.

 lisp/info.el (Info-toc-build): If the Info file has no "Up" pointer,
 don't pass the (nil) value of `upnode' to string-match.
parent 0702107a
2012-01-14 Eli Zaretskii <eliz@gnu.org>
* info.el (Info-toc-build): If the Info file has no "Up" pointer,
don't pass the (nil) value of `upnode' to string-match.
2012-01-14 Chong Yidong <cyd@gnu.org>
* startup.el (command-line): Fix X resource class for cursorColor.
......
......@@ -2251,7 +2251,7 @@ Table of contents is created from the tree structure of menus."
(match-string-no-properties 1)))
(section "Top")
menu-items)
(when (string-match "(" upnode) (setq upnode nil))
(when (and upnode (string-match "(" upnode)) (setq upnode nil))
(when (and (not (Info-index-node nodename file))
(re-search-forward "^\\* Menu:" bound t))
(forward-line 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment