diff options
| author | Richard M. Stallman | 1993-05-28 22:08:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-28 22:08:53 +0000 |
| commit | 411d5924a8ff01b45101ba178ab7e7021a987b7b (patch) | |
| tree | c8e8cd2a698c6914be0c304775cc831ea7a07790 | |
| parent | cbfa19e9210ccba7d3ecf25456293611fec7c215 (diff) | |
| download | emacs-411d5924a8ff01b45101ba178ab7e7021a987b7b.tar.gz emacs-411d5924a8ff01b45101ba178ab7e7021a987b7b.zip | |
(find-log-file): Use source file's truename dir.
| -rw-r--r-- | lisp/add-log.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index 2c9170903d1..9b180566f70 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -54,6 +54,13 @@ Once a file is found, `change-log-default-name' is set locally in the | |||
| 54 | current buffer to the complete file name." | 54 | current buffer to the complete file name." |
| 55 | (or file-name | 55 | (or file-name |
| 56 | (setq file-name (or change-log-default-name | 56 | (setq file-name (or change-log-default-name |
| 57 | ;; Chase links in the source file | ||
| 58 | ;; and use the change log in the dir where it points. | ||
| 59 | (and buffer-file-name | ||
| 60 | (let (temp (file buffer-file-name)) | ||
| 61 | (while (setq temp (file-symlink-p file)) | ||
| 62 | (setq file temp)) | ||
| 63 | (file-name-directory file))) | ||
| 57 | default-directory))) | 64 | default-directory))) |
| 58 | (if (and (eq file-name change-log-default-name) | 65 | (if (and (eq file-name change-log-default-name) |
| 59 | (assq 'change-log-default-name (buffer-local-variables))) | 66 | (assq 'change-log-default-name (buffer-local-variables))) |