Commit 4e44c03b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(find-change-log): Chase symlinks multiple levels.

parent c9ed10f6
......@@ -65,8 +65,10 @@ current buffer to the complete file name."
;; Chase links before visiting the file.
;; This makes it easier to use a single change log file
;; for several related directories.
(setq file-name
(expand-file-name (or (file-symlink-p file-name) file-name)))
(let (temp)
(while (setq temp (file-symlink-p file-name))
(setq file-name temp)))
(setq file-name (expand-file-name file-name))
;; Move up in the dir hierarchy till we find a change log file.
(let ((file1 file-name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment