]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-resynch-window): Don't revert a buffer which has no associated file.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Oct 2009 03:32:25 +0000 (03:32 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 1 Oct 2009 03:32:25 +0000 (03:32 +0000)
(vc-resynch-buffer): Use vc-dir-buffers.

lisp/ChangeLog
lisp/vc-dispatcher.el

index 6427a918dd89d7536bb56ddef638343b0bd8ef8a..a4413bcbf965d5a153c6f48ac2f6b47ff0f7142d 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc-dispatcher.el (vc-resynch-window): Don't revert a buffer which
+       has no associated file.
+       (vc-resynch-buffer): Use vc-dir-buffers.
+
 2009-10-01  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/chart.el (chart-zap-chars, chart-bar-quickie)
@@ -87,7 +93,7 @@
 
 2009-09-30  Eric Ludlam  <zappo@gnu.org>
 
-       * emacs-lisp/eieio.el (boolean-p): Deleted.
+       * emacs-lisp/eieio.el (boolean-p): Delete.
 
 2009-09-30  Sascha Wilde  <wilde@sha-bang.de>
 
 
        * cedet/semantic/analyze/fcn.el (semantic-scope-find): Fix declaration.
 
-       * cedet/semantic/bovine/gcc.el (semantic-gcc-setup): Replace runtime use
-       of CL function `remove-if-not'.
+       * cedet/semantic/bovine/gcc.el (semantic-gcc-setup): Replace runtime
+       use of CL function `remove-if-not'.
 
        * emacs-lisp/authors.el (authors-ignored-files): Add "js2-mode.el".
 
index 07cf4a1ad289bec47bc0418fc1c9c861597d6f8a..bf3da4e6904997b135675ec2b734bc4acb998239 100644 (file)
@@ -461,7 +461,7 @@ modifications by the dispatcher client code, rather than user
 editing!"
   (and (string= buffer-file-name file)
        (if keep
-          (progn
+          (when (file-exists-p file)
             (vc-revert-buffer-internal t noquery)
 
             ;; VC operations might toggle the read-only state.  In
@@ -502,7 +502,7 @@ editing!"
            (vc-resynch-window file keep noquery))))))
   ;; Try to avoid unnecessary work, a *vc-dir* buffer is only present
   ;; if this is true.
-  (when (memq 'vc-dir-resynch-file after-save-hook)
+  (when vc-dir-buffers
     (vc-dir-resynch-file file)))
 
 (defun vc-buffer-sync (&optional not-urgent)