Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
64e5a32f
Commit
64e5a32f
authored
May 23, 2008
by
Dan Nicolaescu
Browse files
(vc-delete-file): Make sure the buffer is deleted and
vc-dir buffers are updated.
parent
ee91bfdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/vc.el
lisp/vc.el
+3
-4
No files found.
lisp/ChangeLog
View file @
64e5a32f
2008-05-23 Dan Nicolaescu <dann@ics.uci.edu>
* vc.el (vc-delete-file): Make sure the buffer is deleted and
vc-dir buffers are updated.
2008-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
2008-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
* vc.el (vc-delete-file): Don't try to resynch the buffer.
* vc.el (vc-delete-file): Don't try to resynch the buffer.
...
...
lisp/vc.el
View file @
64e5a32f
...
@@ -2445,10 +2445,9 @@ backend to NEW-BACKEND, and unregister FILE from the current backend.
...
@@ -2445,10 +2445,9 @@ backend to NEW-BACKEND, and unregister FILE from the current backend.
(
when
(
file-exists-p
file
)
(
delete-file
file
))
(
when
(
file-exists-p
file
)
(
delete-file
file
))
;; Forget what VC knew about the file.
;; Forget what VC knew about the file.
(
vc-file-clearprops
file
)
(
vc-file-clearprops
file
)
;; Since we've deleted the file and we've made sure the buffer had no
;; Make sure the buffer is deleted and the *vc-dir* buffers are
;; unsaved changes, we can kill the buffer. Much easier than trying to
;; updated after this.
;; properly refresh its VC state.
(
vc-resynch-buffer
file
nil
t
)))
(
when
buf
(
kill-buffer
buf
))))
;;;###autoload
;;;###autoload
(
defun
vc-rename-file
(
old
new
)
(
defun
vc-rename-file
(
old
new
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment