Commit 46b7604e authored by Glenn Morris's avatar Glenn Morris
Browse files

Tweak previous log-edit-changelog-entries change

* lisp/vc/log-edit.el (log-edit-changelog-entries):
Check for a visited-but-never-saved ChangeLog.
parent 5d71cc6b
2014-07-10 Glenn Morris <>
* vc/log-edit.el (log-edit-changelog-entries):
Check for a visited-but-never-saved ChangeLog.
2014-07-09 Stefan Monnier <>
* vc/log-edit.el (log-edit-changelog-entries): Don't both visiting
......@@ -905,7 +905,8 @@ where LOGBUFFER is the name of the ChangeLog buffer, and each
;; that memoizing which is undesired here.
(setq change-log-default-name nil)
(when (file-exists-p changelog-file-name)
(when (or (find-buffer-visiting changelog-file-name)
(file-exists-p changelog-file-name))
(with-current-buffer (find-file-noselect changelog-file-name)
(unless (eq major-mode 'change-log-mode) (change-log-mode))
(goto-char (point-min))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment