[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-revert-buffer restores modification time from CVS

From: Kevin Rodgers
Subject: Re: vc-revert-buffer restores modification time from CVS
Date: Wed, 25 Jan 2006 15:31:40 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Steve Pitchers wrote:
With Emacs 21, the behaviour of vc-revert-buffer has changed, such that the original modification time of the revision from CVS is restored. This is very clever, but "make" now does not know that the file has changed and the build process fails or creates an executable that does not represent the source shown in the Emacs buffer!

What can be done to correct this?  Emacs 20 did not have this problem.

(defadvice vc-revert-buffer (after touch activate)
  "Reset the visited file's modification time to the current time."
  (shell-command (format "touch %s" buffer-file-name)))

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]