From: Dmitry Gutov <dmitry@gutov.dev>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: VC registered, but ignored
Date: Fri, 1 Sep 2023 04:03:43 +0300 [thread overview]
Message-ID: <24cfce4b-25ed-b27e-05c3-4f1668ed7b34@gutov.dev> (raw)
In-Reply-To: <83pm33ck07.fsf@gnu.org>
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.
next prev parent reply other threads:[~2023-09-01 1:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-31 15:24 VC registered, but ignored Eli Zaretskii
2023-08-31 16:23 ` Dr. Arne Babenhauserheide
2023-08-31 16:49 ` Eli Zaretskii
2023-09-01 1:03 ` Dmitry Gutov [this message]
2023-09-01 6:29 ` Eli Zaretskii
2023-09-01 9:16 ` Dmitry Gutov
2023-09-01 11:33 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24cfce4b-25ed-b27e-05c3-4f1668ed7b34@gutov.dev \
--to=dmitry@gutov.dev \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.