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
8d1abb42
Commit
8d1abb42
authored
Dec 23, 1993
by
Richard M. Stallman
Browse files
(Info-insert-dir): Compute truename just once for each dir.
(Info-insert-dir): For generated menu items, add ::.
parent
33aa8946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
31 deletions
+30
-31
lisp/info.el
lisp/info.el
+30
-31
No files found.
lisp/info.el
View file @
8d1abb42
...
...
@@ -330,36 +330,35 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
;; Search the directory list for the directory file.
(
while
dirs
(
or
(
member
(
file-truename
(
expand-file-name
(
car
dirs
)))
dirs-done
)
(
member
(
directory-file-name
(
file-truename
(
expand-file-name
(
car
dirs
))))
dirs-done
)
;; Try several variants of specified name.
;; Try upcasing, appending `.info', or both.
(
let*
(
temp
(
buffer
(
cond
((
progn
(
setq
temp
(
expand-file-name
"DIR"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
))
((
progn
(
setq
temp
(
expand-file-name
"dir"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
))
((
progn
(
setq
temp
(
expand-file-name
"DIR.INFO"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
))
((
progn
(
setq
temp
(
expand-file-name
"dir.info"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
)))))
(
setq
dirs-done
(
cons
(
file-truename
(
expand-file-name
(
car
dirs
)))
(
cons
(
directory-file-name
(
file-truename
(
expand-file-name
(
car
dirs
))))
dirs-done
)))
(
if
buffer
(
setq
buffers
(
cons
buffer
buffers
)
Info-dir-file-attributes
(
cons
(
cons
(
buffer-file-name
buffer
)
(
file-attributes
(
buffer-file-name
buffer
)))
Info-dir-file-attributes
)))))
(
let
((
truename
(
file-truename
(
expand-file-name
(
car
dirs
)))))
(
or
(
member
truename
dirs-done
)
(
member
(
directory-file-name
truename
)
dirs-done
)
;; Try several variants of specified name.
;; Try upcasing, appending `.info', or both.
(
let*
(
temp
(
buffer
(
cond
((
progn
(
setq
temp
(
expand-file-name
"DIR"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
))
((
progn
(
setq
temp
(
expand-file-name
"dir"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
))
((
progn
(
setq
temp
(
expand-file-name
"DIR.INFO"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
))
((
progn
(
setq
temp
(
expand-file-name
"dir.info"
(
car
dirs
)))
(
file-exists-p
temp
))
(
find-file-noselect
temp
)))))
(
setq
dirs-done
(
cons
truename
(
cons
(
directory-file-name
truename
)
dirs-done
)))
(
if
buffer
(
setq
buffers
(
cons
buffer
buffers
)
Info-dir-file-attributes
(
cons
(
cons
(
buffer-file-name
buffer
)
(
file-attributes
(
buffer-file-name
buffer
)))
Info-dir-file-attributes
))))))
(
setq
dirs
(
cdr
dirs
)))
;; Distinguish the dir file that comes with Emacs from all the
...
...
@@ -409,7 +408,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
re-search-forward
(
concat
"^\\* "
(
regexp-quote
nodename
)
":"
)
end
t
)
(
progn
(
insert
"* "
nodename
"\n"
)
(
insert
"* "
nodename
"::"
"\n"
)
(
setq
menu-items
(
cons
nodename
menu-items
)))))
(
setq
nodes
(
cdr
nodes
))))
;; Now take each node of each of the other buffers
...
...
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