From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Eric Hanchrow , 993@debbugs.gnu.org Resent-From: Eric Hanchrow Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 17 Sep 2008 20:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122168250016875 (code B ref -1); Wed, 17 Sep 2008 20:20:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 17 Sep 2008 20:15:00 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8HKEux9016869 for ; Wed, 17 Sep 2008 13:14:57 -0700 Received: from mail.gnu.org ([199.232.76.166]:51975 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kg3OV-0002jf-Do for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 16:12:59 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kg3QJ-0005PY-6s for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 16:14:55 -0400 Received: from smtp61.avvanta.com ([206.124.128.61]:59919 helo=mail.avvanta.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kg3QI-0005PG-Fy for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 16:14:50 -0400 Received: from mail.avvanta.com (localhost.drteeth.p.blarg.net [127.0.0.1]) by mail.avvanta.com (Postfix) with ESMTP id D3778F3942 for ; Wed, 17 Sep 2008 13:14:48 -0700 (PDT) Received: from offby1.atm01.sea.blarg.net (q-static-138-125.avvanta.com [206.124.138.125]) by mail.avvanta.com (Postfix) with ESMTP id A80DFF3940 for ; Wed, 17 Sep 2008 13:14:48 -0700 (PDT) Received: from erich by offby1.atm01.sea.blarg.net with local (Exim 4.69) (envelope-from ) id 1Kg3QG-0004Qw-G5 for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 13:14:48 -0700 From: Eric Hanchrow To: emacs-pretest-bug@gnu.org Date: Wed, 17 Sep 2008 13:14:48 -0700 Message-ID: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BlargAV-Status: No viruses detected, BlargAV v1.1 on localhost.drteeth.p.blarg.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 I visited a file that was in a git working tree, and expected to see "Git-master" in the mode line, but didn't. Some investigation revealed that the file I visited was owned by "Administrator", whereas the ".git" directory was owned by "erich". (It's not clear why these two related files have different owners, but this happens rather a lot when I use Cygwin). Anyway, the code in vc-find-root explicitly stops looking for a .git directory once it's determined that some parent of the file in question has a different owner. This heuristic probably works fine on every other platform, but perhaps it should be disabled on Windows, since the situation it's trying to prevent -- namely, "looking in things like /net and /afs" -- is unlikely to occur on that platform anyway. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file c:/cygwin/usr/local/src/emacs-via-git/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i386-mingw-nt6.0.6001) of 2008-09-17 on ERICH-DEV Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: eldoc-mode: t erc-autojoin-mode: t erc-match-mode: t erc-log-mode: t erc-services-mode: t erc-networks-mode: t desktop-save-mode: t recentf-mode: t display-time-mode: t global-auto-revert-mode: t diff-auto-refine-mode: t shell-dirtrack-mode: t iswitchb-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC c c c c c c C-x o C-M-x C-x b s h e l l SPC . SPC d e m C-a C-f C-f C-SPC - d C-b C-b SPC C-f C-f C-f C-k c : / SPC c : / d e m SPC c : / d e m i m v SPC c : / d e m SPC ~ / c d c v h o l l SPC - d l l SPC - d SPC d e m o c h o w n SPC - R SPC e r i c h SPC d e m o C-x b . t x C-x C-v C-a C-d C-d ~ C-x v l C-x 1 q M-x M-p M-p M-p C-x v l q C-x 0 C-x b i n i C-x b w i n C-s c y g C-w - m C-a C-n C-e C-n C-a C-M-n C-x C-e C-x b C-s C-x d / u s r / l o c s r q C-c C-a C-x b . e l C-s C-s C-s C-s C-w C-w C-w C-s C-s C-s C-s M-b C-x F C-x n d C-x C-n w C-x C-u C-g C-x u C-x n w M-x r e p o r t - e m Recent messages: Menu-bar mode disabled. Use M-x menu-bar-mode to make the menu bar appear. Mark saved where search started Activating cygwin-mount ... done "Activating cygwin-mount ... done" Mark saved where search started Mark set Type y, n, ! or SPC (the space bar): Quit Undo! Scanning for dabbrevs...100% -- I don't care where he was born. He's one of us, in all the ways that matter most. (Even, perhaps, in the groping.) -- Steven Den Beste, on Arnold Schwarzenegger From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Stefan Monnier , 993@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Sep 2008 01:30:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122170088929786 (code B ref -1); Thu, 18 Sep 2008 01:30:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Sep 2008 01:21:29 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8I1LPBV029709 for ; Wed, 17 Sep 2008 18:21:26 -0700 Received: from mx10.gnu.org ([199.232.76.166]:50715) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kg8B5-0007Fa-Tg for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 21:19:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kg8Cv-0004Se-GX for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 21:21:24 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:57106 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kg8Cv-0004SI-40 for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 21:21:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQFABxK0UhMCrQ4/2dsb2JhbACBZLg0gWeBAw X-IronPort-AV: E=Sophos;i="4.32,418,1217822400"; d="scan'208";a="27012392" Received: from 76-10-180-56.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.56]) by ironport2-out.teksavvy.com with ESMTP; 17 Sep 2008 21:21:18 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 28D60B40B1; Wed, 17 Sep 2008 21:21:18 -0400 (EDT) From: Stefan Monnier To: Eric Hanchrow Cc: 993@debbugs.gnu.org, emacs-pretest-bug@gnu.org Message-ID: References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> Date: Wed, 17 Sep 2008 21:21:18 -0400 In-Reply-To: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Wed, 17 Sep 2008 13:14:48 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > Some investigation revealed that the file I visited was owned by > "Administrator", whereas the ".git" directory was owned by "erich". The owner of the .git directory is irrelevant, IIUC. What matter is the owner of the directory in which is the .git subdirectory. > this happens rather a lot when I use Cygwin). Anyway, the code in > vc-find-root explicitly stops looking for a .git directory once it's > determined that some parent of the file in question has a different > owner. This heuristic probably works fine on every other platform, but > perhaps it should be disabled on Windows, since the situation it's > trying to prevent -- namely, "looking in things like /net and /afs" -- > is unlikely to occur on that platform anyway. Actually, some of the problems that the owner-heuristic tries to address are major slowdowns under w32 because of /// samba shares (it's never been quite clear from where exactly does the slowdown come, tho). Stefan From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Glenn Morris , 993@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 02:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.12252468876881 (code B ref 993); Wed, 29 Oct 2008 02:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 02:21:27 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9T2LMdc006875 for <993@emacsbugs.donarmstrong.com>; Tue, 28 Oct 2008 19:21:23 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kv0df-00075P-OL; Tue, 28 Oct 2008 22:18:27 -0400 From: Glenn Morris To: Stefan Monnier Cc: Eric Hanchrow , 993@debbugs.gnu.org References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> X-Spook: afsatcom brigand Rule Psix Vince Foster Firewalls Downing X-Ran: OD\V#2l|_E_7Wd]LP%X4Vd@?4@#=X--DIi%\C~$a"+Y]IHC35mzsl!2)d7[O^Zdmk3'%zc X-Hue: yellow X-Attribution: GM Date: Tue, 28 Oct 2008 22:18:27 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 17 Sep 2008 21:21:18 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Presumably this is now fixed, owing to these changes: 2008-10-25 Stefan Monnier * files.el (locate-dominating-stop-dir-regexp): New var. (locate-dominating-file): Change arg from a regexp to a file name. Rewrite using the vc-find-root code to avoid directory-files which is too slow. Obey locate-dominating-stop-dir-regexp. Don't pay attention to changes in owner. [...] * vc-hooks.el (vc-find-root): Use locate-dominating-file. (vc-ignore-dir-regexp): Use locate-dominating-stop-dir-regexp. Though now I have a bunch of bogus automounter queries cluttering up my logs again, which I have some vague memory was the reason for the change of ownership test in the first place... Oct 28 18:39:02 foo automount[2831]: lookup_mount: lookup(yp): key ".hg" not found in map Oct 28 18:39:02 foo automount[2831]: lookup_mount: lookup(yp): key "_MTN" not found in map Oct 28 18:39:02 foo automount[2831]: lookup_mount: lookup(yp): key "{arch}" not found in map Oct 28 18:39:03 foo automount[2831]: lookup_mount: lookup(yp): key ".dir-settings.el" not found in map Time to customize locate-dominating-stop-dir-regexp I suppose... From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Glenn Morris , 993@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 03:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.122524951117789 (code B ref 993); Wed, 29 Oct 2008 03:15:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 03:05:11 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9T354MJ016938 for <993@emacsbugs.donarmstrong.com>; Tue, 28 Oct 2008 20:05:06 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kv1K2-0000gc-AZ; Tue, 28 Oct 2008 23:02:14 -0400 From: Glenn Morris To: 993@debbugs.gnu.org Cc: Stefan Monnier , Eric Hanchrow References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> X-Spook: Albanian embassy Kosovo CID satellite imagery Aldergrove X-Ran: s@x0hFZy?rm_PdrAL~Xykj`r5ER6Mr|*to8m+K?j%V5Zf%a.6%gQM];@YwbP".b;9F4stM X-Hue: green X-Attribution: GM Date: Tue, 28 Oct 2008 23:02:14 -0400 In-Reply-To: (Glenn Morris's message of "Tue, 28 Oct 2008 22:18:27 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Glenn Morris wrote: > Time to customize locate-dominating-stop-dir-regexp I suppose... BTW, it seems you are stopping one directory too late, in that in order to stop Emacs looking up things like "/afs/.hg", I have to an add an element of the form "\\`/afs/[^/]+\\'". In other words, locate-dominating-stop-dir-regexp is the last directory in which you _do_ scan, whereas it might be simpler if it were the first _not_ scanned. I would also suggest adding /home and perhaps /nfs, as well as /afs and /net, to the default. Actually, I don't see why the default stop should not just match "\\`/[^/]+\\'". From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Stefan Monnier , 993@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 14:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.122529177032436 (code B ref 993); Wed, 29 Oct 2008 14:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 14:49:30 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9TEnRKd032427 for <993@emacsbugs.donarmstrong.com>; Wed, 29 Oct 2008 07:49:28 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAH8UCElMCqyo/2dsb2JhbACBdst5g1GBDg X-IronPort-AV: E=Sophos;i="4.33,506,1220241600"; d="scan'208";a="29012709" Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 29 Oct 2008 10:49:21 -0400 Received: by pastel.home (Postfix, from userid 20848) id 872568E6F; Wed, 29 Oct 2008 10:49:21 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Cc: 993@debbugs.gnu.org, Eric Hanchrow Message-ID: References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> Date: Wed, 29 Oct 2008 10:49:21 -0400 In-Reply-To: (Glenn Morris's message of "Tue, 28 Oct 2008 23:02:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Time to customize locate-dominating-stop-dir-regexp I suppose... > BTW, it seems you are stopping one directory too late, in that in > order to stop Emacs looking up things like "/afs/.hg", I have to an > add an element of the form "\\`/afs/[^/]+\\'". Looks like a bug, then. > In other words, locate-dominating-stop-dir-regexp is the last > directory in which you _do_ scan, whereas it might be simpler if it > were the first _not_ scanned. That was the intention, and it worked like that at some point. > I would also suggest adding /home and perhaps /nfs, as well as /afs > and /net, to the default. Actually, I don't see why the default stop > should not just match "\\`/[^/]+\\'". /home might be OK. "\\`/[^/]+\\'" is not, because several people use revision control for /etc. Stefan From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Stefan Monnier , 993@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 15:15:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.12252927675580 (code B ref 993); Wed, 29 Oct 2008 15:15:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 15:06:07 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9TF64Q8005572 for <993@emacsbugs.donarmstrong.com>; Wed, 29 Oct 2008 08:06:05 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEADAZCElMCqyo/2dsb2JhbACBdst9g1GBDg X-IronPort-AV: E=Sophos;i="4.33,506,1220241600"; d="scan'208";a="29013576" Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 29 Oct 2008 11:05:58 -0400 Received: by pastel.home (Postfix, from userid 20848) id 715D68E6F; Wed, 29 Oct 2008 11:05:58 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Cc: 993@debbugs.gnu.org, Eric Hanchrow Message-ID: References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> Date: Wed, 29 Oct 2008 11:05:58 -0400 In-Reply-To: (Glenn Morris's message of "Tue, 28 Oct 2008 23:02:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> Time to customize locate-dominating-stop-dir-regexp I suppose... > BTW, it seems you are stopping one directory too late, in that in > order to stop Emacs looking up things like "/afs/.hg", I have to an > add an element of the form "\\`/afs/[^/]+\\'". I just tried it and it seems to work correctly for me (/net/toto was not tried in (l-d-f "/net/foo/bar" "toto")). Can you take a closer look? Stefan From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Glenn Morris , 993@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 16:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.122529872430823 (code B ref 993); Wed, 29 Oct 2008 16:55:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 16:45:24 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9TGjLik030816 for <993@emacsbugs.donarmstrong.com>; Wed, 29 Oct 2008 09:45:22 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KvE7m-0001Bx-DT; Wed, 29 Oct 2008 12:42:26 -0400 From: Glenn Morris To: Stefan Monnier Cc: 993@debbugs.gnu.org, Eric Hanchrow References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> X-Spook: KGB IRA wire transfer IMF CIDA MDA InfoSec sniper X-Ran: .MAhNhKG"6p;%gQHFu!~W5y_3@2YNQf]pu4@]m2UDJPkF}8;1y'/p=KHfDu7MIpnuG%`Sx X-Hue: magenta X-Attribution: GM Date: Wed, 29 Oct 2008 12:42:26 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 29 Oct 2008 10:49:21 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Stefan Monnier wrote: >> In other words, locate-dominating-stop-dir-regexp is the last >> directory in which you _do_ scan, whereas it might be simpler if it >> were the first _not_ scanned. > > That was the intention, and it worked like that at some point. I will check to see if I was talking rubbish when I said it was not... > "\\`/[^/]+\\'" is not, because several people use revision control > for /etc. Yes, you are right. From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Glenn Morris , 993@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 19:10:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.1225306868388 (code B ref 993); Wed, 29 Oct 2008 19:10:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 19:01:08 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9TJ15ix000381 for <993@emacsbugs.donarmstrong.com>; Wed, 29 Oct 2008 12:01:06 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KvGFC-0007VM-95; Wed, 29 Oct 2008 14:58:14 -0400 From: Glenn Morris To: 993@debbugs.gnu.org Cc: Stefan Monnier , Eric Hanchrow References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> X-Spook: Semtex MD2 terrorism UMTS illuminati assassination SRI X-Ran: `,sO&(A.}Fe`/Tc3; (Glenn Morris's message of "Wed, 29 Oct 2008 12:42:26 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Glenn Morris wrote: > I will check to see if I was talking rubbish when I said it was not... I'm sorry, that was my mistake. (When I customized l-d-stop-dir-regexp, I forgot to add a trailing "/".) From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Glenn Morris , 993@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 29 Oct 2008 19:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.12253076903665 (code B ref 993); Wed, 29 Oct 2008 19:20:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-12.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 29 Oct 2008 19:14:50 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9TJElab003659 for <993@emacsbugs.donarmstrong.com>; Wed, 29 Oct 2008 12:14:48 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KvGSR-0000Wj-WA; Wed, 29 Oct 2008 15:11:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18696.46459.933757.431964@fencepost.gnu.org> Date: Wed, 29 Oct 2008 15:11:55 -0400 From: Glenn Morris To: 993@debbugs.gnu.org, Stefan Monnier In-Reply-To: References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: f*ME(s=E[baf)Ca{quWz7m..@X{rN!kX#}i:iU;`S]XUf6Q2=/+)Pk@FeDTEOnJU1m-0TH BTW, is the "\\\." in the default value for locate-dominating-stop-dir-regexp a typo? From unknown Sun Aug 17 22:08:01 2025 X-Loop: don@donarmstrong.com Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Reply-To: Stefan Monnier , 993@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 30 Oct 2008 01:15:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 993-submit@emacsbugs.donarmstrong.com id=B993.122532884829547 (code B ref 993); Thu, 30 Oct 2008 01:15:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 993) by emacsbugs.donarmstrong.com; 30 Oct 2008 01:07:28 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9U17OQt029540 for <993@emacsbugs.donarmstrong.com>; Wed, 29 Oct 2008 18:07:26 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEAM+lCElMCqyo/2dsb2JhbACBdss8g1GBDg X-IronPort-AV: E=Sophos;i="4.33,510,1220241600"; d="scan'208";a="29044160" Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 29 Oct 2008 21:07:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id EF81E800D; Wed, 29 Oct 2008 21:07:16 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Cc: 993@debbugs.gnu.org Message-ID: References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> <18696.46415.755564.556955@fencepost.gnu.org> Date: Wed, 29 Oct 2008 21:07:16 -0400 In-Reply-To: <18696.46415.755564.556955@fencepost.gnu.org> (Glenn Morris's message of "Wed, 29 Oct 2008 15:11:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > BTW, is the "\\\." in the default value for > locate-dominating-stop-dir-regexp a typo? Indeed. Stefan