GNU bug report logs -
#16354
24.3.50; `M-o' conflict in Dired - change Omit mode to `C-x M-o'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sun, 5 Jan 2014 19:31:01 UTC
Severity: minor
Found in version 24.3.50
Done: Leo Liu <sdl.web <at> gmail.com>
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 16354 in the body.
You can then email your comments to 16354 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#16354
; Package
emacs
.
(Sun, 05 Jan 2014 19:31: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
.
(Sun, 05 Jan 2014 19:31:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
dired-x.el has bound `M-o' to `dired-omit-mode', which is a toggle,
since Time Immemorial. The facemenu commands were originally on
prefix key `M-g'.
Someone later had the bright idea to change `M-g' to prefix "go to"
commands. And so, presumably without too much reflection about Dired X,
facemenu commands were moved to prefix key `M-o'.
So now you cannot put font-lock- or face-related commands on prefix
`M-o' in Dired, if you also use Dired X (which you should, of course).
`M-o' makes much more sense as a prefix key than as a toggle key.
I propose that we change the Dired X binding of `dired-omit-mode' to
`C-x M-o'. Or to some other not-easily-repeatable key. This toggle
does not need to be a quick key to use, at all.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2014-01-01 on ODIEONE
Bzr revision: 115827 eggert <at> cs.ucla.edu-20140101192741-bi5hb4xb4kdi2zpw
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
CPPFLAGS=-Ic:/Devel/emacs/include'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16354
; Package
emacs
.
(Mon, 06 Jan 2014 01:07:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16354 <at> debbugs.gnu.org (full text, mbox):
On 2014-01-06 03:29 +0800, Drew Adams wrote:
> I propose that we change the Dired X binding of `dired-omit-mode' to
> `C-x M-o'. Or to some other not-easily-repeatable key. This toggle
> does not need to be a quick key to use, at all.
This seems like a good proposal. In general it is a bad idea to shadow a
prime global key without good reasons.
BTW, do you think C-x C-o delete-blank-lines similar to the omit mode
which delete uninteresting lines? If so may be use C-x C-o?
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16354
; Package
emacs
.
(Mon, 06 Jan 2014 04:08:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 16354 <at> debbugs.gnu.org (full text, mbox):
>> I propose that we change the Dired X binding of `dired-omit-mode' to
>> `C-x M-o'. Or to some other not-easily-repeatable key. This toggle
>> does not need to be a quick key to use, at all.
> This seems like a good proposal. In general it is a bad idea to shadow a
> prime global key without good reasons.
Indeed, I find the "conflicts with global M-o binding" to be very weak,
but the I see no reason for dired-omit-mode to have a short key-binding,
so C-x <something> is perfectly fine for it.
Stefan
Reply sent
to
Leo Liu <sdl.web <at> gmail.com>
:
You have taken responsibility.
(Mon, 06 Jan 2014 05:08:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Mon, 06 Jan 2014 05:08:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 16354-done <at> debbugs.gnu.org (full text, mbox):
Fixed in 24.4.
On 2014-01-06 12:07 +0800, Stefan Monnier wrote:
> Indeed, I find the "conflicts with global M-o binding" to be very weak,
> but the I see no reason for dired-omit-mode to have a short key-binding,
> so C-x <something> is perfectly fine for it.
OK, I rebound it to C-x M-o as suggested by Drew.
Leo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16354
; Package
emacs
.
(Mon, 06 Jan 2014 07:09:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 16354 <at> debbugs.gnu.org (full text, mbox):
> This seems like a good proposal. In general it is a bad idea to
> shadow a prime global key without good reasons.
>
> BTW, do you think C-x C-o delete-blank-lines similar to the omit
> mode which delete uninteresting lines? If so may be use C-x C-o?
That would be OK too, IMO.
[FWIW, so far I happen to use C-x C-o for `occur-by-moccur', and I
think others might too (it is suggested in the `color-moccur.el'
commentary), but this is not important.]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16354
; Package
emacs
.
(Mon, 06 Jan 2014 09:48:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 16354 <at> debbugs.gnu.org (full text, mbox):
> dired-x.el has bound `M-o' to `dired-omit-mode', which is a toggle,
> since Time Immemorial. The facemenu commands were originally on
> prefix key `M-g'.
dired-x.el solves a similar problem for the conflicting key M-g
by using the upper-case G:
(define-key dired-mode-map "\M-G" 'dired-goto-subdir)
so doing the same we could use upper-case M-O for dired-omit-mode.
Actually dired-x.el already uses the upper-case O for the related command:
(define-key dired-mode-map "*O" 'dired-mark-omitted)
But before taking M-O into use it should be tested to work in emacs -nw
without problems.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16354
; Package
emacs
.
(Mon, 06 Jan 2014 10:53:01 GMT)
Full text and
rfc822 format available.
Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> jurta.org> wrote:
>> dired-x.el has bound `M-o' to `dired-omit-mode', which is a toggle,
>> since Time Immemorial. The facemenu commands were originally on
>> prefix key `M-g'.
> dired-x.el solves a similar problem for the conflicting key M-g
> by using the upper-case G:
> (define-key dired-mode-map "\M-G" 'dired-goto-subdir)
> so doing the same we could use upper-case M-O for dired-omit-mode.
> Actually dired-x.el already uses the upper-case O for the related command:
> (define-key dired-mode-map "*O" 'dired-mark-omitted)
> But before taking M-O into use it should be tested to work in emacs -nw
> without problems.
M-O doesn't work on a Linux tty. The shift-key is silently ignored,
producing M-o.
--
Alan Mackenzie (Nuremberg, Germany).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16354
; Package
emacs
.
(Mon, 06 Jan 2014 12:06:01 GMT)
Full text and
rfc822 format available.
Message #28 received at submit <at> debbugs.gnu.org (full text, mbox):
Alan Mackenzie <acm <at> muc.de> writes:
> M-O doesn't work on a Linux tty. The shift-key is silently ignored,
> producing M-o.
You can always use ESC.
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."
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 03 Feb 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.