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
b499b50b
Commit
b499b50b
authored
Feb 04, 1998
by
Dave Love
Browse files
(vc-ignore-vc-files): New variable.
(vc-file-hook, vc-file-not-found-hook): Use it.
parent
4a027a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
lisp/vc-hooks.el
lisp/vc-hooks.el
+13
-3
No files found.
lisp/vc-hooks.el
View file @
b499b50b
;;; vc-hooks.el --- resident support for version-control
;; Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
;; Copyright (C) 1992, 1993, 1994, 1995, 1996
, 1998
Free Software Foundation, Inc.
;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de>
...
...
@@ -116,6 +116,15 @@ See also variable `vc-consult-headers'."
:type
'boolean
:group
'vc
)
(
defcustom
vc-ignore-vc-files
nil
"*If non-nil don't look for version control information when finding files.
It may be useful to set this if (say) you edit files in a directory
containing corresponding RCS files but don't have RCS available;
similarly for other version control systems."
:type
'boolean
:group
'vc
)
(
defun
vc-mistrust-permissions
(
file
)
;; Access function to the above.
(
or
(
eq
vc-mistrust-permissions
't
)
...
...
@@ -1009,7 +1018,7 @@ control system name."
;; Recompute whether file is version controlled,
;; if user has killed the buffer and revisited.
(
cond
(
buffer-file-name
(
(
and
(
not
vc-ignore-vc-files
)
buffer-file-name
)
(
vc-file-clearprops
buffer-file-name
)
(
cond
((
vc-backend
buffer-file-name
)
...
...
@@ -1052,7 +1061,8 @@ control system name."
(
defun
vc-file-not-found-hook
()
"When file is not found, try to check it out from RCS or SCCS.
Returns t if checkout was successful, nil otherwise."
(
if
(
vc-backend
buffer-file-name
)
(
if
(
and
(
not
vc-ignore-vc-files
)
(
vc-backend
buffer-file-name
))
(
save-excursion
(
require
'vc
)
(
setq
default-directory
(
file-name-directory
(
buffer-file-name
)))
...
...
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