emacs-devel
[Top][All Lists]
Advanced

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

Re: vc-revert-hook?


From: Dan Nicolaescu
Subject: Re: vc-revert-hook?
Date: Wed, 07 May 2008 11:29:47 -0700

"Marshall, Simon" <address@hidden> writes:

  > Some time ago, vc.el used to have a vc-revert-hook.  I used it to cause a

Can you point out the version, or the exact name of the hook, a search
vc-revert-hook comes out empty...

  > subsequent recompilation - of a modified source file that I had then 
reverted
  > via C-x v u (AKA M-x vc-revert-buffer) - by touching the source file:
  > 
  >   (add-hook 'vc-revert-hook
  >             (lambda ()
  >               (shell-command (concat "touch " buffer-file-name))))
  > 
  > Without this, CVS (my backend VCS) or vc.el would leave the reverted source
  > file with the timestamp of the reverted revision, ie, older than the 
modified
  > file, and a dependency-based recompilation would be fooled into thinking 
that
  > the source file's compiled object file was up-to-date.

Are you sure?  A quick experiment showed that and after C-x v u the file
on disk had the time stamp set to the current time...
Can you replicate the problem with emacs -Q?




reply via email to

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