From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: vc-state and unregistered Date: Sun, 24 Apr 2016 21:58:36 +0300 Message-ID: <27facefd-4eb5-fa1f-4d72-66ac160c5478@yandex.ru> References: <6ok2vyzwf9.fsf@fencepost.gnu.org> <08f70cda-44be-0657-e50a-2b2c80d2c21c@yandex.ru> <87oa9dzgl0.fsf@gmx.de> <87potshczh.fsf@gmx.de> <87bn57otja.fsf_-_@gmx.de> <515b3451-820d-ad50-8c98-d0330a0f4266@yandex.ru> <87lh4arpbg.fsf@gmx.de> <87ega2rodp.fsf@gmx.de> <87vb37ury1.fsf@gmx.de> <87potfuqdt.fsf@gmx.de> <557a2987-39e8-051e-55fd-678bc01a6a40@yandex.ru> <87lh43upd9.fsf@gmx.de> <80b86343-9324-1de0-e66c-a02e80467740@yandex.ru> <87k2jmzxh5.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1461524349 14936 80.91.229.3 (24 Apr 2016 18:59:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2016 18:59:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 24 20:59:05 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1auPFE-0006Uw-54 for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2016 20:59:00 +0200 Original-Received: from localhost ([::1]:56271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auPFD-0000XO-LF for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2016 14:58:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auPEz-0000UL-Fv for emacs-devel@gnu.org; Sun, 24 Apr 2016 14:58:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auPEu-0008Gy-Cw for emacs-devel@gnu.org; Sun, 24 Apr 2016 14:58:45 -0400 Original-Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:33920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auPEu-0008Gp-4q for emacs-devel@gnu.org; Sun, 24 Apr 2016 14:58:40 -0400 Original-Received: by mail-wm0-x241.google.com with SMTP id n3so19393908wmn.1 for ; Sun, 24 Apr 2016 11:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=d2AKYG78RJ4xjXNqYbB4hyuDMEH/r7ad/9scQZKMalI=; b=T8h67IBUV+dDxAmDoRj7HRzUeoGr+MCADeoQxSIHtEUFIPmmr0u8vqQkddHUpiw53q fsimFMqGRvEusfF0MCa0qHNPuZzgkGto3L+4dIft/oHDvqfJwBy8RLMFaKPD42oIwzUH JhGWTKmVGRH0gt+e7bE2fHHoTmi4gK9fAPk1CDw5tOkGfhC1csuO7ho0juNVldb05mUR Jh4hEPgUZpipio9M5Kpxji4awLymxCRdH9tevOrcsVIup+GLj6+p9YxhK6G1sluMCTYg pDrMbTUZpFxUy2mI02MizSrFn8+1+dR6nsAvtskrAbFQxJlnKzmxGYu3AYjJk2822gC6 F2HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=d2AKYG78RJ4xjXNqYbB4hyuDMEH/r7ad/9scQZKMalI=; b=NMY1GGCjFyvOrTRwMHQIPYSPDvMQq1sW5SK3i7gJlCo4dcWVu0rPnVs2LBhg2jNIa6 OabUhEACA0L0DPlAwNK6zlVM0TlukgFnQQ6DNpWE2fn9mwVToaV5MTWGX0s9OZ7h+8dK p1zahu1AlTRLFbj0w3jYLdEy7n4PuNbZA+ca2+BvTcvGreu/aOZm7l1wviHHN/N0I2ZW QE5u6UrVW9gowkYx6ei5bWnfKeBgNmGdI4kKqNKyvfpS2+kPBHPU7ujdtEOLazA3tK1d nIebyZJJmNXDJVxolrK9M2RladoUJUdCKI99tE6waXldGodsBbpz9gZnLgrggGxOwNLG eNpw== X-Gm-Message-State: AOPr4FWtD/rRKvhR8BwSDQqW+haIgaoer1oqTNvNQ7naiejKPz4r0C2IfSTle4ollg5sOg== X-Received: by 10.28.129.6 with SMTP id c6mr8451472wmd.75.1461524319036; Sun, 24 Apr 2016 11:58:39 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id da5sm19800318wjb.25.2016.04.24.11.58.37 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2016 11:58:38 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <87k2jmzxh5.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::241 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203272 Archived-At: On 04/24/2016 09:13 PM, Michael Albinus wrote: > See the docstring of vc-state: > > "A return of nil from this function means we have no information on the > status of this file." > > I would expect this for files which are located in a directory not under > version control. None of the tests in vc-tests.el cover this case. And if buffer-file-name is outside of any version control, does your version of vc-state return nil?