]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid failing if vc backend doesn't implement ignore-completion-table
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 31 Aug 2021 20:24:02 +0000 (22:24 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Tue, 31 Aug 2021 21:36:55 +0000 (23:36 +0200)
* project.el (project-ignores): Handle vc-not-supported signals

lisp/progmodes/project.el

index ae9bf035717766e474f20709d1df703d97569697..e420a4ccca7c9e4a7a759c0e5a6b2e7517019d9f 100644 (file)
@@ -604,7 +604,9 @@ backend implementation of `project-external-roots'.")
                  (replace-match "./" t t entry 1)
                (concat "./" entry)))
             (t entry)))
-         (vc-call-backend backend 'ignore-completion-table root))))
+         (condition-case nil
+             (vc-call-backend backend 'ignore-completion-table root)
+           (vc-not-supported () nil)))))
      (project--value-in-dir 'project-vc-ignores root)
      (mapcar
       (lambda (dir)