From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: VC registered, but ignored Date: Fri, 1 Sep 2023 04:03:43 +0300 Message-ID: <24cfce4b-25ed-b27e-05c3-4f1668ed7b34@gutov.dev> References: <83pm33ck07.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9568"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 01 03:04:25 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 1qbsaG-0002Ew-JD for ged-emacs-devel@m.gmane-mx.org; Fri, 01 Sep 2023 03:04:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbsZl-00005Z-AI; Thu, 31 Aug 2023 21:03:53 -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 1qbsZj-00005N-SD for emacs-devel@gnu.org; Thu, 31 Aug 2023 21:03:51 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qbsZh-0001qp-5X; Thu, 31 Aug 2023 21:03:51 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id AFBFD320039A; Thu, 31 Aug 2023 21:03:46 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 31 Aug 2023 21:03:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1693530226; x=1693616626; bh=1IsIHbupSUxejZtJ5O4WdCQCba1fwiyPt2e TOH3dZI4=; b=Es9dq5PYb0WMwDgJx+LGEgcOcpIN3Bm4dnCpvY7/ovtxbiDoPjc BmES0n3ZbtdTBqa4ebJgtHdVfJYFj5eic1rsLleGob4KF3uOBVWwkw0QT7VW75p8 MrKjvqBY4/KKeeBd61/jebaf1zNFaZ5pCpX0Y0m+XeFs2PR25dd700+/screMq6z TgOcpKi4r8GIb3eeg/1YscUbnq4rL7zAdFKtf6HiiAEubkrc/nLKBpwu3taDDAqY fLJ6lPNpXsgIoUqJZL3xVNHuy8Xc7sSVgqXi5jCxU0l8wRZs37NZHlc2OgvZ1L1z 8uGzw8ve2EI7YzSQ7GbaE6uoPIi1vMCXVKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1693530226; x=1693616626; bh=1IsIHbupSUxejZtJ5O4WdCQCba1fwiyPt2e TOH3dZI4=; b=GyGmFZuQUtNBnr+OA0y6zBKBSLZf/X6BeRcwQke9FTAsV4eEFiO dT/mD3jXEknspJ3zUABAuKfRoF9Iz1jmwdNUvCvMaoqX22s4QKVFr10kJgCBtsqp BeUvlKpRE1R1hRZ3SlPLTRoC3C+C07a8Qb/b/BQqcn+BAmBDltnw0kZlTx3gDb9T cYCldw43XkUzgOVl+koO7QMxyz+0wJNzo5v1/Qu7MAgWPqUnCcktM/diJa5liv6r bn+0wM2KnWzgySK3WNE/BWs07E2V9+qD6eCiTHjpHeAesDOw76QAQqTsm+UgIQGT iEAI0RhgCfXkkXKKCh1fHzrKm9XJXqHO8pA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeguddggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepjefhhedvvdektdetveekfedtfeehgfdufeevudegteeiteeuteeuvdfffeev tdffnecuffhomhgrihhnpegvlhdrhihouhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 31 Aug 2023 21:03:45 -0400 (EDT) Content-Language: en-US In-Reply-To: <83pm33ck07.fsf@gnu.org> Received-SPF: pass client-ip=64.147.123.21; envelope-from=dmitry@gutov.dev; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -62 X-Spam_score: -6.3 X-Spam_bar: ------ X-Spam_report: (-6.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.478, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:309706 Archived-At: On 31/08/2023 18:24, Eli Zaretskii wrote: > In a repository where *.txt files are ignored, I added to VC a file > with the .txt extension, and was surprised to see the ':' indicator on > the mode line although the file was up-to-date. Moreover, the tooltip > said the file was "locally modified". That had me puzzled for a few > minutes, until I saw the code in vc-hooks.el. You added it with 'C-x v v'? We have a problem of sorts, or a break in the abstration, where (vc-state buffer-file-name) would return nil instead of 'ignored. So the problem is your annotation won't show up if you just open an ignored file (for Git backend, at least). Is that okay for your purposes? As for which character to use, maybe a period? Although that depends on what you want to bring attention to: usually people are happy to keep ignored files ignored.