[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17970: log-edit creates unwanted ChangeLog buffers
From: |
Stefan Monnier |
Subject: |
bug#17970: log-edit creates unwanted ChangeLog buffers |
Date: |
Wed, 09 Jul 2014 14:54:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> C-x C-b
-> Now there is an empty, unwanted "/tmp/foo/ChangeLog" buffer.
I installed the patch below which seems to fix this problem.
Stefan
=== modified file 'lisp/vc/log-edit.el'
--- lisp/vc/log-edit.el 2014-07-01 15:15:03 +0000
+++ lisp/vc/log-edit.el 2014-07-09 18:52:47 +0000
@@ -905,6 +905,7 @@
;; that memoizing which is undesired here.
(setq change-log-default-name nil)
(find-change-log)))))
+ (when (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))
@@ -942,7 +943,7 @@
(setq pos (max (1+ pos) (elt entry 1)))
(goto-char pos)))
- (cons (current-buffer) texts))))))))
+ (cons (current-buffer) texts)))))))))
(defun log-edit-changelog-insert-entries (buffer beg end &rest files)
"Insert the text from BUFFER between BEG and END.
- bug#17970: log-edit creates unwanted ChangeLog buffers, (continued)
- bug#17970: log-edit creates unwanted ChangeLog buffers, Stefan Monnier, 2014/07/09
- bug#17970: log-edit creates unwanted ChangeLog buffers, Eli Zaretskii, 2014/07/10
- bug#17970: log-edit creates unwanted ChangeLog buffers, Stefan Monnier, 2014/07/10
- bug#17970: log-edit creates unwanted ChangeLog buffers, Glenn Morris, 2014/07/10
- bug#17970: log-edit creates unwanted ChangeLog buffers, Stefan Monnier, 2014/07/10
- bug#17970: log-edit creates unwanted ChangeLog buffers, Eli Zaretskii, 2014/07/10
- bug#17970: log-edit creates unwanted ChangeLog buffers, Glenn Morris, 2014/07/10
- bug#17970: log-edit creates unwanted ChangeLog buffers, Stefan Monnier, 2014/07/10
bug#17970: log-edit creates unwanted ChangeLog buffers,
Stefan Monnier <=