From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: VC registered, but ignored Date: Thu, 31 Aug 2023 19:49:16 +0300 Message-ID: <83jztbcg37.fsf@gnu.org> References: <83pm33ck07.fsf@gnu.org> <87o7indvmt.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7981"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, emacs-devel@gnu.org To: "Dr. Arne Babenhauserheide" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 31 18:50:30 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qbksI-0001rM-IN for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Aug 2023 18:50:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbkrU-0004nq-74; Thu, 31 Aug 2023 12:49:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbkrP-0004ly-Jv for emacs-devel@gnu.org; Thu, 31 Aug 2023 12:49:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbkrP-0001gb-7t; Thu, 31 Aug 2023 12:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+tzDnANO9MLKsVUd56royHbZ7GZCwNXCvP9s2o8R1ZY=; b=SQHBJy9ZAoxWZFUXJLc4 DMojzaBYLoKTsJBnGlCWQSH8NIv1xpmhyLWFosXZA0d3Xx3DAfEbGTXwq+OwsVOABdIQO0Dk8XTvh pYhHzN29ZoJD5qGQoYLeVAeZBsAtG44OAHGKJjjPwdKZ54Akf9j5rpCwNDf33XRkk+4XmJrl4l2Zm mYDp66eSGAUV9scbkc/AMzc+yjQbb/NOcGH0iI7CN/EERIJaJ4/IpIRD9FoED8/WzoHx2wbfkKLme mJlkarnMUUhwdINZ6x6AO+K4OErAJXxjUTv3VehlsD2i/HbTPh6LDGxsPIgjOS/6ta3MO3iwKDJMl UtipXRK0WETJOg==; In-Reply-To: <87o7indvmt.fsf@web.de> (arne_bab@web.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309683 Archived-At: > From: "Dr. Arne Babenhauserheide" > Cc: Dmitry Gutov , emacs-devel@gnu.org > Date: Thu, 31 Aug 2023 18:23:51 +0200 > > This looks good, but I’m not sure about the !: > > > + ((eq state 'ignored) > > + (setq state-echo "File tracked by the VC system, but ignored") > > + (setq face 'vc-ignored-state) > > + (concat backend-name "!" rev)) > > I know ! as meaning "missing file". How about "i"? (small ignored) > > ! is already used: > > ((eq state 'conflict) > (setq state-echo "File contains conflicts after the last merge") > (setq face 'vc-conflict-state) > (concat backend-name "!" rev)) > ((eq state 'removed) > (setq state-echo "File removed from the VC system") > (setq face 'vc-removed-state) > (concat backend-name "!" rev)) My interpretation of the two cases which use "!" is that these states are unusual and want to attract attention. But then so is the "registered, but ignored" situation: normally, ignored files are not registered, and so will never have the vc-mode part on the mode line. Which is why I used "!" for it as well. I'm okay with any other character, but I think it has to be a punctuation character, otherwise it might be interpreted as part of the backend's name.