all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31578: 24.3; vc-ignore-root-dir resets locate-dominating-stop-dir-regexp
@ 2018-05-23 22:03 u0138544
  2019-07-13 14:27 ` Lars Ingebrigtsen
  2020-08-22 15:31 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 11+ messages in thread
From: u0138544 @ 2018-05-23 22:03 UTC (permalink / raw
  To: 31578

[-- 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 --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-08-22 15:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-08-22 15:41     ` Lars Ingebrigtsen

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.