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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12159 in the body.
You can then email your comments to 12159 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Wed, 08 Aug 2012 18:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jambunathan K <kjambunathan <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 08 Aug 2012 18:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I have a tendency to accumulate unregistered files in my vc-dir work
area before I do away with all of them with "git clean -d -f".
It will be convenient if the existing `vc-dir-hide-up-to-date' (and the
"x" binding) is extended so that files in arbitrary state - including
unregistered - could be hidden.
I have posted my patch to emacs-devel. See following thread:
http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00277.html
With my patch, I can accomplish what I want with
(custom-set-variables
'(vc-dir-hide-these-states (quote ("unregistered" "up-to-date"))))
Feel free to close this patch once the above patch is suitably dealt
with.
In GNU Emacs 24.1.50.22 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
of 2012-08-08 on debian-6.05
Bzr revision: 109513 kjambunathan <at> gmail.com-20120808150232-cvekujrpotm9qlwa
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
value of $LANG: en_IN
locale-coding-system: iso-latin-1-unix
default enable-multibyte-characters: t
Forcibly Merged 6148 12159.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 08 Aug 2012 18:33:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Wed, 08 Aug 2012 18:36:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 12159 <at> debbugs.gnu.org (full text, mbox):
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6148
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Wed, 08 Aug 2012 19:01:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6148
Quick comments:
1. My patch could make use of completing-read-multiple. Currently it
uses completing-read. So one has to do multiple "C-u x"s.
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Thu, 09 Aug 2012 02:03:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 12159 <at> debbugs.gnu.org (full text, mbox):
> 1. My patch could make use of completing-read-multiple. Currently it
> uses completing-read. So one has to do multiple "C-u x"s.
Maybe a better option is to just have "C-u x" hide all files in the same
state as the file-at-point. So you still need several "C-u x"s but you
don't need to enter the states, you can just point to them.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sat, 11 Aug 2012 17:50:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> 1. My patch could make use of completing-read-multiple. Currently it
>> uses completing-read. So one has to do multiple "C-u x"s.
>
> Maybe a better option is to just have "C-u x" hide all files in the same
> state as the file-at-point. So you still need several "C-u x"s but you
> don't need to enter the states, you can just point to them.
Currently "x" acts buffer-wide.
Your suggestion is to hide the files that are in the same state as the
file at point.
If there are marked files, then potentially a super-set of marked files
could get hidden. This "superset" behaviour will surprise the user -
"Why does even un-marked files get hidden?"
I am little bit hesitant to re-work the patch.
> Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sat, 11 Aug 2012 22:50:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 12159 <at> debbugs.gnu.org (full text, mbox):
> If there are marked files, then potentially a super-set of marked files
> could get hidden. This "superset" behaviour will surprise the user -
> "Why does even un-marked files get hidden?"
I don't see why it should pay attention to the marks.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 02:00:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 12159 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> If there are marked files, then potentially a super-set of marked files
>> could get hidden. This "superset" behaviour will surprise the user -
>> "Why does even un-marked files get hidden?"
>
> I don't see why it should pay attention to the marks.
I am attaching the modified patch.
[vc-dir-hide-some-states.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 07:46:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 12159 <at> debbugs.gnu.org (full text, mbox):
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.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 10:07:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 12159 <at> debbugs.gnu.org (full text, mbox):
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.
`----
I have gone by what I could make out from the dav backend.
Btw, does it make a big difference?
> Andreas.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 10:12:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 12159 <at> debbugs.gnu.org (full text, mbox):
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.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 11:13:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 12159 <at> debbugs.gnu.org (full text, mbox):
[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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 14:16:01 GMT)
Full text and
rfc822 format available.
Message #40 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Jambunathan K <kjambunathan <at> gmail.com> writes:
> Sure, I will name my next kid `conflict' or even better `missing'.
<http://xkcd.com/327/>
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 14:22:01 GMT)
Full text and
rfc822 format available.
Message #43 received at 12159 <at> debbugs.gnu.org (full text, mbox):
> + * vc/vc-dir.el (vc-dir-hide-these-states): New custom variable.
Don't bother. Just always default to up-to-date.
> +(defun vc-dir-hide-some-states (&optional states)
Make it `state' and not a list.
> + (interactive
> + ;; Interactive use.
Redundant comment.
> + ;; Non-interactive use.
> + (unless (called-interactively-p 'any)
> + (setq states (or states vc-dir-hide-these-states)))
The test is wrong (it prevents non-interactive use where you specify
the state explicitly).
The above should simply be (unless state (setq state 'up-to-date)).
> +(defun vc-dir-hide-up-to-date ()
> + "Hide up-to-date items from display."
> + (interactive)
> + (vc-dir-hide-some-states '("up-to-date")))
Why bother?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 14:32:01 GMT)
Full text and
rfc822 format available.
Message #46 received at 12159 <at> debbugs.gnu.org (full text, mbox):
I am not working on this patch any more.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 19:20:02 GMT)
Full text and
rfc822 format available.
Message #49 received at 12159 <at> debbugs.gnu.org (full text, mbox):
I wish reviewers provide feedback which is comprehensive right from the
word go. Let me explain ...
When I submitted my patch it was complete i.e., I did not present it
hunk-by-hunk. I re-worked the patch based on feedback and I have
demonstrated some seriousness in making the patch acceptable.
Unfortunately, the review process here seems to have gone by "hunk by
hunk" mode. A small note here, a small note there. For something as
simple as this patch, why should we have 100 exchanges?
I can't care less if you call my patch a crap or hold an opinion that I
should never enter a programmer's territory. It is not what I am
talking about.
Reviewers have infinite time to review the patch. Let them collect
their notes and give a comprehensive list of what they think is
acceptable to them.
I hope I am not placing an un-reasonable demand.
We are talking of an implicit social contract that reviewers and patch
submitters should adhere to. Unfortunately, it is only the patch
submitters end of the contract that gets much emphasis.
Jambunathan K.
>> + * vc/vc-dir.el (vc-dir-hide-these-states): New custom variable.
>
> Don't bother. Just always default to up-to-date.
>
>> +(defun vc-dir-hide-some-states (&optional states)
>
> Make it `state' and not a list.
>
>> + (interactive
>> + ;; Interactive use.
>
> Redundant comment.
>
>> + ;; Non-interactive use.
>> + (unless (called-interactively-p 'any)
>> + (setq states (or states vc-dir-hide-these-states)))
>
> The test is wrong (it prevents non-interactive use where you specify
> the state explicitly).
> The above should simply be (unless state (setq state 'up-to-date)).
>
>> +(defun vc-dir-hide-up-to-date ()
>> + "Hide up-to-date items from display."
>> + (interactive)
>> + (vc-dir-hide-some-states '("up-to-date")))
>
> Why bother?
>
>
> Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 19:30:02 GMT)
Full text and
rfc822 format available.
Message #52 received at 12159 <at> debbugs.gnu.org (full text, mbox):
> From: Jambunathan K <kjambunathan <at> gmail.com>
> Date: Mon, 13 Aug 2012 00:41:00 +0530
> Cc: 12159 <at> debbugs.gnu.org
>
> I wish reviewers provide feedback which is comprehensive right from the
> word go. Let me explain ...
>
> When I submitted my patch it was complete i.e., I did not present it
> hunk-by-hunk. I re-worked the patch based on feedback and I have
> demonstrated some seriousness in making the patch acceptable.
>
> Unfortunately, the review process here seems to have gone by "hunk by
> hunk" mode. A small note here, a small note there. For something as
> simple as this patch, why should we have 100 exchanges?
>
> I can't care less if you call my patch a crap or hold an opinion that I
> should never enter a programmer's territory. It is not what I am
> talking about.
>
> Reviewers have infinite time to review the patch. Let them collect
> their notes and give a comprehensive list of what they think is
> acceptable to them.
>
> I hope I am not placing an un-reasonable demand.
>
> We are talking of an implicit social contract that reviewers and patch
> submitters should adhere to. Unfortunately, it is only the patch
> submitters end of the contract that gets much emphasis.
I'm sorry you feel this way. However, after reading the entire
discussion, I see nothing but a reasonable process. Let me explain.
Your original submission first got a general comment from Stefan
suggesting a different approach. When you reworked the patch
according to Stefan's suggestions, you got one comment from Andreas
(with whom you exchanged a couple of messages regarding his comment),
and several specific comments from Stefan. It is entirely reasonable
that two different people comment on different portions of the patch.
Sorry, but I see no "hunk by hunk" here.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 19:50:02 GMT)
Full text and
rfc822 format available.
Message #55 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Jambunathan K <kjambunathan <at> gmail.com>
>> Date: Mon, 13 Aug 2012 00:41:00 +0530
>> Cc: 12159 <at> debbugs.gnu.org
>>
>> I wish reviewers provide feedback which is comprehensive right from the
>> word go. Let me explain ...
>>
>> When I submitted my patch it was complete i.e., I did not present it
>> hunk-by-hunk. I re-worked the patch based on feedback and I have
>> demonstrated some seriousness in making the patch acceptable.
>>
>> Unfortunately, the review process here seems to have gone by "hunk by
>> hunk" mode. A small note here, a small note there. For something as
>> simple as this patch, why should we have 100 exchanges?
>>
>> I can't care less if you call my patch a crap or hold an opinion that I
>> should never enter a programmer's territory. It is not what I am
>> talking about.
>>
>> Reviewers have infinite time to review the patch. Let them collect
>> their notes and give a comprehensive list of what they think is
>> acceptable to them.
>>
>> I hope I am not placing an un-reasonable demand.
>>
>> We are talking of an implicit social contract that reviewers and patch
>> submitters should adhere to. Unfortunately, it is only the patch
>> submitters end of the contract that gets much emphasis.
>
> I'm sorry you feel this way. However, after reading the entire
> discussion, I see nothing but a reasonable process. Let me explain.
I really feel frustrated.
More efforts have gone in the patch than what the patch actually shows.
I switched from Windows XP to Debian. I have downloaded 3 ISOs. I had
to get my 3G-Modem working. I have to learn Bazaar and put up with the
"stream of consciousness" style that the two articles in Emacswiki
adopts. (I remember my troubles making even limited progress with
Ulysess, Portrait of artist as an young man or the Sound and Fury.)
,----
| http://www.emacswiki.org/emacs/BzrForEmacsDevs
| http://www.emacswiki.org/emacs/BzrForEmacsCasualDevs
`----
More importantly, the persistent merge conflicts with the Changelog that
I created. (I have grown wiser now.)
> Your original submission first got a general comment from Stefan
> suggesting a different approach.
Considering that I have submitted a patch, "general comment" could have
been avoided in first place.
> When you reworked the patch according to Stefan's suggestions, you got
> one comment from Andreas (with whom you exchanged a couple of messages
> regarding his comment), and several specific comments from Stefan. It
> is entirely reasonable that two different people comment on different
> portions of the patch.
> Sorry, but I see no "hunk by hunk" here.
Ah! programmers. I am trying to communicate how I feel. Don't apply
logic in human affairs.
Let me offer a branch of olive:
Have I heard what all I have to hear on this patch. If yes, I will make
one more attempt at re-submitting it.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Sun, 12 Aug 2012 22:45:01 GMT)
Full text and
rfc822 format available.
Message #58 received at 12159 <at> debbugs.gnu.org (full text, mbox):
I'm really sorry you feel so frustrated.
All the process (from my point of view) is trying to get the patch to be
as simple and clean as it can be. First by changing the actual
behavior, then by getting the details of the code right (hence my last
hunk-by-hunk comments).
This last message should have admittedly started with encouraging
words rather than dryly jumping into the nitpicking without even warning
that these are nitpicks.
Hopefully the end result should be a patch of barely 10 lines including
context, so while you may find it frustrating to go through this ordeal
for such a tiny change, I see it as a great success to bring down the
original request to such a simple change.
> Reviewers have infinite time to review the patch.
I don't know of any reviewer with infinite time, but if you find one,
please send him up here, we'd love to have one of those.
Stefan
>>>>> "Jambunathan" == Jambunathan K <kjambunathan <at> gmail.com> writes:
> I wish reviewers provide feedback which is comprehensive right from the
> word go. Let me explain ...
> When I submitted my patch it was complete i.e., I did not present it
> hunk-by-hunk. I re-worked the patch based on feedback and I have
> demonstrated some seriousness in making the patch acceptable.
> Unfortunately, the review process here seems to have gone by "hunk by
> hunk" mode. A small note here, a small note there. For something as
> simple as this patch, why should we have 100 exchanges?
> I can't care less if you call my patch a crap or hold an opinion that I
> should never enter a programmer's territory. It is not what I am
> talking about.
> Reviewers have infinite time to review the patch. Let them collect
> their notes and give a comprehensive list of what they think is
> acceptable to them.
> I hope I am not placing an un-reasonable demand.
> We are talking of an implicit social contract that reviewers and patch
> submitters should adhere to. Unfortunately, it is only the patch
> submitters end of the contract that gets much emphasis.
> Jambunathan K.
>>> + * vc/vc-dir.el (vc-dir-hide-these-states): New custom variable.
>>
>> Don't bother. Just always default to up-to-date.
>>
>>> +(defun vc-dir-hide-some-states (&optional states)
>>
>> Make it `state' and not a list.
>>
>>> + (interactive
>>> + ;; Interactive use.
>>
>> Redundant comment.
>>
>>> + ;; Non-interactive use.
>>> + (unless (called-interactively-p 'any)
>>> + (setq states (or states vc-dir-hide-these-states)))
>>
>> The test is wrong (it prevents non-interactive use where you specify
>> the state explicitly).
>> The above should simply be (unless state (setq state 'up-to-date)).
>>
>>> +(defun vc-dir-hide-up-to-date ()
>>> + "Hide up-to-date items from display."
>>> + (interactive)
>>> + (vc-dir-hide-some-states '("up-to-date")))
>>
>> Why bother?
>>
>>
>> Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Mon, 13 Aug 2012 14:30:02 GMT)
Full text and
rfc822 format available.
Message #61 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Jambunathan K <kjambunathan <at> gmail.com> writes:
> (I remember my troubles making even limited progress with
> Ulysess, Portrait of artist as an young man or the Sound and Fury.)
Parsing these great novels is like fixing dependancies in a messy
library: you constantly need to zoom in and out, switch from the local
evaluation of the meaning to the global interpretation context, try to
synchronize your flow of consciousness to the narrative pace, while
enjoying the whole experience.
Perhaps the emacswiki style is just training for more sweaty days :)
--
Bastien
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Mon, 13 Aug 2012 17:55:02 GMT)
Full text and
rfc822 format available.
Message #64 received at 12159 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
FWIW, I am attaching two patches. If you want any changes please do it
yourself.
patch-1 :: There is only one command 'x' - which hides state at point.
patch-2 :: `x' hides up-to-date and `C-u x' hides state at point.
Personally, I will go with patch 1. It is simpler. No prefix key is
used.
Btw, reviewer who takes infinite time to review could either be a
perfectionist or a procrastinator :-).
[bug#12159-approach-1.patch (text/x-diff, attachment)]
[bug#12159-approach-2.patch (text/x-diff, attachment)]
[Message part 4 (text/plain, inline)]
>> + * vc/vc-dir.el (vc-dir-hide-these-states): New custom variable.
>
> Don't bother. Just always default to up-to-date.
>
>> +(defun vc-dir-hide-some-states (&optional states)
>
> Make it `state' and not a list.
>
>> + (interactive
>> + ;; Interactive use.
>
> Redundant comment.
>
>> + ;; Non-interactive use.
>> + (unless (called-interactively-p 'any)
>> + (setq states (or states vc-dir-hide-these-states)))
>
> The test is wrong (it prevents non-interactive use where you specify
> the state explicitly).
> The above should simply be (unless state (setq state 'up-to-date)).
>
>> +(defun vc-dir-hide-up-to-date ()
>> + "Hide up-to-date items from display."
>> + (interactive)
>> + (vc-dir-hide-some-states '("up-to-date")))
>
> Why bother?
>
>
> Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Mon, 13 Aug 2012 21:44:01 GMT)
Full text and
rfc822 format available.
Message #67 received at 12159 <at> debbugs.gnu.org (full text, mbox):
> patch-1 :: There is only one command 'x' - which hides state at point.
> patch-2 :: `x' hides up-to-date and `C-u x' hides state at point.
Thanks.
> Personally, I will go with patch 1. It is simpler. No prefix key is
> used.
I can agree that patch 1 is simpler and might be preferable, but given
the pre-existence of `x', I'd rather preserve its behavior.
Furthermore, I do use `x' fairly often and usually without paying much
attention to where I am.
So, I installed patch 2.
> Btw, reviewer who takes infinite time to review could either be a
> perfectionist or a procrastinator :-).
Indeed, from the submitter's point of view, they're indistinguishable.
Usually, if I'm the reviewer and the review isn't coming back quickly
... well let's just say it's not because I'm a perfectionist.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Mon, 13 Aug 2012 22:18:02 GMT)
Full text and
rfc822 format available.
Message #70 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:
> ... well let's just say it's not because I'm a perfectionist.
Hopefully enough, even perfect procrastinators can get
some stuff done:
http://structuredprocrastination.com
--
Bastien
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12159
; Package
emacs
.
(Tue, 14 Aug 2012 04:37:02 GMT)
Full text and
rfc822 format available.
Message #73 received at 12159 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6148
Please mark both these bugs as fixed in bzr builds.
bug marked as fixed in version 24.3, send any further explanations to
6148 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 14 Aug 2012 06:50:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 11 Sep 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.