[Top][All Lists]

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

bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-re

From: u0138544
Subject: bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp
Date: Wed, 23 May 2018 16:03:16 -0600

I could not successfully override locate-domination-stop-dir-regexp via .emacs because vc-find-root restores the default value.

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


reply via email to

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