unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* vc-revert-hook?
@ 2008-05-07  9:12 Marshall, Simon
  2008-05-07 18:29 ` vc-revert-hook? Dan Nicolaescu
  0 siblings, 1 reply; 12+ messages in thread
From: Marshall, Simon @ 2008-05-07  9:12 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1942 bytes --]

Some time ago, vc.el used to have a vc-revert-hook.  I used it to cause
a 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.

Possibly this wasn't the best way of solving this problem even then.
However, it's not available anymore.

Would this hook be a good feature to put back in or is there a better
way to solve this particular problem?

Simon.



 "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP. For a list of Misys group operating companies please go to http://www.misys.com/html/about_us/group_operating_companies/. This email and any attachments have been scanned for known viruses using multiple scanners. 
 
We believe that this email and any attachments are virus free, however the recipient must take full responsibility for virus checking. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. 

[-- Attachment #2: Type: text/html, Size: 5283 bytes --]

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

end of thread, other threads:[~2008-05-13 14:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07  9:12 vc-revert-hook? Marshall, Simon
2008-05-07 18:29 ` vc-revert-hook? Dan Nicolaescu
2008-05-08  8:09   ` vc-revert-hook? Marshall, Simon
2008-05-08 15:51     ` vc-revert-hook? Dan Nicolaescu
2008-05-08 19:16       ` vc-revert-hook? Marshall, Simon
2008-05-09  1:09         ` vc-revert-hook? Stefan Monnier
2008-05-12 10:14           ` vc-revert-hook? Marshall, Simon
2008-05-12 14:33             ` vc-revert-hook? Stefan Monnier
2008-05-12 16:18               ` vc-revert-hook? Marshall, Simon
2008-05-12 17:03                 ` vc-revert-hook? Stefan Monnier
2008-05-13  9:06                   ` vc-revert-hook? Marshall, Simon
2008-05-13 14:19                     ` vc-revert-hook? Stefan Monnier

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).