GNU bug report logs -
#12159
24.1.50; vc-dir: Need a way to hide unregistered files
Previous Next
Reported by: Jambunathan K <kjambunathan <at> gmail.com>
Date: Wed, 8 Aug 2012 18:16:02 UTC
Severity: wishlist
Tags: patch
Merged with 6148
Found in version 24.1.50
Fixed in version 24.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Andreas Schwab <schwab <at> linux-m68k.org> writes:
> Jambunathan K <kjambunathan <at> gmail.com> writes:
>
>> Andreas Schwab <schwab <at> linux-m68k.org> writes:
>>
>>> Jambunathan K <kjambunathan <at> gmail.com> writes:
>>>
>>>> +(defcustom vc-dir-hide-these-states '("up-to-date")
>>>> + "States hidden by `vc-dir-hide-some-states'."
>>>> + :type '(choice
>>>> + (const :tag "None")
>>>> + (set :tag "Choices"
>>>> + (string :tag "VC State" "added")
>>>
>>> Why a string? Using the symbol would be more natural.
>>
>> There is a note up in the thread, which reads:
>>
>> ,----
>> | 2. Magnus' changes assumes that states are just elisp symbols. This
>> | may not be true. In case of locked states - designated as USER in
>> | `vc-state' - the state could actually be a string.
>> `----
>
> There is nothing wrong with using a string where the state is a string.
> But if the user name happens to match the name of one of the state
> symbols it becomes ambigous.
Sure, I will name my next kid `conflict' or even better `missing'. In
the latter case, I will have hard time reporting to police if he ever
goes missing.
Here comes the modified patch.
I think I am hitting a bug with defcustom and I will open a separte
report for it. When I do, M-x customize-variable RET
vc-hide-these-states RET, I see two "up-to-date"s and "added" goes
missing.
I will let you folks handle the defcustom issue.
,----
| Operate on all settings in this buffer:
| Revert... Apply Apply and Save
|
| Hide Vc Dir Hide These States: Value Menu Choices:
| [X] VC State: up-to-date
| [ ] VC State: conflict
| [ ] VC State: edited
| [ ] VC State: ignored
| [ ] VC State: missing
| [ ] VC State: needs-merge
| [ ] VC State: needs-update
| [ ] VC State: removed
| [ ] VC State: unlocked-changes
| [ ] VC State: unregistered
| [ ] VC State: up-to-date
| State : STANDARD.
| States hidden by `vc-dir-hide-some-states'.
| Groups: Vc
`----
[bug#12159-vc-dir-hide-some-states.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
> Andreas.
This bug report was last modified 12 years and 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.