From 835af7195792e9e736a6acc3ef51b21e23020c2c Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sun, 23 Mar 2014 19:13:35 +0100 Subject: [PATCH] lisp/vc/vc.el (vc-rollback): Use set-buffer-modified-p. --- lisp/ChangeLog | 4 ++++ lisp/vc/vc.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c7015c7a7d5..bd87881c9ba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2014-03-23 Juanma Barranquero + + * vc/vc.el (vc-rollback): Use set-buffer-modified-p. + 2014-03-23 Daniel Colascione Change subword-mode to use `find-word-boundary-function-table' and diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 4a536900eb3..305cc6b561e 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -2450,7 +2450,7 @@ depending on the underlying version-control system." (error "Please revert all modified workfiles before rollback"))) ;; Accumulate changes associated with the fileset (vc-setup-buffer "*vc-diff*") - (not-modified) + (set-buffer-modified-p nil) (message "Finding changes...") (let* ((tip (vc-working-revision (car files))) ;; FIXME: `previous-revision' should take the fileset. -- 2.39.5