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
6b99fa73
Commit
6b99fa73
authored
Feb 16, 2008
by
Juanma Barranquero
Browse files
(vc-find-root): Don't loop forever on non-existent root.
parent
0a0d3143
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/vc-hooks.el
lisp/vc-hooks.el
+1
-1
No files found.
lisp/ChangeLog
View file @
6b99fa73
2008-02-16 Eli Zaretskii <eliz@gnu.org>
* vc-hooks.el (vc-find-root): Don't loop forever on non-existent root.
2008-02-14 Stefan Monnier <monnier@pastel.home>
* textmodes/sgml-mode.el (sgml-mode): Fix comment syntax.
lisp/vc-hooks.el
View file @
6b99fa73
...
...
@@ -316,7 +316,7 @@ The function walks up the directory tree from FILE looking for WITNESS.
If WITNESS if not found, return nil, otherwise return the root."
;; Represent /home/luser/foo as ~/foo so that we don't try to look for
;; witnesses in /home or in /.
(
while
(
not
(
file-directory-p
file
))
(
while
(
and
(
not
(
file-directory-p
file
))
(
file-exists-p
file
))
(
setq
file
(
file-name-directory
(
directory-file-name
file
))))
(
setq
file
(
abbreviate-file-name
file
))
(
let
((
root
nil
)
...
...
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