Simplify prelude-rename-file-and-buffer
This commit is contained in:
parent
a569d45a78
commit
9792ca0a63
1 changed files with 1 additions and 3 deletions
|
@ -195,9 +195,7 @@ there's a region, all lines that region covers will be duplicated."
|
||||||
((vc-backend filename) (vc-rename-file filename new-name))
|
((vc-backend filename) (vc-rename-file filename new-name))
|
||||||
(t
|
(t
|
||||||
(rename-file filename new-name t)
|
(rename-file filename new-name t)
|
||||||
(rename-buffer new-name)
|
(set-visited-file-name new-name t t)))))))
|
||||||
(set-visited-file-name new-name)
|
|
||||||
(set-buffer-modified-p nil)))))))
|
|
||||||
|
|
||||||
(defun prelude-delete-file-and-buffer ()
|
(defun prelude-delete-file-and-buffer ()
|
||||||
"Kill the current buffer and deletes the file it is visiting."
|
"Kill the current buffer and deletes the file it is visiting."
|
||||||
|
|
Loading…
Reference in a new issue