summaryrefslogtreecommitdiff
path: root/lisp/add-log.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2000-12-14 17:30:34 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2000-12-14 17:30:34 +0000
commit8f530b953cb3cbdf17d147863fd63443ef96c81a (patch)
tree71ac655e9b798d2d67d6534392423bfb4579f9ce /lisp/add-log.el
parent4dddb0b795e961580f2cd63d2481bf75e8896b3d (diff)
downloademacs-8f530b953cb3cbdf17d147863fd63443ef96c81a.tar.gz
(add-change-log-entry): Only expand-file-name if non-nil.
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r--lisp/add-log.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el
index e40b691f064..3ba7c75738e 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -432,10 +432,10 @@ non-nil, otherwise in local time."
(let* ((defun (add-log-current-defun))
(version (and change-log-version-info-enabled
(change-log-version-number-search)))
- (buffer-file
- (expand-file-name (if add-log-buffer-file-name-function
- (funcall add-log-buffer-file-name-function)
- buffer-file-name)))
+ (buf-file-name (if add-log-buffer-file-name-function
+ (funcall add-log-buffer-file-name-function)
+ buffer-file-name))
+ (buffer-file (if buf-file-name (expand-file-name buf-file-name)))
(file-name (expand-file-name
(or file-name (find-change-log file-name buffer-file))))
;; Set ENTRY to the file name to use in the new entry.