/[emacs]/emacs/lisp/vc-hooks.el
ViewVC logotype

Diff of /emacs/lisp/vc-hooks.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.170 by monnier, Sat Oct 16 18:59:11 2004 UTC revision 1.171 by spiegel, Tue Nov 30 11:03:09 2004 UTC
# Line 461  For registered files, the value returned Line 461  For registered files, the value returned
461            (vc-file-setprop file 'vc-state            (vc-file-setprop file 'vc-state
462                             (vc-call state-heuristic file)))))                             (vc-call state-heuristic file)))))
463    
464    (defun vc-recompute-state (file)
465      "Recompute the version control state of FILE, and return it.
466    This calls the possibly expensive function vc-BACKEND-state,
467    rather than the heuristic."
468      (vc-file-setprop file 'vc-state (vc-call state file)))
469    
470  (defsubst vc-up-to-date-p (file)  (defsubst vc-up-to-date-p (file)
471    "Convenience function that checks whether `vc-state' of FILE is `up-to-date'."    "Convenience function that checks whether `vc-state' of FILE is `up-to-date'."
472    (eq (vc-state file) 'up-to-date))    (eq (vc-state file) 'up-to-date))

Legend:
Removed from v.1.170  
changed lines
  Added in v.1.171

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26