all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Howard Melman <hmelman@gmail.com>,
	"41129@debbugs.gnu.org" <41129@debbugs.gnu.org>
Subject: bug#41129: [External] : bug#41129: outline-mode: New keybindings for demote/promote/move-subtree
Date: Fri, 29 Jan 2021 22:01:07 +0000	[thread overview]
Message-ID: <SA2PR10MB4474048C1A9992BD7F00D79BF3B99@SA2PR10MB4474.namprd10.prod.outlook.com> (raw)
In-Reply-To: <ly5z3fqzio.fsf@Lumet2.home>

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





  reply	other threads:[~2021-01-29 22:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 20:49 bug#41129: outline-mode: New keybindings for demote/promote/move-subtree Stefan Kangas
2020-05-08 17:56 ` Stefan Kangas
2021-01-28  6:28   ` Lars Ingebrigtsen
2021-01-28  9:39     ` Pankaj Jangid
2021-01-28 15:07       ` Stefan Kangas
2021-01-29  4:49         ` Lars Ingebrigtsen
2021-01-29 20:06           ` Howard Melman
2021-01-29 22:01             ` Drew Adams [this message]
2021-01-30  6:23             ` Lars Ingebrigtsen
2021-01-30 17:39               ` Howard Melman
2021-01-30 18:00                 ` Eli Zaretskii
2021-01-30 18:48                   ` Howard Melman
2021-01-30 19:22                     ` Eli Zaretskii
2021-01-30 19:40                       ` Howard Melman
2021-01-30 19:55                         ` Eli Zaretskii
2021-03-03 19:10                     ` Juri Linkov
2022-05-09 10:38                       ` Lars Ingebrigtsen
2022-05-09 14:31                         ` Howard Melman
2022-05-10  2:03                           ` Lars Ingebrigtsen
2022-05-11  7:10                             ` Juri Linkov
2022-05-11 10:37                               ` Visuwesh
2022-05-11 11:56                               ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SA2PR10MB4474048C1A9992BD7F00D79BF3B99@SA2PR10MB4474.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=41129@debbugs.gnu.org \
    --cc=hmelman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.