unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46087: 26.3; Org should not bind keys in keymaps other than Org keymaps
@ 2021-01-24 22:41 Drew Adams
  2021-01-24 22:54 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2021-01-24 22:41 UTC (permalink / raw)
  To: 46087

Org mode is a major mode.  It shouldn't be binding keys in keymaps such
as `narrow-map', by default.

Please consider changing the default values of
`org-replace-disputed-keys and `org-disputed-keys' so that, by default,
Org does not create key bindings other than in its own keymaps.

Besides this general politeness, which should be expected, it makes no sense (does it?) for a command such as `org-narrow-to-element' to be bound to keys in non-Org buffers.  (And there are 3 such bindings in `narrow-map'.)

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.18362
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#46087: 26.3; Org should not bind keys in keymaps other than Org keymaps
  2021-01-24 22:41 bug#46087: 26.3; Org should not bind keys in keymaps other than Org keymaps Drew Adams
@ 2021-01-24 22:54 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2021-01-24 22:54 UTC (permalink / raw)
  To: Drew Adams, 46087@debbugs.gnu.org

> Org mode is a major mode.  It shouldn't be binding keys in keymaps such
> as `narrow-map', by default.
> 
> Please consider changing the default values of
> `org-replace-disputed-keys and `org-disputed-keys' so that, by default,
> Org does not create key bindings other than in its own keymaps.
> 
> Besides this general politeness, which should be expected, it makes no sense
> (does it?) for a command such as `org-narrow-to-element' to be bound to keys
> in non-Org buffers.  (And there are 3 such bindings in `narrow-map'.)

And if you disagree, and want to close this as "wont-fix",
then at least consider that a _minimum_ of politeness is
to do this:

(unless (lookup-key MAP KEY) (define-key MAP KEY COMMAND))





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-24 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-24 22:41 bug#46087: 26.3; Org should not bind keys in keymaps other than Org keymaps Drew Adams
2021-01-24 22:54 ` Drew Adams

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).