From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Date: Wed, 17 Sep 2008 13:14:48 -0700 Message-ID: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> Reply-To: Eric Hanchrow , 993@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221683297 6795 80.91.229.12 (17 Sep 2008 20:28:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2008 20:28:17 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 22:29:14 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kg3dx-0003SD-OD for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2008 22:28:58 +0200 Original-Received: from localhost ([127.0.0.1]:57788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg3cw-0005ev-Iz for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2008 16:27:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg3ci-0005Yu-Bm for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg3cg-0005Y4-1t for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:39 -0400 Original-Received: from [199.232.76.173] (port=58064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg3cf-0005Xt-N0 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:37 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45444) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kg3ce-0007go-Vc for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:37 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8HKRZ34020167; Wed, 17 Sep 2008 13:27:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8HKK3Ap018127; Wed, 17 Sep 2008 13:20:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Eric Hanchrow Resent-To: bug-submit-list@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: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122168250016875 (code B ref -1); Wed, 17 Sep 2008 20:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Sep 2008 20:15:00 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-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 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 17 Sep 2008 16:27:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20592 gmane.emacs.pretest.bugs:23058 Archived-At: 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