From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Ganc Newsgroups: gmane.emacs.bugs Subject: bug#26066: 26.0.50; vc-git-status gives wrong result Date: Mon, 1 May 2017 15:22:39 -0400 Message-ID: <13d425a5-0c6d-385a-4df6-41e168c6eb89@gmail.com> References: <9bf82bf1-fefa-ab84-bac1-cf748ae5ccfb@gmail.com> <87efxy59wx.fsf@users.sourceforge.net> <0d87686b-c7d2-deab-ebe4-ab1c8aa4faca@yandex.ru> <29d4a5ae-0ca0-3a86-6b9a-ab616803f39e@gmail.com> <4741bddf-9765-0d94-d0cd-b94e3e4914e1@yandex.ru> <8530cd03-0158-f198-9b14-ade983e1c7f4@gmail.com> <022c0e0a-e039-24ef-66ff-82bcedbacd93@yandex.ru> <505388da-e642-8c98-35c0-261d09ff13e1@yandex.ru> <1a23269d-1ead-1771-1afd-e2c9c5840cb4@gmail.com> <30d8b181-d869-de24-9c86-cc1dc6ec461b@gmail.com> <6ea0d89d-1a24-30fe-dd9a-26a0157a4eae@yandex.ru> <01922284-4265-6510-feee-dcc7301787ad@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1493666599 11220 195.159.176.226 (1 May 2017 19:23:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 May 2017 19:23:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: Dmitry Gutov , npostavs@users.sourceforge.net, 26066@debbugs.gnu.org, Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 01 21:23:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5Gud-0002ii-Pe for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 May 2017 21:23:11 +0200 Original-Received: from localhost ([::1]:55500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5Guh-0000sL-H9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 May 2017 15:23:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5GuZ-0000rq-Rg for bug-gnu-emacs@gnu.org; Mon, 01 May 2017 15:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5GuU-0003IC-Ra for bug-gnu-emacs@gnu.org; Mon, 01 May 2017 15:23:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51751) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5GuU-0003Hs-MI for bug-gnu-emacs@gnu.org; Mon, 01 May 2017 15:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d5GuU-0001Nd-Gp for bug-gnu-emacs@gnu.org; Mon, 01 May 2017 15:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Ganc Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 May 2017 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26066 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26066-submit@debbugs.gnu.org id=B26066.14936665695272 (code B ref 26066); Mon, 01 May 2017 19:23:02 +0000 Original-Received: (at 26066) by debbugs.gnu.org; 1 May 2017 19:22:49 +0000 Original-Received: from localhost ([127.0.0.1]:49950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5GuH-0001My-2X for submit@debbugs.gnu.org; Mon, 01 May 2017 15:22:49 -0400 Original-Received: from mail-qk0-f195.google.com ([209.85.220.195]:36112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5GuE-0001Mk-R9 for 26066@debbugs.gnu.org; Mon, 01 May 2017 15:22:47 -0400 Original-Received: by mail-qk0-f195.google.com with SMTP id o4so6912qkb.3 for <26066@debbugs.gnu.org>; Mon, 01 May 2017 12:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=NSwQwAysXBXBC+Nepo15jxj8d7S+m2YYvPilHU0DEvk=; b=juDf5sEvvU7kOXu638ctkf1AhUb0vwpGw+80Vjmf4JsjubKKRtRq+2J3kvKmmg2od6 VPWVA8DwxGjznY1187DR3dBHOzowVwX9i+9iKv6jDh1iNL6LTgbGmisxUBBll2L8W7uH 5ICly3npN7lvt2bxYWYqPVXFJRg5Y/JPrJCdcbiPg1i70c87kfMJywtpryn5YhIbr/hW xYTass7hwLIJnwBkqMAu9LFLZ567rOLm8zap1sUHm8f+UsB4+2HudBwJSLy99XMoFTDq mvN5AKK/Ck97o1zX1tZnFJP6xmpUqq6YGZBgHJsJONqpW0POFqR1VUOPSIBzfsWYllre hE9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=NSwQwAysXBXBC+Nepo15jxj8d7S+m2YYvPilHU0DEvk=; b=cplTYrD6Ke4dtbGqqrkjPnldJsFbaxw/cg8TEgllNyeN3CWaw+oFtwgYUmzYm6gIAM HJ0/oZZsxVEn5lSj1O58BMDdWd5GKHMJn8ehCZXrklhlzWHytItoebB0cfMCrq4gIFgc JjG9L+Yf76eEMPxYQkJruVckYbdZ6muDFQW2qD11DnDAuPMGSgKgPS6cpfQDsqvfazww 1nJmZBRf+3/65J5FctWD+sTp3HWvCCHQemXJ8lyO+zHErgj/M8bTQcpox7fLUgzK+suR wauocUdtQ/NPCWxUr+pRxwDkD5mFY35n06slpfPAzWdvGWYpJN3BIeaez9POGGj8RUlF zzgQ== X-Gm-Message-State: AN3rC/5dZ+yHFCFg30W00Mrn4hlfGkAFuxpNUI8E1v1ndxJLElOhX2GV WRy5rN49x9ciEA== X-Received: by 10.55.46.198 with SMTP id u189mr21889303qkh.20.1493666561344; Mon, 01 May 2017 12:22:41 -0700 (PDT) Original-Received: from [10.1.10.171] (c-65-96-175-120.hsd1.ma.comcast.net. [65.96.175.120]) by smtp.gmail.com with ESMTPSA id z63sm11163862qkc.6.2017.05.01.12.22.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 May 2017 12:22:40 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132172 Archived-At: On 04/30/2017 09:57 PM, Dmitry Gutov wrote: > > I'm sorry about the delay as well. > No worries. > >> If this bug is unchanged, people using vc-state have to ask >> themselves: "if the backend is git, I have to bind default-directory >> but if it's not, I don't." That is inconsistent with vc agnosticism. > > However, not all other backends bind default-directory. Bzr doesn't, > as one example. Hg and SVN seem to do that, though. If you have a > chance to experiment with some other popular ones, please do. > But it's not clear to me that bzr needs to bind it. In other words, git needs to bind it get a working answer and perhaps bzr doesn't. Unfortunately, I only know git. If I get a chance I'll look at some others but I've never used them. Community message: If anyone else who uses other VC systems is reading this, it'd great to know if vc-state gives the correct answer if default-directory is bound to a random directory! > But what about the problems like "I don't have to bind > default-directory when calling vc-state, but I still have to do that > when calling other backend commands"? > This is just about clarification: are you thinking that one possible solution is not to have any of the vc code bind default-directory, i.e. that the caller might always be responsible for that?