diff options
| author | Richard M. Stallman | 1993-05-28 05:18:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-28 05:18:06 +0000 |
| commit | 4e44c03b9e1a227c402bc0061109c8acdcf79dd0 (patch) | |
| tree | 01a922e1a35c33639afb10fcf482852d88e742bc | |
| parent | c9ed10f6f5653c3ce888a7f106c6a231a84f6521 (diff) | |
| download | emacs-4e44c03b9e1a227c402bc0061109c8acdcf79dd0.tar.gz emacs-4e44c03b9e1a227c402bc0061109c8acdcf79dd0.zip | |
(find-change-log): Chase symlinks multiple levels.
| -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) |