GNU bug report logs - #21551
[PATCH] Fix Mac OS X key bindings bug

Previous Next

Package: emacs;

Reported by: Kai Yu Zhang <yeannylam <at> gmail.com>

Date: Thu, 24 Sep 2015 16:46:02 UTC

Severity: normal

Tags: patch

Merged with 19977, 21330

Found in version 24.4

Done: Philipp Stephani <p.stephani2 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Alan Third <alan <at> idiocy.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 21551 <at> debbugs.gnu.org, Kai Yu Zhang <yeannylam <at> gmail.com>,
 Mikhail Gusarov <dottedmag <at> dottedmag.net>, Anders Lindgren <andlind <at> gmail.com>
Subject: Re: bug#21551: Fix Mac OS X key bindings bug
Date: Tue, 13 Feb 2018 18:56:20 +0000
[Message part 1 (text/plain, inline)]
On Sun, Feb 11, 2018 at 05:57:32PM +0000, Philipp Stephani wrote:
> Anders Lindgren <andlind <at> gmail.com> schrieb am Sa., 2. Jan. 2016 um
> 09:08 Uhr:
> 
> > I found a case where the code in question is needed, which none of the
> > suggested patches handle correctly.
> >
> > Steps to repeat:
> >
> >     (setq ns-alternate-modifier nil)
> >
> >     Press left CMD-ALT-9
> >
> >     An unmodified Emacs replies "s-]" is not bound. (This assumes a
> > Swedish keyboard layout, other layouts would yield a different character,
> > but the principle is the same).
> >
> >     With either of the two patches, Emacs respond with "s-9" is not bound,
> > which isn't correct.
> >
> 
> In the current master this is now interpreted as M-s-9, which is at least
> somewhat reasonable.

For me it’s s-9, not M-s-9.

> > Unfortunately, I don't know how to distinguish between the cases where we
> > need to strip away modifiers (C-s-a) and when we shouldn't, so I'm leaving
> > this open for now.
> >
> 
> It seems like in the macOS input model, we can't: either we strip away all
> modifiers, or none.

It appears you can using some Carbon stuff. Half‐assed proof of
concept patch attached.

(It’s broken the arrow keys, and I don’t know why...)
-- 
Alan Third
[poc.patch (text/plain, attachment)]

This bug report was last modified 7 years and 152 days ago.

Previous Next


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