GNU bug report logs - #31578
24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp

Previous Next

Package: emacs;

Reported by: u0138544 <rob.sargent <at> utah.edu>

Date: Thu, 24 May 2018 08:25:03 UTC

Severity: minor

Tags: moreinfo

Found in version 24.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: u0138544 <rob.sargent <at> utah.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp
Date: Wed, 23 May 2018 16:03:16 -0600
[Message part 1 (text/plain, inline)]
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 <https://groups.google.com/forum/#!topic/gnu.emacs.help/wec_aPpUmqg>

Thanks,
rjs

[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.