2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
+ * vc-dispatcher.el (vc-resynch-window): Update comment.
+
* term.el (term-handle-ansi-escape): Add comments with the
terminfo capabilities implemented.
(if keep
(progn
(vc-revert-buffer-internal t noquery)
- ;; TODO: Adjusting view mode might no longer be necessary
- ;; after RMS change to files.el of 1999-08-08. Investigate
- ;; this when we install the new VC.
+
+ ;; VC operations might toggle the read-only state. In
+ ;; that case we need to adjust the `view-mode' status
+ ;; when `view-read-only' is non-nil.
(and view-read-only
(if (file-writable-p file)
(and view-mode
(and (not view-mode)
(not (eq (get major-mode 'mode-class) 'special))
(view-mode-enter))))
+
(run-hook-with-args 'mode-line-hook buffer-file-name))
(kill-buffer (current-buffer)))))