Commit 8d51c5cc authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(vc-mode-line): Warn if file is not vc-registered

but is a symlink to a vc-maintained file.
parent 147a6615
......@@ -154,6 +154,12 @@ visiting FILE."
(require 'vc)
(not (string-equal (user-login-name) (vc-locking-user file)))
(setq buffer-read-only t))
(and (null vc-type)
(file-symlink-p buffer-file-name)
(let ((link-type (vc-backend-deduce (file-symlink-p buffer-file-name))))
(if link-type
(message "Warning: symbolic link to %s-controlled source file"
;;(set-buffer-modified-p (buffer-modified-p)) ;;use this if Emacs 18
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment