(find-change-log): Chase symlinks multiple levels.
authorRichard M. Stallman <rms@gnu.org>
Fri, 28 May 1993 05:18:06 +0000 (05:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 28 May 1993 05:18:06 +0000 (05:18 +0000)
lisp/add-log.el

index 276fe0a..2c91709 100644 (file)
@@ -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)
          parent-dir)