+2007-10-11 Eric S. Raymond <esr@snark.thyrsus.com>
+
+ * vc-hooks.el (vc-registered): Robustify this function a bit
+ against filenames with no directory component.
+
2007-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
* international/characters.el: Undo unwanted and unexplained change.
backend is tried first."
(let (handler)
(cond
- ((string-match vc-ignore-dir-regexp (file-name-directory file)) nil)
+ ((and (file-name-directory file) (string-match vc-ignore-dir-regexp (file-name-directory file)))
+ nil)
((and (boundp 'file-name-handler-alist)
(setq handler (find-file-name-handler file 'vc-registered)))
;; handler should set vc-backend and return t if registered