GNU bug report logs -
#14914
24.3.50; Menu item for `dired-hide-details-mode' should be `Hide/Show Details'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sat, 20 Jul 2013 00:04:02 UTC
Severity: minor
Found in version 24.3.50
Done: Stefan Kangas <stefan <at> marxist.se>
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 14914 in the body.
You can then email your comments to 14914 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#14914
; Package
emacs
.
(Sat, 20 Jul 2013 00:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 20 Jul 2013 00:04:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The menu item *toggles* the state. It should not be called `Hide
Details'.
Either it should be called `Hide/Show Details' or the name should change
dynamically between `Hide Details' and `Show Details', depending on the
current state.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-07-14 on ODIEONE
Bzr revision: 113423 lekktu <at> gmail.com-20130715004922-i67tg2ois14h3fpm
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
CFLAGS='-O0 -g3' CPPFLAGS='-Ic:/Devel/emacs/include'
LDFLAGS='-Lc:/Devel/emacs/lib''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14914
; Package
emacs
.
(Sat, 20 Jul 2013 02:36:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14914 <at> debbugs.gnu.org (full text, mbox):
On 2013-07-20 08:02 +0800, Drew Adams wrote:
> Either it should be called `Hide/Show Details' or the name should change
> dynamically between `Hide Details' and `Show Details', depending on the
> current state.
Is 'Toggle Details' acceptable?
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14914
; Package
emacs
.
(Sat, 20 Jul 2013 04:13:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14914 <at> debbugs.gnu.org (full text, mbox):
> > Either it should be called `Hide/Show Details' or the name should change
> > dynamically between `Hide Details' and `Show Details', depending on the
> > current state.
>
> Is 'Toggle Details' acceptable?
How do you toggle a detail? What does it mean?
`Toggle Hiding Details' (or `Toggle Showing Details') might be OK.
`Show/Hide Details' reflects the `Show/Hide' submenu of `Options'.
`Hide/UnHide Details' reflects item `Hide/UnHide Subdir' of the `Subdir'
menu in Dired (but UnHide is bad as written, for two reasons).
I prefer `Show/Hide Details' or `Hide/Show Details' (or `Show or Hide
Details' etc.), but the main point is that this item either shows hidden
details or hides the details if shown. It does not just hide the details.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14914
; Package
emacs
.
(Sat, 20 Jul 2013 04:17:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 14914 <at> debbugs.gnu.org (full text, mbox):
Leo Liu <sdl.web <at> gmail.com> writes:
> On 2013-07-20 08:02 +0800, Drew Adams wrote:
>> Either it should be called `Hide/Show Details' or the name should change
>> dynamically between `Hide Details' and `Show Details', depending on the
>> current state.
>
> Is 'Toggle Details' acceptable?
[✓] Show details
> Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14914
; Package
emacs
.
(Sat, 20 Jul 2013 15:48:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 14914 <at> debbugs.gnu.org (full text, mbox):
> [✓] Show details
I almost suggested that too (but with title case: `Show Details').
I probably should have mentioned it. I did not because of the
considerations below, but I'm glad you have brought it up now.
I have no objection to that, but in that case we should perhaps
do likewise for other toggles in Dired, such as `Toggle Image
Thumbnails in This Buffer' (which also happens to be a bad name,
IMO).
Another consideration is that the use of a check box for a toggle
often corresponds to an actual user option, i.e., a variable that
one can customize. And in fact, I believe, that was the original
sense of menu `Options', hence the name. There are notable
exceptions, such as `Tool-bar' on `Options' > `Show/Hide', which
do not correspond to options (and which perhaps should not be on
menu `Options'?).
Another consideration is perhaps that, so far, menu `Options',
which is a main place where we use such check boxes, seems to
be limited to global toggles, not buffer-local ones (didn't check
them all though). Likewise menu `Printing', which is another
place where we use the check boxes heavily. However, Dired menu
`Immediate' does have the buffer-specific `Toggle Image
Thumbnails in This Buffer'.
I don't know what the general policy/guideline is, if there is
one, wrt the use of check boxes. Should they be limited to
user options? Should they be limited to behavior that is global
and not buffer-specific? Dunno.
Should we perhaps have a visual convention that makes clear
whether a particular toggle (a) is global or local and (b)
corresponds to an option or not? Without that, users need to
use `C-h k' or mouseover :help to get more info about an item,
and unfortunately such info does not always answer the question
because it was written in a context where the answer was clear
enough without being explicit.
In sum, I would be OK with a `Show Details' check box on the
Dired `Immediate' menu, provided those who set the guidelines ;-)
think it fits wrt the above considerations (i.e., that it is
OK that it is for a minor mode, with no associated user option,
and that it is OK that it is buffer-local).
I agree that having a check box makes clear that the item is
a toggle. That is a decided advantage, making for quicker
locating and identifying. My only hesitation is the lack of
clarity for users wrt whether the toggle is for a customizable
variable and whether it is buffer-local or global.
Thanks again for bringing up the check-box question in this context.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14914
; Package
emacs
.
(Mon, 04 Nov 2013 17:37:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 14914 <at> debbugs.gnu.org (full text, mbox):
> Thanks. For #14914, there's no doubt for me that we should use
> a "[✓] Hide details" menu entry.
Sounds good to me (except it should be title case: `Hide Details').
> >> Also, wouldn't it make sense to try and bring hide-details
> >> "closer" to the dired-omit facilities?
> >
> > Definitely not. No relation. Completely different uses.
>
> Of course, they're different, but I assume the @ was chosen because
> it's also used for things like outline-minor-mode, i.e. for other
> features that hide parts of the buffer.
`@' was proposed by Jambunathan, not I. I have no special objection
to `@' instead of `(', however.
But I'm not convinced that it is good to confuse hiding stuff in
Dired with outline-minor-mode hiding.
> So, maybe @ should be a prefix key for "hiding stuff", in which we
> can place key bindings for "omit" and for "details".
I don't object to that. As long as the two, hiding columns and
hiding rows, are kept clear and separate, no problem.
But there is really more to it than that. There are at least these
hide/show commands in Dired:
$ (`dired-hide-subdir')
M-$ (`dired-hide-all')
( (`dired-hide-details-mode')
M-o (`dired-omit-mode')
It is good that each of these is quick, but yes, we could put them
all on a prefix key. In that case, `M-o', `M-$', and `$' are also
good candidates for the prefix key.
We could have, for example:
M-o s (`dired-hide-subdir') - `s' for subdi
M-o S (`dired-hide-all') - `S' for subdirs
M-o c (`dired-hide-details-mode') - `c' for columns
M-o r (`dired-omit-mode') - `r' for rows
No Shift key needed for them, except for the one that boosts `s'.
FWIW, Dired+ adds these commands, which could also be added to the
list, perhaps with these bindings:
M-o m (`diredp-omit-marked') - `m' for marked
M-o u (`diredp-omit-unmarked') - `u' for unmarked
Here are their (trivial) definitions:
(defun diredp-omit-marked ()
"Omit lines of marked files. Return the number of lines omitted."
(interactive)
(let ((old-modified-p (buffer-modified-p))
count)
(when (interactive-p) (message "Omitting marked lines..."))
(setq count (dired-do-kill-lines nil "Omitted %d line%s."))
(set-buffer-modified-p old-modified-p) ; So no `%*' appear in mode-line.
count))
(defun diredp-omit-unmarked ()
"Omit lines of unmarked files. Return the number of lines omitted."
(interactive)
(let ((old-modified-p (buffer-modified-p))
count)
(dired-toggle-marks)
(message "Omitting unmarked lines...")
(setq count (diredp-omit-marked))
(dired-toggle-marks) ; Marks all except `.', `..'
(set-buffer-modified-p old-modified-p) ; So no `%*' appear in mode-line.
count))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14914
; Package
emacs
.
(Wed, 06 Nov 2013 07:32:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 14914 <at> debbugs.gnu.org (full text, mbox):
>> Of course, they're different, but I assume the @ was chosen because
>> it's also used for things like outline-minor-mode, i.e. for other
>> features that hide parts of the buffer.
>
> `@' was proposed by Jambunathan, not I. I have no special objection
> to `@' instead of `(', however.
I do object to '('.
Partly because I am tempted to think ')' will undo whatever it's other
pair did.
> But there is really more to it than that. There are at least these
> hide/show commands in Dired:
>
> $ (`dired-hide-subdir')
> M-$ (`dired-hide-all')
> ( (`dired-hide-details-mode')
> M-o (`dired-omit-mode')
>
> It is good that each of these is quick, but yes, we could put them
> all on a prefix key. In that case, `M-o', `M-$', and `$' are also
> good candidates for the prefix key.
$ is indeed better than @. Remember `$' is used in conjunction with
selective display.
> We could have, for example:
>
> M-o s (`dired-hide-subdir') - `s' for subdi
> M-o S (`dired-hide-all') - `S' for subdirs
> M-o c (`dired-hide-details-mode') - `c' for columns
> M-o r (`dired-omit-mode') - `r' for rows
I object to M-o. The verb `Omit' is generally not used. It has bad
connotations. (My mom will spank me if I omitted something)
Let's omit omit and stick with show or hide.
Reply sent
to
Stefan Kangas <stefan <at> marxist.se>
:
You have taken responsibility.
(Wed, 28 Oct 2020 08:42:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Wed, 28 Oct 2020 08:42:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 14914-done <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
>> Thanks. For #14914, there's no doubt for me that we should use
>> a "[✓] Hide details" menu entry.
>
> Sounds good to me (except it should be title case: `Hide Details').
This is now the case on current master, so I'm closing this bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 25 Nov 2020 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 146 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.