unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* (no subject)
@ 2006-01-24 11:59 Steve Pitchers
  2006-01-25 22:31 ` vc-revert-buffer restores modification time from CVS Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Pitchers @ 2006-01-24 11:59 UTC (permalink / raw)


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.

Steve
    ~~~

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: vc-revert-buffer restores modification time from CVS
  2006-01-24 11:59 (no subject) Steve Pitchers
@ 2006-01-25 22:31 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-01-25 22:31 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-25 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-24 11:59 (no subject) Steve Pitchers
2006-01-25 22:31 ` vc-revert-buffer restores modification time from CVS Kevin Rodgers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).