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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41129 in the body.
You can then email your comments to 41129 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#41129; Package emacs. (Thu, 07 May 2020 20:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefankangas <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 07 May 2020 20:50:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: outline-mode: New keybindings for demote/promote/move-subtree
Date: Thu, 7 May 2020 16:49:46 -0400
Severity: wishlist

Please consider adding the following keybindings to outline-mode:

(define-key outline-minor-mode-map (kbd "M-<left>") 'outline-demote)
(define-key outline-minor-mode-map (kbd "M-<right>") 'outline-promote)
(define-key outline-minor-mode-map (kbd "M-<up>") 'outline-move-subtree-up)
(define-key outline-minor-mode-map (kbd "M-<down>") 'outline-move-subtree-down)

They are already there in Org-mode and many users swear by them.

Background:
https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01887.html

These keybindings were first suggested by Howard Melman in the above
thread.

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Fri, 08 May 2020 17:57:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Fri, 8 May 2020 13:56:16 -0400
> (define-key outline-minor-mode-map (kbd "M-<left>") 'outline-demote)
> (define-key outline-minor-mode-map (kbd "M-<right>") 'outline-promote)

Sorry, that should be the other way around:

(define-key outline-minor-mode-map (kbd "M-<left>") 'outline-promote)
(define-key outline-minor-mode-map (kbd "M-<right>") 'outline-demote)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Thu, 28 Jan 2021 06:29:02 GMT) Full text and rfc822 format available.

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

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

>> (define-key outline-minor-mode-map (kbd "M-<left>") 'outline-demote)
>> (define-key outline-minor-mode-map (kbd "M-<right>") 'outline-promote)
>
> Sorry, that should be the other way around:
>
> (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.

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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 28 Jan 2021 06:29:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Thu, 28 Jan 2021 09:40:01 GMT) Full text and rfc822 format available.

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

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

>>> (define-key outline-minor-mode-map (kbd "M-<left>") 'outline-demote)
>>> (define-key outline-minor-mode-map (kbd "M-<right>") 'outline-promote)
>>
>> Sorry, that should be the other way around:
>>
>> (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.
>
> 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. But then how many people will use both, org and the
outline-mode.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Thu, 28 Jan 2021 15:08:02 GMT) Full text and rfc822 format available.

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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Fri, 29 Jan 2021 04:50:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Pankaj Jangid <pankaj <at> codeisgreat.org>, 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Fri, 29 Jan 2021 05:49:41 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

>> 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.

Indeed.  Major modes (like Org) have greater leeway in defining
keystrokes than minor modes, though -- a minor mode has to be more
careful not to redefine common keystrokes because there's less of a "buy
in" from users than with a major mode like Org.

So it might make sense for Org to bind M-<right> to something while it'd
be too intrusive for outline-minor-mode.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Fri, 29 Jan 2021 20:07:01 GMT) Full text and rfc822 format available.

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

From: Howard Melman <hmelman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Fri, 29 Jan 2021 15:06:07 -0500
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Stefan Kangas <stefan <at> marxist.se> writes:
>
>>> 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.
>
> Indeed.  Major modes (like Org) have greater leeway in defining
> keystrokes than minor modes, though -- a minor mode has to be more
> careful not to redefine common keystrokes because there's less of a "buy
> in" from users than with a major mode like Org.
>
> So it might make sense for Org to bind M-<right> to something while it'd
> be too intrusive for outline-minor-mode.

If I'm correct that the standard cursor movement bindings on
M-<right>, M-<left> you're referring to are word movement
commands, then they also have existing bindings on C-<right>
and C-<left> and are at least very similar to M-f and M-b..
So perhaps it's ok if outline-minor-mode shadows the
M-<arrow> flavor of them, particularly if it aligns with
org-mode.

-- 

Howard





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Fri, 29 Jan 2021 22:02:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Howard Melman <hmelman <at> gmail.com>, "41129 <at> debbugs.gnu.org"
 <41129 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Fri, 29 Jan 2021 22:01:07 +0000
> > Indeed.  Major modes (like Org) have greater leeway in defining
> > keystrokes than minor modes, though -- a minor mode has to be more
> > careful not to redefine common keystrokes because there's less of a
> > "buy in" from users than with a major mode like Org.
> >
> > So it might make sense for Org to bind M-<right>
> > to something while it'd be too intrusive for
> > outline-minor-mode.

I agree with Lars, there.

A minor mode, even when local to a buffer (not
explicitly global), is in a sense "global" - it
works across other modes, and needs to play well
with them.
___

Not directly related, but I also think it's a
no-no for a major mode such as Org to globally
bind a key that has no business being used
(because useless) outside Org mode.  That's the
point of bug #46087 (which has received no reply).

In the past, Org mode has even countered the key
binding guidelines, by binding keys in its major
mode map that are supposed to be reserved for
minor modes.  (I think that after some protest
that's now been corrected.)

I can understand that Org developers and users
would like many keys available by default, but
there's also a need to play well with other,
non-Org, uses of Emacs.

> If I'm correct that the standard cursor movement bindings on
> M-<right>, M-<left> you're referring to are word movement
> commands, then they also have existing bindings on C-<right>
> and C-<left> and are at least very similar to M-f and M-b.

Yes.

> So perhaps it's ok if outline-minor-mode shadows the
> M-<arrow> flavor of them, particularly if it aligns with
> org-mode.

Personally, I'd prefer that Emacs not bind
`M-left|right' keys by default, including in
Outline or Org modes (minor or major).

(I bind `M-left|right|up|down' to commands
that incrementally move the selected frame.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 06:24:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 07:23:07 +0100
Howard Melman <hmelman <at> gmail.com> writes:

> If I'm correct that the standard cursor movement bindings on
> M-<right>, M-<left> you're referring to are word movement
> commands, then they also have existing bindings on C-<right>
> and C-<left> and are at least very similar to M-f and M-b..

That these commands also have other bindings doesn't really affect how
annoying rebinding M-<right> is for the users that are used to M-<right>.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 17:41:01 GMT) Full text and rfc822 format available.

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

From: Howard Melman <hmelman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 12:39:52 -0500
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Howard Melman <hmelman <at> gmail.com> writes:
>
>> If I'm correct that the standard cursor movement bindings on
>> M-<right>, M-<left> you're referring to are word movement
>> commands, then they also have existing bindings on C-<right>
>> and C-<left> and are at least very similar to M-f and M-b..
>
> That these commands also have other bindings doesn't really affect how
> annoying rebinding M-<right> is for the users that are used to M-<right>.

So I'm clear, the command right-word, which is only useful
when editing bidirectional (not merely right-to-left) text ,
and even then only changes the orientation of the very basic
command forward-word (still bound to M-f), is so important
it needs TWO very similar default key bindings (M-right and
C-right).  And an optional minor-mode, when enabled, can't
shadow ONE of those bindings so that its very commonly used
command outline-demote can be, by default, on the easy to
type and remember M-right instead of only the difficult to
type and remember C-c @ C-right to match the behavior of the
very popular org-mode.

I agree that default bindings should be changed with
caution, even great caution, but IMHO if this case doesn't
meet that threshold I'm hard pressed to think of another
that can.

-- 

Howard





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 18:01:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 20:00:50 +0200
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Sat, 30 Jan 2021 12:39:52 -0500
> 
> the command right-word, which is only useful when editing
> bidirectional

This assertion is incorrect.  The real goal of right-word is to
provide a command that works as users expect in both left-to-right and
right-to-left contexts.  The alternative would be to request that the
user should decide whether to use M-f or M-b to go in a particular
direction, and that's a non-starter.

> is so important it needs TWO very similar default key bindings
> (M-right and C-right)

This command has two bindings not because of its importance, but
because other programs out there use those bindings.  Emacs is
following the expectations of the users here.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 18:49:02 GMT) Full text and rfc822 format available.

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

From: Howard Melman <hmelman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 13:48:38 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Howard Melman <hmelman <at> gmail.com>
>> Date: Sat, 30 Jan 2021 12:39:52 -0500
>> 
>> the command right-word, which is only useful when editing
>> bidirectional
>
> This assertion is incorrect.  The real goal of right-word is to
> provide a command that works as users expect in both left-to-right and
> right-to-left contexts.  The alternative would be to request that the
> user should decide whether to use M-f or M-b to go in a particular
> direction, and that's a non-starter.

I stand corrected.  I'm a left-to-right only user and I
won't make the case that that is more important, merely that
I'm unfamiliar with the specifics of other users.

>> is so important it needs TWO very similar default key bindings
>> (M-right and C-right)
>
> This command has two bindings not because of its importance, but
> because other programs out there use those bindings.  Emacs is
> following the expectations of the users here.

Ok, but in emacs they expect and need both?  How do they
adjust in org mode? Or is this a complaint that users of
right-word have in org-mode? Would users of
outline-minor-mode adjust similarly?

Does outline-mode support right-to-left oriented outlines?
Does org?  I'm guessing not because then these arrow key
bindings would want to adjust demote/promote behavior
accordingly.  Should they?

Maybe these bindings could be in another minor-mode that
could be enabled by those users that want them?
outline-use-org-bindings-minor-mode. 

-- 

Howard





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 19:23:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 21:22:38 +0200
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Sat, 30 Jan 2021 13:48:38 -0500
> 
> > This command has two bindings not because of its importance, but
> > because other programs out there use those bindings.  Emacs is
> > following the expectations of the users here.
> 
> Ok, but in emacs they expect and need both?

Yes, because some applications support one and others the other key
binding.

> How do they adjust in org mode? Or is this a complaint that users of
> right-word have in org-mode? Would users of outline-minor-mode
> adjust similarly?

The bindings have nothing to do with bidirectional text.  C-<RIGHT>
and C-<LEFT> (and the corresponding M- bindings) have a meaning in
strict left-to-right text as well: they move by words in the
corresponding directions.

> Does outline-mode support right-to-left oriented outlines?
> Does org?

Yes to both questions, but again: the issue at hand has nothing to do
with bidirectional editing.

> I'm guessing not because then these arrow key bindings would want to
> adjust demote/promote behavior accordingly.  Should they?

That's a separate issue, for which I have no definite opinions to
offer.  I chimed in to set the record straight on these bindings
regardless of Org or Outline.  Whether rebinding these to
level-related commands will or will not confuse users of Org and
Outline is something for those users to say.

> Maybe these bindings could be in another minor-mode that
> could be enabled by those users that want them?
> outline-use-org-bindings-minor-mode. 

I think the idea is that many users want them.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 19:41:01 GMT) Full text and rfc822 format available.

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

From: Howard Melman <hmelman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 14:40:37 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

> The bindings have nothing to do with bidirectional text.  C-<RIGHT>
> and C-<LEFT> (and the corresponding M- bindings) have a meaning in
> strict left-to-right text as well: they move by words in the
> corresponding directions.

>> Does outline-mode support right-to-left oriented outlines?
>> Does org?
>
> Yes to both questions, but again: the issue at hand has nothing to do
> with bidirectional editing.

I mean yes, they do something expected in left-to-right
text, but in strict left-to-right usage these bindings are
unnecessary because of M-f and M-b.  It's not like emacs
enables cua-mode by default because other programs use those
bindings and users expect it.

Even the emacs manual says:  "This command (‘right-word’)
behaves like ‘M-f’, except it moves _backward_ by one word
if the current paragraph is right-to-left. *Note Bidirectional Editing."

>> Maybe these bindings could be in another minor-mode that
>> could be enabled by those users that want them?
>> outline-use-org-bindings-minor-mode. 
>
> I think the idea is that many users want them.

I agree.  

-- 

Howard





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Sat, 30 Jan 2021 19:55:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Sat, 30 Jan 2021 21:55:12 +0200
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Sat, 30 Jan 2021 14:40:37 -0500
> 
> I mean yes, they do something expected in left-to-right
> text, but in strict left-to-right usage these bindings are
> unnecessary because of M-f and M-b.

They are necessary because users (including users of strict
left-to-right text) expect C-<RIGHT> etc. to do what they do in
Emacs.  M-f and M-b are Emacs-specific.




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 01 Mar 2021 15:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Wed, 03 Mar 2021 19:15:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Wed, 03 Mar 2021 21:10:13 +0200
> Maybe these bindings could be in another minor-mode that
> could be enabled by those users that want them?
> outline-use-org-bindings-minor-mode.

bug#45147 implemented new mode outline-cycle-minor-mode
for Org-like TAB cycling in outline-minor-mode.

It's easy to customize outline-mode-cycle-map
and to bind M-left/right to outline-promote/demote:

(define-key outline-mode-cycle-map [(meta left)] 'outline-promote)
(define-key outline-mode-cycle-map [(meta right)] 'outline-demote)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Mon, 09 May 2022 10:39:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: Howard Melman <hmelman <at> gmail.com>, 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Mon, 09 May 2022 12:38:01 +0200
Juri Linkov <juri <at> linkov.net> writes:

> bug#45147 implemented new mode outline-cycle-minor-mode
> for Org-like TAB cycling in outline-minor-mode.
>
> It's easy to customize outline-mode-cycle-map
> and to bind M-left/right to outline-promote/demote:
>
> (define-key outline-mode-cycle-map [(meta left)] 'outline-promote)
> (define-key outline-mode-cycle-map [(meta right)] 'outline-demote)

It's now outline-minor-mode-cycle-map, but I added the four bindings
suggested by Stefan to Emacs 29 now, and I guess we'll find out whether
that gets in the way of people's work flows here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 41129 <at> debbugs.gnu.org and Stefan Kangas <stefankangas <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 09 May 2022 10:39:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Mon, 09 May 2022 14:32:01 GMT) Full text and rfc822 format available.

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

From: Howard Melman <hmelman <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 41129 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Mon, 9 May 2022 10:31:18 -0400

> On May 9, 2022, at 6:38 AM, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> 
> Juri Linkov <juri <at> linkov.net> writes:
> 
>> bug#45147 implemented new mode outline-cycle-minor-mode
>> for Org-like TAB cycling in outline-minor-mode.
>> 
>> It's easy to customize outline-mode-cycle-map
>> and to bind M-left/right to outline-promote/demote:
>> 
>> (define-key outline-mode-cycle-map [(meta left)] 'outline-promote)
>> (define-key outline-mode-cycle-map [(meta right)] 'outline-demote)
> 
> It's now outline-minor-mode-cycle-map, but I added the four bindings
> suggested by Stefan to Emacs 29 now, and I guess we'll find out whether
> that gets in the way of people's work flows here.

Should these four bindings be on outline-minor-mode-cycle-map or
on outline-minor-mode-map?  They don't have to do with cycling.

Howard




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Tue, 10 May 2022 02:04:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 41129 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Tue, 10 May 2022 04:03:26 +0200
Howard Melman <hmelman <at> gmail.com> writes:

> Should these four bindings be on outline-minor-mode-cycle-map or
> on outline-minor-mode-map?  They don't have to do with cycling.

Juri suggested putting them on the former because they'd be too
disturbing in the main map -- M-<right> etc are bound to navigation
commands in editable buffers.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Wed, 11 May 2022 07:26:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Howard Melman <hmelman <at> gmail.com>, 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Wed, 11 May 2022 10:10:07 +0300
>> Should these four bindings be on outline-minor-mode-cycle-map or
>> on outline-minor-mode-map?  They don't have to do with cycling.
>
> Juri suggested putting them on the former because they'd be too
> disturbing in the main map -- M-<right> etc are bound to navigation
> commands in editable buffers.

Actually I suggested these bindings only for personal customization
for anyone who needs to edit heading levels because these bindings
are too intrusive to be used by default in the cycling map.
It already takes the TAB key from users, and taking more keys is too much
for the cycling map.  To be able to add editing keys to outline-minor-mode
they need to be on some separate map such as outline-minor-mode-edit-map.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Wed, 11 May 2022 10:39:02 GMT) Full text and rfc822 format available.

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

From: Visuwesh <visuweshm <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, Howard Melman <hmelman <at> gmail.com>,
 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Wed, 11 May 2022 16:07:40 +0530
[புதன் மே 11, 2022] Juri Linkov wrote:

>>> Should these four bindings be on outline-minor-mode-cycle-map or
>>> on outline-minor-mode-map?  They don't have to do with cycling.
>>
>> Juri suggested putting them on the former because they'd be too
>> disturbing in the main map -- M-<right> etc are bound to navigation
>> commands in editable buffers.
>
> Actually I suggested these bindings only for personal customization
> for anyone who needs to edit heading levels because these bindings
> are too intrusive to be used by default in the cycling map.
> It already takes the TAB key from users, and taking more keys is too much
> for the cycling map.  To be able to add editing keys to outline-minor-mode
> they need to be on some separate map such as outline-minor-mode-edit-map.

Moreover, with repeat-mode turned on, changing the outline level and
moving them is not tedious anymore.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#41129; Package emacs. (Wed, 11 May 2022 11:58:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: Howard Melman <hmelman <at> gmail.com>, 41129 <at> debbugs.gnu.org
Subject: Re: bug#41129: outline-mode: New keybindings for
 demote/promote/move-subtree
Date: Wed, 11 May 2022 13:56:54 +0200
Juri Linkov <juri <at> linkov.net> writes:

> Actually I suggested these bindings only for personal customization
> for anyone who needs to edit heading levels because these bindings
> are too intrusive to be used by default in the cycling map.
> It already takes the TAB key from users, and taking more keys is too much
> for the cycling map.  To be able to add editing keys to outline-minor-mode
> they need to be on some separate map such as outline-minor-mode-edit-map.

Sorry; I misunderstood you.  I've now reverted the change.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 09 Jun 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 315 days ago.

Previous Next


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