From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Problems with M- on Emacs 25. Date: Mon, 18 Apr 2016 03:14:37 +0000 Message-ID: References: <20160417095719.GA14396@localhost> <87ega3pzev.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1135eab458dcc00530b9c387 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arzeF-00058z-1r for emacs-orgmode@gnu.org; Sun, 17 Apr 2016 23:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arzeD-00080W-4v for emacs-orgmode@gnu.org; Sun, 17 Apr 2016 23:14:50 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:34500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arzeC-00080B-SU for emacs-orgmode@gnu.org; Sun, 17 Apr 2016 23:14:49 -0400 Received: by mail-ob0-x22c.google.com with SMTP id bg3so90529271obb.1 for ; Sun, 17 Apr 2016 20:14:48 -0700 (PDT) In-Reply-To: <87ega3pzev.fsf@alphapapa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter , emacs-orgmode@gnu.org, lists@wilkesley.net --001a1135eab458dcc00530b9c387 Content-Type: text/plain; charset=UTF-8 Hi Ian, > On my computer running 24.5.1 M works as expected. However, on emacs 25.1.50.1 I get ... First of all, it is important to know in which major mode you are trying to use the M-/ bindings. They are undefined by defined and are defined in org-mode-map. It is also important to know in which minor/major mode maps you are binding those in your config. I would guess that the problem you see does not occur in an emacs -Q session? It's also important to know that a key can be bound to different command in different minor/major mode maps and in global maps. Here's the priority: 1. Minor mode map (last enabled minor mode) 2. Major mode map (e.g. org-mode-map) 3. Global map So even if M- is bound to org-metaup in org-mode-map, if foo-mode-map (some minor mode map) as that key bound to a function 'bar' and if foo-mode is enabled in an org-mode buffer, M- will now call 'bar' instead of 'org-metaup'. So it is important to understand the consequences when making new bindings to minor mode maps (or understand the maps of the minor modes you enable). > but emacs thinks that M- is bound to scroll other window. Emacs does not bind M- by default to anything. So my guess is that somewhere in your config, you are binding that key to scroll other window. (I myself have been guilty of stepping over org-mode-map bindings in the past. Now I have learnt when to bind keys in global-map vs my own minor mode map which I use when I want my bindings to override everything else). -- -- Kaushal Modi --001a1135eab458dcc00530b9c387 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Ian,

> On my computer running 24.5.1 M<up> works as= expected. However, on=C2=A0emacs 25.1.50.1 I get ...

First of all, it is important to know = in which major mode you are trying to use the M-<up>/<down> bin= dings. They are undefined by defined and are defined in org-mode-map.
=

It is also important to know in which minor/major mode = maps you are binding those in your config. I would guess that the problem y= ou see does not occur in an emacs -Q session?

It's also important to know that a key can be bound to different comm= and in different minor/major mode maps and in global maps.

Here's the priority:

1. Minor mode ma= p (last enabled minor mode)
2. Major mode map (e.g. org-mode-map)=
3. Global map

So even if M-<up> i= s bound to org-metaup in org-mode-map, if foo-mode-map (some minor mode map= ) as that key bound to a function 'bar' and if foo-mode is enabled = in an org-mode buffer, M-<up> will now call 'bar' instead of = 'org-metaup'. So it is important to understand the consequences whe= n making new bindings to minor mode maps (or understand the maps of the min= or modes you enable).

>=C2=A0but emacs thinks that M-&l= t;up> is bound to scroll other window.

Emacs does= not bind M-<up> by default to anything. So my guess is that somewher= e in your config, you are binding that key to scroll other window. (I mysel= f have been guilty of stepping over org-mode-map bindings in the past. Now = I have learnt when to bind keys in global-map vs my own minor mode map whic= h I use when I want my bindings to override everything else).
<= div>
--

--
Kaushal Modi

--001a1135eab458dcc00530b9c387--