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: Tue, 19 Apr 2016 00:11:23 +0300 Message-ID: <515b3451-820d-ad50-8c98-d0330a0f4266@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> 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 1461013913 19734 80.91.229.3 (18 Apr 2016 21:11:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2016 21:11:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 18 23:11:49 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 1asGST-00010l-1n for ged-emacs-devel@m.gmane.org; Mon, 18 Apr 2016 23:11:49 +0200 Original-Received: from localhost ([::1]:45472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asGSS-0001yp-H3 for ged-emacs-devel@m.gmane.org; Mon, 18 Apr 2016 17:11:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asGS9-0001wG-GE for emacs-devel@gnu.org; Mon, 18 Apr 2016 17:11:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asGS6-0001nc-Ah for emacs-devel@gnu.org; Mon, 18 Apr 2016 17:11:29 -0400 Original-Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asGS6-0001nX-3X for emacs-devel@gnu.org; Mon, 18 Apr 2016 17:11:26 -0400 Original-Received: by mail-wm0-x244.google.com with SMTP id l6so27850917wml.3 for ; Mon, 18 Apr 2016 14:11:26 -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=9VX+s9brWeVlo2bmvYnRsd1t9yt+AU90113meDeUD0o=; b=eW8204++sWOprEn0KqnodqRS2tq8+/6LJLD83VEYEg77EvKrtswkYH2kuaFFenvw3h 0KzEZfnPceFYaV9sTVWUtUI2GpHUCkWoQv0Kw2NIxezHavnaroxq5BgaIyrx0BMsCSQ6 hTqelf4wNGBpk1T5xiMglLs6fCQrxruz8w8W6q7E2hezGSMqYtKmDONtb6YEB5KBV+hs YwFZi58WjUb4vBVkEaNM6xpdVlymIP9F5wIoMeObmZ0EgeCO5TTOwG4jGb6NplO8+GZp ip7C3fhDrH6kBFEiNcWzT2//uUw1TcufTUkjzxgUSIvS19x9r8OwUhQjGdMiX6nx71u5 IvQQ== 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=9VX+s9brWeVlo2bmvYnRsd1t9yt+AU90113meDeUD0o=; b=Dj4WuIB3O6O21GUJNRj898bk9l71RPNruNC/03fAhpgEnJYtgM022VxIgpwV4mBX4X BviLILgYcZSN3su9ie++1nUfGRNc4WhOeK7Hkfo1vXoUKylZlnTtmCyT1q0O/u1ktBBK JA11p3wpEoLgcl+7iJJPIEt8PDym64u5s4kDtPW6fI+RH9PNnyNbPXvHSkTtD49m+gaz 6efr6ZP3OYrMs2jLSSB92B+gSDbs6ELrz1tTv+de2uXI4nkM36s3aJeR/v9cRlPv5WY4 /n2xmQnurhWboWfTcAA8RHKzoicpUdkKrjRgEyMqDLQAqd8Ftrl5dlF0AcLreVwUzZKd XPAA== X-Gm-Message-State: AOPr4FUb+1mTSmZsvrqAXTOdKu9ZOuYnfDhHeeF8olN9UH/Q9pxw/89WO8XG0/irtMlKmA== X-Received: by 10.194.172.6 with SMTP id ay6mr20212551wjc.46.1461013885551; Mon, 18 Apr 2016 14:11:25 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id m6sm65781674wje.21.2016.04.18.14.11.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2016 14:11:24 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <87bn57otja.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::244 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:203074 Archived-At: Hi Michael, On 04/18/2016 05:55 PM, Michael Albinus wrote: > I've checked a little bit more. If we use nil instead of unregistered as > result from vc-state, we cannot use file properties for this function > anymore. nil is meant as "no property set". This would be a regression. Regression how? We already do exactly that: return `nil' in vc-state to mean "unregistered or unknown", and have been doing this for a while. This is not a significant problem, for two reasons: - The "unregistered" status is tracked by a different property: unregistered files have no backend associated with them. vc-registered stores `none' as the value of the file's backend in this case. So we don't have vc-git-registered called again and again, even for unregistered files. - If the above scheme is deemed insufficient, we could use the same approach for the `vc-state' property.