* (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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.