[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108810: * vc/vc-hooks.el (vc-before-
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108810: * vc/vc-hooks.el (vc-before-save): Clear cache if file has been |
Date: |
Sat, 30 Jun 2012 15:14:00 +0200 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108810
author: Dmitry Gutov <address@hidden>
committer: Michael Albinus <address@hidden>
branch nick: trunk
timestamp: Sat 2012-06-30 15:14:00 +0200
message:
* vc/vc-hooks.el (vc-before-save): Clear cache if file has been
removed (likely outside Emacs).
modified:
lisp/ChangeLog
lisp/vc/vc-hooks.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-06-30 12:05:22 +0000
+++ b/lisp/ChangeLog 2012-06-30 13:14:00 +0000
@@ -1,3 +1,8 @@
+2012-06-30 Dmitry Gutov <address@hidden>
+
+ * vc/vc-hooks.el (vc-before-save): Clear cache if file has been
+ removed (likely outside Emacs).
+
2012-06-30 Stefan Monnier <address@hidden>
* emacs-lisp/cl-lib.el: Require macroexp for its macros.
=== modified file 'lisp/vc/vc-hooks.el'
--- a/lisp/vc/vc-hooks.el 2012-06-27 21:15:13 +0000
+++ b/lisp/vc/vc-hooks.el 2012-06-30 13:14:00 +0000
@@ -704,6 +704,8 @@
(let ((file buffer-file-name)
backend)
(ignore-errors ;Be careful not to prevent saving the file.
+ (unless (file-exists-p file)
+ (vc-file-clearprops file))
(and (setq backend (vc-backend file))
(vc-up-to-date-p file)
(eq (vc-checkout-model backend (list file)) 'implicit)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108810: * vc/vc-hooks.el (vc-before-save): Clear cache if file has been,
Michael Albinus <=