GNU bug report logs - #16354
24.3.50; `M-o' conflict in Dired - change Omit mode to `C-x M-o'

Previous Next

Package: emacs;

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.

View this report as an mbox folder, status mbox, maintainer mbox


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):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; `M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Sun, 5 Jan 2014 11:29:51 -0800 (PST)
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):

From: Leo Liu <sdl.web <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 16354 <at> debbugs.gnu.org
Subject: Re: bug#16354: 24.3.50;
 `M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Mon, 06 Jan 2014 09:06:01 +0800
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):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 16354 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#16354: 24.3.50;
 `M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Sun, 05 Jan 2014 23:07:16 -0500
>> 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):

From: Leo Liu <sdl.web <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 16354-done <at> debbugs.gnu.org
Subject: Re: bug#16354: 24.3.50;
 `M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Mon, 06 Jan 2014 13:07:08 +0800
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):

From: Drew Adams <drew.adams <at> oracle.com>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 16354 <at> debbugs.gnu.org
Subject: RE: bug#16354: 24.3.50; `M-o' conflict in Dired - change Omit mode to
 `C-x M-o'
Date: Sun, 5 Jan 2014 23:08:45 -0800 (PST)
> 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):

From: Juri Linkov <juri <at> jurta.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 16354 <at> debbugs.gnu.org
Subject: Re: bug#16354: 24.3.50;
 `M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Mon, 06 Jan 2014 11:42:03 +0200
> 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):

From: Alan Mackenzie <acm <at> muc.de>
To: gnu-emacs-bug <at> moderators.isc.org
Subject: Re: bug#16354: 24.3.50;
 ?`M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Mon, 6 Jan 2014 10:51:43 +0000 (UTC)
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):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: gnu-emacs-bug <at> moderators.isc.org
Subject: Re: bug#16354: 24.3.50;
 ?`M-o' conflict in Dired - change Omit mode to `C-x M-o'
Date: Mon, 06 Jan 2014 13:04:42 +0100
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 10 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.