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
92464ae6
Commit
92464ae6
authored
Apr 09, 2003
by
Richard M. Stallman
Browse files
(file-chase-links): Fix previous change.
parent
f7df88f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/files.el
lisp/files.el
+3
-4
No files found.
lisp/ChangeLog
View file @
92464ae6
2003-04-09 Richard M. Stallman <rms@gnu.org>
* files.el (file-chase-links): Fix previous change.
2003-04-09 Juanma Barranquero <lektu@terra.es>
* frame.el (new-frame): Add obsolescence declaration.
...
...
lisp/files.el
View file @
92464ae6
...
...
@@ -745,12 +745,11 @@ directory name is a symbolic link.
If the optional argument LIMIT is a number,
it means chase no more than that many links and then stop."
(
let
(
tem
(
newname
filename
)
(
count
0
)
(
max
(
max
limit
100
)))
(
count
0
))
(
while
(
and
(
or
(
null
limit
)
(
<
count
limit
))
(
setq
tem
(
file-symlink-p
newname
)))
(
save-match-data
(
if
(
=
count
max
)
(
if
(
and
(
null
limit
)
(
=
count
100
)
)
(
error
"Apparent cycle of symbolic links for %s"
filename
))
;; In the context of a link, `//' doesn't mean what Emacs thinks.
(
while
(
string-match
"//+"
tem
)
...
...
@@ -769,7 +768,7 @@ it means chase no more than that many links and then stop."
;; Now find the parent of that dir.
(
setq
newname
(
file-name-directory
newname
)))
(
setq
newname
(
expand-file-name
tem
(
file-name-directory
newname
)))
(
setq
count
(
1
-
count
))))
(
setq
count
(
1
+
count
))))
newname
))
(
defun
recode-file-name
(
file
coding
new-coding
&optional
ok-if-already-exists
)
...
...
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