]> git.eshelyaron.com Git - emacs.git/commitdiff
(log-edit-insert-changelog-entries): Don't add newline after the last entry
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 9 Apr 2015 23:26:58 +0000 (02:26 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 9 Apr 2015 23:26:58 +0000 (02:26 +0300)
* lisp/vc/log-edit.el (log-edit-insert-changelog-entries):
Don't add newline after the last entry.

lisp/vc/log-edit.el

index ae8d275411b98f4562654bda2dc35eb73428fd93..e74ca7267c5eb2139a9544a22812bcc3208038c2 100644 (file)
@@ -992,6 +992,9 @@ Rename relative filenames in the ChangeLog entry as FILES."
       (apply 'log-edit-changelog-insert-entries
             (append (car log-entry) (cdr log-entry)))
       (insert "\n"))
+    ;; No newline after the last entry.
+    (when log-entries
+      (delete-char -1))
     log-edit-author))
 
 (defun log-edit-toggle-header (header value)