Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
118199d5
Commit
118199d5
authored
May 30, 1993
by
Richard M. Stallman
Browse files
(Info-mode-map): Correct Info-top to Info-top-node.
parent
03bdd54c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
lisp/info.el
lisp/info.el
+12
-14
No files found.
lisp/info.el
View file @
118199d5
...
...
@@ -47,7 +47,18 @@ The Lisp code is executed when the node is selected.")
This value is used as the default for `Info-directory-list'. It is set
in paths.el."
)
(
defvar
Info-directory-list
nil
(
defvar
Info-directory-list
(
let
((
path
(
getenv
"INFOPATH"
)))
(
if
path
(
let
((
list
nil
)
idx
)
(
while
(
>
(
length
path
)
0
)
(
setq
idx
(
or
(
string-match
":"
path
)
(
length
path
))
list
(
cons
(
substring
path
0
idx
)
list
)
path
(
substring
path
(
min
(
1+
idx
)
(
length
path
)))))
(
nreverse
list
))
Info-default-directory-list
))
"List of directories to search for Info documentation files.
nil means not yet initialized. In this case, Info uses the environment
variable INFOPATH to initialize it, or `Info-default-directory-list'
...
...
@@ -112,19 +123,6 @@ In interactive use, a prefix argument directs this command
to read a file name from the minibuffer."
(
interactive
(
if
current-prefix-arg
(
list
(
read-file-name
"Info file name: "
nil
nil
t
))))
(
or
Info-directory-list
(
setq
Info-directory-list
(
let
((
path
(
getenv
"INFOPATH"
)))
(
if
path
(
let
((
list
nil
)
idx
)
(
while
(
>
(
length
path
)
0
)
(
setq
idx
(
or
(
string-match
":"
path
)
(
length
path
))
list
(
cons
(
substring
path
0
idx
)
list
)
path
(
substring
path
(
min
(
1+
idx
)
(
length
path
)))))
(
nreverse
list
))
Info-default-directory-list
))))
(
if
file
(
Info-goto-node
(
concat
"("
file
")"
))
(
if
(
get-buffer
"*info*"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment