From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: robjsargent@gmail.com Newsgroups: gmane.emacs.help Subject: Re: How to over-ride locate-domination-stop-dir-regex Date: Sat, 19 May 2018 13:58:37 -0700 (PDT) Message-ID: <81c293f5-9ff4-468f-892c-6c07d2c26831@googlegroups.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1526763503 10741 195.159.176.226 (19 May 2018 20:58:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 May 2018 20:58:23 +0000 (UTC) Injection-Date: Sat, 19 May 2018 20:58:38 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 19 22:58:19 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK8vj-0002iP-DX for geh-help-gnu-emacs@m.gmane.org; Sat, 19 May 2018 22:58:19 +0200 Original-Received: from localhost ([::1]:44321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fK8xq-00044w-7t for geh-help-gnu-emacs@m.gmane.org; Sat, 19 May 2018 17:00:30 -0400 X-Received: by 2002:a0c:e90d:: with SMTP id a13-v6mr9139631qvo.53.1526763518260; Sat, 19 May 2018 13:58:38 -0700 (PDT) X-Received: by 2002:ac8:6754:: with SMTP id n20-v6mr598170qtp.1.1526763518069; Sat, 19 May 2018 13:58:38 -0700 (PDT) Original-Path: usenet.stanford.edu!x25-v6no1361040qto.0!news-out.google.com!k3-v6ni1605qtj.0!nntp.google.com!x25-v6no1361033qto.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2001:569:73a4:6f00:c4dc:9301:24b5:2a71; posting-account=uAfO4goAAAC3XvpnMtJaIajpk4gnaaoY Original-NNTP-Posting-Host: 2001:569:73a4:6f00:c4dc:9301:24b5:2a71 Original-Xref: usenet.stanford.edu gnu.emacs.help:222659 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116780 Archived-At: Yes, agreed: setting/overriding locate-DOMINATING-stop-dir-regex is the iss= ue (cursed auto-completion in the subject line aside) I have set it in my .emacs using both=20 ;; I=E2=80=99m at a place where copy-paste doesn=E2=80=99t work so these ar= e unreliable (custom-set-variables =E2=80=98(locate-dominating-stop-dir-regex (purecop= y =E2=80=9C\\`/uufs/chpc.utah.edu/home/camp-group1/\\=E2=80=99=E2=80=9D)) ; using the above a restart of emacs, C-h v says the value of stop-dir-rege= x is as I set it ;; or (defvar locate-dominating-stop-dir-regex =E2=80=9C\\`/uufs/chpc.utah.edu/ho= me/camp-group1/\\=E2=80=99=E2=80=9D) ; but here in a restart of emacs C-h v does not have stop-dir-regex as my c= ustom value (it=E2=80=99s the default value) and neither of those stops locate-dominating-file from looking for files in= /uufs/chpc.utah.edu/home/ directly. From strace I have seen a three secon= d delay for each of the 7 various dominating file checks (.svn .git .bzr et= al). From elp I have stepped through locate-dominating-file and had a suc= cess returned from the string-match on my regex vs the tested directory nam= e and then the next call to locate-dominating-file uses the built in value = (from files.elc) not mine (from .emacs) and does not stop the directory se= arch, hence it crosses the automount divide and takes 3 seconds.=20 I hope I=E2=80=99ve addressed your questions. I=E2=80=99m desparate to get= this resolved.