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 15:21:52 +0300 Message-ID: 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> 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 1461500529 22718 80.91.229.3 (24 Apr 2016 12:22:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Apr 2016 12:22: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 14:22:04 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 1auJ34-0000Lm-Uj for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2016 14:22:03 +0200 Original-Received: from localhost ([::1]:55188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJ33-0002ko-TM for ged-emacs-devel@m.gmane.org; Sun, 24 Apr 2016 08:22:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJ30-0002jM-R1 for emacs-devel@gnu.org; Sun, 24 Apr 2016 08:21:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auJ2x-0005Bb-Lm for emacs-devel@gnu.org; Sun, 24 Apr 2016 08:21:58 -0400 Original-Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:32800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auJ2x-0005B9-E4 for emacs-devel@gnu.org; Sun, 24 Apr 2016 08:21:55 -0400 Original-Received: by mail-wm0-x241.google.com with SMTP id r12so15424433wme.0 for ; Sun, 24 Apr 2016 05:21:55 -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=UlJN+n1xf84mThFw6Q5hTGlV7SO27iXu0E068tptiIk=; b=gHCBbEWCcB4E4MQ81HhKbz7Dce5JkTQvo6J3xOPL1h1YEtTURQP6UEHq+6MTTzx57W 3IO9HPIH/N0wFjrcYlG8Sh8PByO7qEvr5EqaOt4OmbJ2lrXDCZbXTkPsQLgdolKhkKNx IpkR8vkKcGpnr5HHneFIvBeWQHjbMZ6mI+nbPw1O8LGxj1SFpV2TcidirBknZDuFPBSb Awjismg+d5OjpzMj63j8nF1CLNOzYLYt5O2dlFas8lxLtX4dHEPWXPb688JHWrfOJvjA 5m9JBFHBgegrPWx+nbr0IakS7xjTZic/Vm84p+rg8GO5csLUJCCzdFkWIx/q5nk4rA5f O2NQ== 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=UlJN+n1xf84mThFw6Q5hTGlV7SO27iXu0E068tptiIk=; b=Fziwbzloc72Cv/JzQgQhd3sI7f4vyrAqiXAvWX24dzfg3bRMiKtyp0Au4ViVKRZPxw OIDQ9F25IpgeakUdzunu7Fi/9d09p/VHLibSxBLXwBRvc+38fXHyGKF+uQ3whQc0JXha fe/EWMcdLo4XCfhUNZnp6Nuec0CtLAK2qZ89XwyAgDa9gqJDjrHET7e+gVX17txbaeVc ms0HGTuuyv1Le7Pw+AgKfw9x757JdV6EtDciyIrPUXm6URvq4/g89Sh4tYyOgKJfkYaA jXuAVjQhDpyNVMM7DPps5IvKdpT7BmAEHIA9HOgNLsF09m4GU1/7VmXBEQ0cyp+SfY1u b0VA== X-Gm-Message-State: AOPr4FWZFeaP1/D6z5kapIvBYZ0qkSLm9q7Mj7wxNlBYxkym6yjBZ2vXKkPnx6Uut+b4tw== X-Received: by 10.194.116.9 with SMTP id js9mr33950156wjb.112.1461500514834; Sun, 24 Apr 2016 05:21:54 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id c85sm17821203wmd.0.2016.04.24.05.21.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2016 05:21:53 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <87vb37ury1.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:203244 Archived-At: On 04/24/2016 03:11 PM, Michael Albinus wrote: >> That could be fixed with using `none' instead, like `vc-backend' >> does. Which I've mentioned already. > > That's the direction I have thought also. But in `vc-state' there is the > following comment: The comment is about the API and which value to return, not how the value is cached. My sentence, quoted above, was about how to cache it. > ;; Note: in Emacs 22 and older, return of nil meant the file was > ;; unregistered. This is potentially a source of > ;; backward-compatibility bugs. ...and I have no idea how to interpret this comment. In Emacs 24, *and* in the upcoming 25.1, nil is *still* returned for unregistered files. > Since I don't know why nil has been replaced by `unregistered', it might > be a problem to use nil again as indication of unregistered files. The salient question here is *in what way* has nil been replaced by `unregistered'. > And > we shouldn't change the interface wantonly, I believe. The actual behavior will not change. This is what I'm proposing: to put the current behavior of (vc-state FILE) into spec.