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
35d4f4e8
Commit
35d4f4e8
authored
Jul 28, 1994
by
Richard M. Stallman
Browse files
(Info-find-node): Use a loop instead of mapcar and catch.
parent
f8b53a82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
lisp/info.el
lisp/info.el
+9
-13
No files found.
lisp/info.el
View file @
35d4f4e8
...
...
@@ -214,19 +214,15 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
setq
temp-downcase
(
expand-file-name
(
downcase
filename
)
(
car
dirs
)))
;; Try several variants of specified name.
(
catch
'foundit
(
mapcar
(
function
(
lambda
(
x
)
(
if
(
file-exists-p
(
concat
temp
(
car
x
)))
(
progn
(
setq
found
temp
)
(
throw
'foundit
nil
)))
(
if
(
file-exists-p
(
concat
temp-downcase
(
car
x
)))
(
progn
(
setq
found
temp-downcase
)
(
throw
'foundit
nil
)))))
Info-suffix-list
))
(
let
((
suffix-list
Info-suffix-list
))
(
while
(
and
suffix-list
(
not
found
))
(
cond
((
file-exists-p
(
concat
temp
(
car
(
car
suffix-list
))))
(
setq
found
temp
))
((
file-exists-p
(
concat
temp-downcase
(
car
(
car
suffix-list
))))
(
setq
found
temp-downcase
)))
(
setq
suffix-list
(
cdr
suffix-list
))))
(
setq
dirs
(
cdr
dirs
)))))
(
if
found
(
setq
filename
found
)
...
...
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