From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: vc-revert-hook? Date: Wed, 07 May 2008 11:29:47 -0700 Message-ID: <200805071829.m47ITlkV020399@sallyv1.ics.uci.edu> References: <6EE216E1AA959543A555C60FF34FB767040B1D39@maileube01.misys.global.ad> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210185252 31833 80.91.229.12 (7 May 2008 18:34:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2008 18:34:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Marshall\, Simon" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 07 20:34:47 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JtoT3-0008RW-OH for ged-emacs-devel@m.gmane.org; Wed, 07 May 2008 20:34:17 +0200 Original-Received: from localhost ([127.0.0.1]:59424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtoSL-0001h2-Jr for ged-emacs-devel@m.gmane.org; Wed, 07 May 2008 14:33:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtoSC-0001ej-NU for emacs-devel@gnu.org; Wed, 07 May 2008 14:33:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtoS9-0001bW-33 for emacs-devel@gnu.org; Wed, 07 May 2008 14:33:23 -0400 Original-Received: from [199.232.76.173] (port=34058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtoS8-0001ae-MV for emacs-devel@gnu.org; Wed, 07 May 2008 14:33:20 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JtoS7-0003MA-Kv for emacs-devel@gnu.org; Wed, 07 May 2008 14:33:19 -0400 X-ICS-MailScanner-Watermark: 1210789788.25601@NiZt17MyTR1yH7GfwNNZzA Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m47ITlkV020399; Wed, 7 May 2008 11:29:47 -0700 (PDT) In-Reply-To: <6EE216E1AA959543A555C60FF34FB767040B1D39@maileube01.misys.global.ad> (Simon Marshall's message of "Wed, 7 May 2008 10:12:09 +0100") Original-Lines: 22 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96702 Archived-At: "Marshall, Simon" 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?