GNU bug report logs - #41129
outline-mode: New keybindings for demote/promote/move-subtree

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Thu, 7 May 2020 20:50:02 UTC

Severity: wishlist

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 41129 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Thu, 28 Jan 2021 09:07:30 -0600
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>>> (define-key outline-minor-mode-map (kbd "M-<left>") 'outline-promote)
>>> (define-key outline-minor-mode-map (kbd "M-<right>") 'outline-demote)
>>
>> `M-<right>' (etc) are already bound to cursor movement commands by
>> default, so this would shadow these bindings in outline-minor-mode?  I
>> think that would be inconvenient for many people.

Yes, it is a real problem.  But since this is context dependent, I find
that in practice I am rarely surprised by this.  YMMV.

>> I'm not sure M-<right> (etc) are obvious bindings for outline handling
>> even if that weren't the case.  Anybody got any opinions here?
>
> That is difficult question. Because people coming from org background
> will find it difficult if ‘M-<right>’ and ‘M-<left>’ don’t work as
> expected by them.

Right, this is the reason for suggesting this in the first place.

FWIW, I find the org-mode bindings to be okay in the sense that at least
they are easy to learn.  But I have found myself wanting something a bit
more ergonomic at times.

> Irrespective of the above issue, in my opinion, there should be a
> standardized way of doing similar things in Emacs.

Agreed.  Perhaps it is possible to find a better alternative.  Such an
alternative should ideally be suitable for at least all three of
outline-mode, org-mode and outline-minor-mode.

It might be hard to settle on something that makes everyone happy,
however.




This bug report was last modified 3 years and 8 days ago.

Previous Next


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