Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8d51c5cc
Commit
8d51c5cc
authored
Apr 24, 1994
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lisp/vc-hooks.el
lisp/vc-hooks.el
+6
-0
No files found.
lisp/vc-hooks.el
View file @
8d51c5cc
...
...
@@ -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"
link-type
))))
(
force-mode-line-update
)
;;(set-buffer-modified-p (buffer-modified-p)) ;;use this if Emacs 18
vc-type
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment