diff options
| author | Hong Xu | 2016-11-04 12:06:00 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-11-04 12:06:00 +0200 |
| commit | 23570fd995a1a5586c85b440d552ec5b6077ed39 (patch) | |
| tree | 19ed57a3057ba2e12c0a4fd36a12f3c66d4a7875 /lisp | |
| parent | f708cb22a1608f8a5aea671afebea44d216d9496 (diff) | |
| download | emacs-23570fd995a1a5586c85b440d552ec5b6077ed39.tar.gz emacs-23570fd995a1a5586c85b440d552ec5b6077ed39.zip | |
Clarify documentation of 'vc-responsible-backend' wrt symlinks
* lisp/vc/vc.el (vc-responsible-backend): Clarify that symlinks
are not resolved when the VC backend is reported.
* doc/lispref/files.texi (Truenames): Document
'vc-responsible-backend'. (Bug#23436)
* doc/emacs/maintaining.texi (Version Control Systems): Fix a
typo.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/vc/vc.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index ac020d09539..2ddf4e19e1f 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -959,7 +959,11 @@ use." | |||
| 959 | If FILE is already registered, return the | 959 | If FILE is already registered, return the |
| 960 | backend of FILE. If FILE is not registered, then the | 960 | backend of FILE. If FILE is not registered, then the |
| 961 | first backend in `vc-handled-backends' that declares itself | 961 | first backend in `vc-handled-backends' that declares itself |
| 962 | responsible for FILE is returned." | 962 | responsible for FILE is returned. |
| 963 | |||
| 964 | Note that if FILE is a symbolic link, it will not be resolved -- | ||
| 965 | the responsible backend system for the symbolic link itself will | ||
| 966 | be reported." | ||
| 963 | (or (and (not (file-directory-p file)) (vc-backend file)) | 967 | (or (and (not (file-directory-p file)) (vc-backend file)) |
| 964 | (catch 'found | 968 | (catch 'found |
| 965 | ;; First try: find a responsible backend. If this is for registration, | 969 | ;; First try: find a responsible backend. If this is for registration, |