diff options
Diffstat (limited to 'lisp/vc')
| -rw-r--r-- | lisp/vc/vc.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index c640ba0420e..af7339f34b3 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -957,7 +957,7 @@ use." | |||
| 957 | (throw 'found bk)))) | 957 | (throw 'found bk)))) |
| 958 | 958 | ||
| 959 | ;;;###autoload | 959 | ;;;###autoload |
| 960 | (defun vc-responsible-backend (file) | 960 | (defun vc-responsible-backend (file &optional no-error) |
| 961 | "Return the name of a backend system that is responsible for FILE. | 961 | "Return the name of a backend system that is responsible for FILE. |
| 962 | 962 | ||
| 963 | If FILE is already registered, return the | 963 | If FILE is already registered, return the |
| @@ -967,7 +967,10 @@ responsible for FILE is returned. | |||
| 967 | 967 | ||
| 968 | Note that if FILE is a symbolic link, it will not be resolved -- | 968 | Note that if FILE is a symbolic link, it will not be resolved -- |
| 969 | the responsible backend system for the symbolic link itself will | 969 | the responsible backend system for the symbolic link itself will |
| 970 | be reported." | 970 | be reported. |
| 971 | |||
| 972 | If NO-ERROR is nil, signal an error that no VC backend is | ||
| 973 | responsible for the given file." | ||
| 971 | (or (and (not (file-directory-p file)) (vc-backend file)) | 974 | (or (and (not (file-directory-p file)) (vc-backend file)) |
| 972 | (catch 'found | 975 | (catch 'found |
| 973 | ;; First try: find a responsible backend. If this is for registration, | 976 | ;; First try: find a responsible backend. If this is for registration, |