From: ROB SARGENT <rob.sargent@utah.edu>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "31578@debbugs.gnu.org" <31578@debbugs.gnu.org>
Subject: bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp
Date: Sat, 22 Aug 2020 15:40:36 +0000 [thread overview]
Message-ID: <C07D039D-4BE1-426E-A825-B31AF16152B7@utah.edu> (raw)
In-Reply-To: <87imdak88d.fsf@gnus.org>
> On Aug 22, 2020, at 9:31 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
> u0138544 <rob.sargent@utah.edu> writes:
>
>> 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 think you're seeing the effect of this:
>
> (defun vc-find-root (file witness)
> "Find the root of a checked out project.
> The function walks up the directory tree from FILE looking for WITNESS.
> If WITNESS if not found, return nil, otherwise return the root."
> (let ((locate-dominating-stop-dir-regexp
> (or vc-ignore-dir-regexp locate-dominating-stop-dir-regexp)))
> (locate-dominating-file file witness)))
>
> vc-ignore-dir-regexp defaults to locate-dominating-stop-dir-regexp,
> though, so could it be that you're setting
> locate-dominating-stop-dir-regexp after you've loaded vc.el?
>
I think this has been taken care of. Thanks
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-08-22 15:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-23 22:03 bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp u0138544
2019-07-13 14:27 ` Lars Ingebrigtsen
2019-07-13 16:31 ` Andy Moreton
2019-07-13 16:37 ` Lars Ingebrigtsen
2019-07-14 20:01 ` Juri Linkov
2019-07-14 20:14 ` Dmitry Gutov
2019-07-14 20:51 ` Juri Linkov
2019-07-14 21:27 ` Dmitry Gutov
2020-08-22 15:31 ` Lars Ingebrigtsen
2020-08-22 15:40 ` ROB SARGENT [this message]
2020-08-22 15:41 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C07D039D-4BE1-426E-A825-B31AF16152B7@utah.edu \
--to=rob.sargent@utah.edu \
--cc=31578@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.