unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: u0138544 <rob.sargent@utah.edu>
To: 31578@debbugs.gnu.org
Subject: bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp
Date: Wed, 23 May 2018 16:03:16 -0600	[thread overview]
Message-ID: <8B783822-450A-4229-A7F8-083091EC322A@utah.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 1963 bytes --]

             reply	other threads:[~2018-05-23 22:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-23 22:03 u0138544 [this message]
2019-07-13 14:27 ` bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp 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
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8B783822-450A-4229-A7F8-083091EC322A@utah.edu \
    --to=rob.sargent@utah.edu \
    --cc=31578@debbugs.gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).