# HG changeset patch # User Richard M. Stallman # Date 825293975 0 # Node ID f585d3bf3a73e4aa150145b8d1b30b2eee1605ff # Parent 8f8a4224147b472bce68a3730fedddd9c386d5ec (vc-follow-link): Kill buffer before creating new one. diff -r 8f8a4224147b -r f585d3bf3a73 lisp/vc-hooks.el --- a/lisp/vc-hooks.el Mon Feb 26 00:17:43 1996 +0000 +++ b/lisp/vc-hooks.el Mon Feb 26 00:19:35 1996 +0000 @@ -929,11 +929,11 @@ (this-buffer (current-buffer))) (if (eq true-buffer this-buffer) (progn + (kill-buffer this-buffer) ;; In principle, we could do something like set-visited-file-name. ;; However, it can't be exactly the same as set-visited-file-name. ;; I'm not going to work out the details right now. -- rms. - (set-buffer (find-file-noselect truename)) - (kill-buffer this-buffer)) + (set-buffer (find-file-noselect truename))) (set-buffer true-buffer) (kill-buffer this-buffer))))