diff options
| -rw-r--r-- | lisp/add-log.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index 276fe0aa0aa..2c9170903d1 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -65,8 +65,10 @@ current buffer to the complete file name." | |||
| 65 | ;; Chase links before visiting the file. | 65 | ;; Chase links before visiting the file. |
| 66 | ;; This makes it easier to use a single change log file | 66 | ;; This makes it easier to use a single change log file |
| 67 | ;; for several related directories. | 67 | ;; for several related directories. |
| 68 | (setq file-name | 68 | (let (temp) |
| 69 | (expand-file-name (or (file-symlink-p file-name) file-name))) | 69 | (while (setq temp (file-symlink-p file-name)) |
| 70 | (setq file-name temp))) | ||
| 71 | (setq file-name (expand-file-name file-name)) | ||
| 70 | ;; Move up in the dir hierarchy till we find a change log file. | 72 | ;; Move up in the dir hierarchy till we find a change log file. |
| 71 | (let ((file1 file-name) | 73 | (let ((file1 file-name) |
| 72 | parent-dir) | 74 | parent-dir) |