diff options
| author | Sean Whitton | 2026-01-10 11:49:55 +0000 |
|---|---|---|
| committer | Sean Whitton | 2026-01-10 11:50:12 +0000 |
| commit | fc682db9d8ee44869c1fbf26497991c4760b5c31 (patch) | |
| tree | e5d541cba759d54934cacb0d35402030f25b3755 | |
| parent | da42dd049126d51436371ba184f18292a06060e3 (diff) | |
| download | emacs-fc682db9d8ee44869c1fbf26497991c4760b5c31.tar.gz emacs-fc682db9d8ee44869c1fbf26497991c4760b5c31.zip | |
* lisp/vc/vc.el (vc-deduce-fileset): Don't return empty FILESET.
Suggested by Spencer Baugh <sbaugh@janestreet.com>.
| -rw-r--r-- | lisp/vc/vc.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 94bc72fc406..09918fad31e 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -1474,7 +1474,7 @@ BEWARE: this function may change the current buffer." | |||
| 1474 | (vc-deduce-fileset not-state-changing allow-unregistered state-model-only-files))) | 1474 | (vc-deduce-fileset not-state-changing allow-unregistered state-model-only-files))) |
| 1475 | ((and (not buffer-file-name) | 1475 | ((and (not buffer-file-name) |
| 1476 | (setq backend (vc-responsible-backend default-directory))) | 1476 | (setq backend (vc-responsible-backend default-directory))) |
| 1477 | (list backend nil)) | 1477 | (list backend default-directory)) |
| 1478 | ((and allow-unregistered (not (vc-registered buffer-file-name))) | 1478 | ((and allow-unregistered (not (vc-registered buffer-file-name))) |
| 1479 | (if state-model-only-files | 1479 | (if state-model-only-files |
| 1480 | (list (vc-backend-for-registration (buffer-file-name)) | 1480 | (list (vc-backend-for-registration (buffer-file-name)) |