From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: u0138544 Newsgroups: gmane.emacs.bugs Subject: bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp Date: Wed, 23 May 2018 16:03:16 -0600 Message-ID: <8B783822-450A-4229-A7F8-083091EC322A@utah.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_B531CD38-A4D8-4C5A-BBED-AEF10A6B31A9" X-Trace: blaine.gmane.org 1527150193 15494 195.159.176.226 (24 May 2018 08:23:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 May 2018 08:23:13 +0000 (UTC) To: 31578@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 24 10:23:09 2018 Return-path: Envelope-to: geb-bug-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 1fLlWe-0003vq-Kh for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 May 2018 10:23:08 +0200 Original-Received: from localhost ([::1]:37144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLlYl-0004MQ-RG for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 May 2018 04:25:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLlYZ-0004IN-1O for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 04:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLlYV-0004Up-Qv for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 04:25:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38057) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLlYV-0004Uj-Ln for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 04:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fLlYV-000726-EH for bug-gnu-emacs@gnu.org; Thu, 24 May 2018 04:25:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: u0138544 Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 May 2018 08:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31578 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152715026626966 (code B ref -1); Thu, 24 May 2018 08:25:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2018 08:24:26 +0000 Original-Received: from localhost ([127.0.0.1]:45952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLlXu-00070s-AD for submit@debbugs.gnu.org; Thu, 24 May 2018 04:24:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLbr2-0003oa-4e for submit@debbugs.gnu.org; Wed, 23 May 2018 18:03:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLbqv-0007Et-WF for submit@debbugs.gnu.org; Wed, 23 May 2018 18:03:27 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57546) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLbqv-0007Ep-UF for submit@debbugs.gnu.org; Wed, 23 May 2018 18:03:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLbqu-0006RR-Ni for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 18:03:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLbqp-0007B2-SS for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 18:03:24 -0400 Original-Received: from ipo5.cc.utah.edu ([155.97.144.30]:42805) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLbqp-00078D-K6 for bug-gnu-emacs@gnu.org; Wed, 23 May 2018 18:03:19 -0400 X-IronPort-AV: E=Sophos;i="5.49,434,1520920800"; d="scan'208,217";a="281253657" Original-Received: from kitselas.uconnect.utah.edu ([155.99.201.240]) by ipo5smtp.cc.utah.edu with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2018 16:03:17 -0600 X-Mailer: Apple Mail (2.3445.6.18) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 24 May 2018 04:24:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146467 Archived-At: --Apple-Mail=_B531CD38-A4D8-4C5A-BBED-AEF10A6B31A9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I could not successfully override locate-domination-stop-dir-regexp via = .emacs because vc-find-root restores the default value. STR: override locate-dominating-stop-dir-regexp in .emacs with: (setq locate-dominating-stop-dir-regexp = "\\`\\(?:/uufs/chpc.utah.edu/common/home/[^\\/]+/\\|~/\\)\\'") edebug-defun locate-dominating-file stop at string-match, note value of locate-dominating-stop-dir-regexp continue to next call to string-match (for a different dominating file) re-check value of locate-dominating-stop-dir-regexp You will find that for calls from vc-find-root the value of locate-dominating-stop-dir-regexp will be the default (from files.el) as opposed to the value in the .emacs setq I maintain that locate-dominating-stop-dir-regexp might be better served as an extensible list though others believe concatenating regexp after regexp is the way to go. An exchange on the google gnu.emacs.help forum can be found here: = https://groups.google.com/forum/#!topic/gnu.emacs.help/wec_aPpUmqg = Thanks, rjs --Apple-Mail=_B531CD38-A4D8-4C5A-BBED-AEF10A6B31A9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
I could not successfully override = locate-domination-stop-dir-regexp via .emacs because vc-find-root = restores the default value.

STR:
override = locate-dominating-stop-dir-regexp in .emacs with:
         (setq = locate-dominating-stop-dir-regexp "\\`\\(?:/uufs/chpc.utah.edu/common/home/[^\\/]+/\\|~/\\)\\'")

edebug-defun = locate-dominating-file
stop at string-match, note = value of locate-dominating-stop-dir-regexp
continue = to next call to string-match (for a different dominating file)
re-check value of locate-dominating-stop-dir-regexp

You will find that for = calls from vc-find-root the value of
locate-dominating-stop-dir-regexp will be the default (from = files.el) as
opposed to the value in the .emacs = setq

I = maintain that locate-dominating-stop-dir-regexp might be better = served
as an extensible list though others believe = concatenating regexp after
regexp is the way to = go.

An = exchange on the google gnu.emacs.help forum can be found here: https://groups.google.com/forum/#!topic/gnu.emacs.help/wec_aPpU= mqg

Thanks,
rjs

= --Apple-Mail=_B531CD38-A4D8-4C5A-BBED-AEF10A6B31A9--