help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to over-ride locate-dominating-stop-dir-regex


From: Stefan Monnier
Subject: Re: How to over-ride locate-dominating-stop-dir-regex
Date: Tue, 22 May 2018 21:47:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Using edebug-defun I step through locate-dominating-file and the
> string-match test uses my value for stop-dir-regexp, eventually matches it
> after peeling off "bin/segmentGT.awk" and exits the defun.  Then emacs
> immediately re-enter the defun and this time the string-match uses the
> built-in value for stop-dir-regexp.  This of course will never match
> _anything_ and I hit the three second automount timeouts.

Oh, found it: it's

    (defcustom vc-ignore-dir-regexp
      ;; Stop SMB, automounter, AFS, and DFS host lookups.
      locate-dominating-stop-dir-regexp
      "Regexp matching directory names that are not under VC's control.
    The default regexp prevents fruitless and time-consuming attempts
    to determine the VC status in directories in which filenames are
    interpreted as hostnames."
      :type 'regexp
      :group 'vc)

used by VC.

I suggest you report it as a bug: vc-ignore-dir-regexp should only
"extend" locate-dominating-stop-dir-regexp but not override it (at
least by default).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]