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
138e541f
Commit
138e541f
authored
Apr 26, 2000
by
Gerd Moellmann
Browse files
(normal-top-level-add-to-load-path): Handle
case that the default directory is not in load-path.
parent
349c034d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lisp/startup.el
lisp/startup.el
+5
-1
No files found.
lisp/startup.el
View file @
138e541f
...
...
@@ -382,11 +382,15 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(
let
((
tail
load-path
)
(
thisdir
(
directory-file-name
default-directory
)))
(
while
(
and
tail
;;Don't go all the way to the nil terminator.
(
cdr
tail
)
(
not
(
equal
thisdir
(
car
tail
)))
(
not
(
and
(
memq
system-type
'
(
ms-dos
windows-nt
))
(
equal
(
downcase
thisdir
)
(
downcase
(
car
tail
))))))
(
setq
tail
(
cdr
tail
)))
(
setcdr
tail
(
append
(
mapcar
'expand-file-name
dirs
)
(
cdr
tail
)))))
;;Splice the new section in.
(
when
tail
(
setcdr
tail
(
append
(
mapcar
'expand-file-name
dirs
)
(
cdr
tail
))))))
(
defun
normal-top-level
()
(
if
command-line-processed
...
...
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