From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#19977: 24.4; Incorrect translation of Super modifier with Ctrl or Meta on OS X Date: Tue, 29 Mar 2016 15:29:56 +0000 Message-ID: References: <83r3etwc9j.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140c8ec288ed0052f31b4ac X-Trace: ger.gmane.org 1459266069 22728 80.91.229.3 (29 Mar 2016 15:41:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 15:41:09 +0000 (UTC) Cc: 19977@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 17:41:00 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akvl7-0007qI-NU for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 17:40:45 +0200 Original-Received: from localhost ([::1]:48083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvl6-0004hj-I1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 11:40:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvbn-0006Y0-2B for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akvbi-00042j-HX for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvbi-00042Y-AW for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akvbi-0008Nj-5q for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2016 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19977-submit@debbugs.gnu.org id=B19977.145926541332164 (code B ref 19977); Tue, 29 Mar 2016 15:31:02 +0000 Original-Received: (at 19977) by debbugs.gnu.org; 29 Mar 2016 15:30:13 +0000 Original-Received: from localhost ([127.0.0.1]:43939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akvav-0008Mh-FI for submit@debbugs.gnu.org; Tue, 29 Mar 2016 11:30:13 -0400 Original-Received: from mail-lf0-f44.google.com ([209.85.215.44]:34180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akvat-0008MS-V3 for 19977@debbugs.gnu.org; Tue, 29 Mar 2016 11:30:12 -0400 Original-Received: by mail-lf0-f44.google.com with SMTP id c62so14590981lfc.1 for <19977@debbugs.gnu.org>; Tue, 29 Mar 2016 08:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uU0paCJxB0tVP8Ydt9M3uCotL0riQYhMLYIoZMHpMcM=; b=ZvcUk+gxkRs0jtMDI/wJqVp6zDPpriIt4wW6PMcfx/xcdx87WPFzVXd1NIInfxX2bK spjS4PTJxxvmtCkP0UjdHDZbk5YUMVuWA1YVdb8Ixn+858mUkZs4HqrB1lWx58VRXFOJ XUE81S9iTxVwq0hQE5NSpK1ZkGYXUsBgpREDFFe14pElarE0CsmcXo4uEBLCiPVR50/O kFakPv47ShHZppKnthe6Es1JJDMJC+ZNd9qot0PhXwO0tJB0QkANeCvUniyX1eOZK/GT uP6t9EPC2+xBvpiubThnvFkzRS/V21xKpVpbfICcwkQCIRpe1NUFbd0JpFSV3msRYRyw XsQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uU0paCJxB0tVP8Ydt9M3uCotL0riQYhMLYIoZMHpMcM=; b=clYhDaJ8YF1gOasiSAKCjZbB3wb39R8K8tB/dRG8K/Yzv7cCVWtcqAaoHVxu3phXJe Nr9aVzxCkztvJkmtz6cYCmxZH33Ft1bjSSd7W4rDX/C75HDLpbywerKyIdctzFNxgwBZ 2jUJu2mP/wCAWvKmiRttgSd1ZkkDGhbaWXOZ90lskX+qa5DAGcStzx2OaQjHcC6ZR2ZB bnB2g4GJwQQ4HdQh2NUxgwEepHLuQvU6UisoaNkE9Cz5KKVt6oJWv+J186vYko8szDMU ZHYdkT1FMbkvLx3cb/gED5vidFsH47NJylNxvg8q+Vd7ihMo6oPo8HDwGDKY/aF560Rf vP0A== X-Gm-Message-State: AD7BkJKZ2ENAFn+AsVr5ns+uk2Qsp4VjnFMhkKwhi4fMr9hv40rxevV17MAIBF/thSPU1aV1/txis2uxTkJcbg== X-Received: by 10.25.212.213 with SMTP id l204mr1476716lfg.118.1459265406011; Tue, 29 Mar 2016 08:30:06 -0700 (PDT) In-Reply-To: <83r3etwc9j.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115710 Archived-At: --001a1140c8ec288ed0052f31b4ac Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii schrieb am Di., 29. M=C3=A4rz 2016 um 17:11 Uh= r: > > From: Philipp Stephani > > Date: Tue, 29 Mar 2016 10:17:42 +0000 > > > > After pressing M-s-a, I get the message: > > M-s-=C3=A5 is undefined > > Expected: M-s-a (being defined or undefined) > > > > Tested running Emacs as a Carbon app on OS X: > > open -W -n -a /Applications/Emacs.app --args -Q > > > > After pressing C-s-a, I get the message: > > is undefined > > Expected: C-s-a (being defined or undefined) > > > > Seems to happen for all keys, not just a. For C-s-, the > > character produced is 0x1002ffa0 + instead of ; for > > M-s- the character produced is whatever OS X maps to > > Option+. This happens only if Super is pressed as well. More > > discussion at > > http://lists.gnu.org/archive/html/help-gnu-emacs/2015-02/msg00503.html= . > > > > Unfortunately this is still happening with 25.0.92.1. > > What is the evidence that this is an Emacs problem? > Because in other apps I can use these key combinations. E.g. C-s-f in Chrome toggles fullscreen mode. But in Emacs, such keybindings don't work. E.g. after evaluating (global-set-key (kbd "C-s-f") (lambda () (interactive) (message "It works"))) hitting C-s-f will lead to the error message " is undefined", and M-x lossage will contain " [nil]". > > What do you get if you type s-a? > This works as expected (i.e. I get whatever is bound to s-a, and s-a appears in lossage). It's only the combination of C-s and M-s that gets translated incorrectly. --001a1140c8ec288ed0052f31b4ac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Di., 29. M=C3=A4rz 2016 um 17:11=C2=A0Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Tue, 29 Mar 2016 10:17:42 +0000
>
>=C2=A0 After pressing M-s-a, I get the message:
>=C2=A0 M-s-=C3=A5 is undefined
>=C2=A0 Expected: M-s-a (being defined or undefined)
>
>=C2=A0 Tested running Emacs as a Carbon app on OS X:
>=C2=A0 open -W -n -a /Applications/Emacs.app --args -Q
>
>=C2=A0 After pressing C-s-a, I get the message:
>=C2=A0 <C-s-268632065> is undefined
>=C2=A0 Expected: C-s-a (being defined or undefined)
>
>=C2=A0 Seems to happen for all keys, not just a. For C-s-<letter>= , the
>=C2=A0 character produced is 0x1002ffa0 + <letter> instead of <= ;letter>; for
>=C2=A0 M-s-<letter> the character produced is whatever OS X maps = to
>=C2=A0 Option+<letter>. This happens only if Super is pressed as = well. More
>=C2=A0 discussion at
>=C2=A0 http://lists.gnu.or= g/archive/html/help-gnu-emacs/2015-02/msg00503.html.
>
> Unfortunately this is still happening with 25.0.92.1.

What is the evidence that this is an Emacs problem?
Because in other apps I can use these key combinations. E.g. C= -s-f in Chrome toggles fullscreen mode. But in Emacs, such keybindings don&= #39;t work. E.g. after evaluating=C2=A0(global-set-key (kbd "C-s-f&quo= t;) (lambda () (interactive) (message "It works"))) hitting C-s-f= will lead to the error message "<C-s-268632070> is undefined&qu= ot;, and M-x lossage will contain " <C-s-268632070> [nil]".=
=C2=A0

What do you get if you type s-a?

This w= orks as expected (i.e. I get whatever is bound to s-a, and s-a appears in l= ossage). It's only the combination of C-s and M-s that gets translated = incorrectly.
--001a1140c8ec288ed0052f31b4ac--