From unknown Fri Aug 15 03:37:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21330 <21330@debbugs.gnu.org> To: bug#21330 <21330@debbugs.gnu.org> Subject: Status: [PATCH] Fix handling Command-Control- combination under OS X Reply-To: bug#21330 <21330@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:37:53 +0000 retitle 21330 [PATCH] Fix handling Command-Control- combination und= er OS X reassign 21330 emacs submitter 21330 Mikhail Gusarov severity 21330 normal tag 21330 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 12:49:55 2015 Received: (at submit) by debbugs.gnu.org; 23 Aug 2015 16:49:55 +0000 Received: from localhost ([127.0.0.1]:36163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTYSx-0004y8-0P for submit@debbugs.gnu.org; Sun, 23 Aug 2015 12:49:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTYSv-0004y0-Fx for submit@debbugs.gnu.org; Sun, 23 Aug 2015 12:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTYSu-0001Gp-HZ for submit@debbugs.gnu.org; Sun, 23 Aug 2015 12:49:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTYSu-0001Gj-Ep for submit@debbugs.gnu.org; Sun, 23 Aug 2015 12:49:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTYSt-0000dk-Jk for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 12:49:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTYSq-0001Ej-Fk for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 12:49:51 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTYSq-0001Eb-BC for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 12:49:48 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 04454205F0 for ; Sun, 23 Aug 2015 12:49:47 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute4.internal (MEProxy); Sun, 23 Aug 2015 12:49:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=dottedmag.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=cd4 Yayx01SA5WipTLDHHjnud9Ys=; b=YrJ4o0RTEnScVsFOXrbnAerJSRVMTMttlo4 wDrG8sVAAVbSkgfPi2Dw9tOPXP7oJn4pnSvAaxzFdnBHjnuO0NZu4BGG6zFAnn2j 3WgaeZd0TtyBZqjEuTDZJDd56z2e2wJwr0ICWBUZUGCb2eNCivVlhqOMui4jqHZN SDqtoBsc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=cd4Yayx01SA5WipTLDHHjnud9Ys=; b=StMYG MT5iZuY4Sj3wPwmboq2fw1m7CL05lcd4WHyeC4nuh0sp86NCb/aJuOupZoH9HTTF XqevHsx+l/CAfQTcFL3u2OymCkIczsyNKBSAer01pDM3g7Rwuedi/YE3voiJ7Q4E odp2l77ungPUKrHIV7dPn2Nawe9+DnXa/uPAKo= Received: by web6.nyi.internal (Postfix, from userid 99) id C27DA51D1F; Sun, 23 Aug 2015 12:49:47 -0400 (EDT) Message-Id: <1440348587.1744498.363702897.1F50E889@webmail.messagingengine.com> X-Sasl-Enc: n9bFnpAiMhHLyoo4oHldnXa4I2cQjCBfHd3Ac52pZ5U8 1440348587 From: Mikhail Gusarov To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_144034858717444980"; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-a8c50604 Subject: [PATCH] Fix handling Command-Control- combination under OS X Date: Sun, 23 Aug 2015 18:49:47 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is a multi-part message in MIME format. --_----------=_144034858717444980 Content-Transfer-Encoding: 7bit Content-Type: text/plain Please find the patch attached. --_----------=_144034858717444980 Content-Disposition: attachment; filename="0001-Fix-handling-Command-Control-letter-combination-unde.patch" Content-Id: <1440348583.1744484.485f7051dfa6dc0d065c6936685109bb12f4a2b1.2D04CD99@content.messagingengine.com> Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name="0001-Fix-handling-Command-Control-letter-combination-unde.patch" RnJvbSBhOWQ1NGZiZWNjYmE2ZTQ2N2YzMTBhMzRjNjNiNjMxYjFjN2E5MGQy IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNaWtoYWlsIEd1c2Fy b3YgPGRvdHRlZG1hZ0Bkb3R0ZWRtYWcubmV0PgpEYXRlOiBTdW4sIDIzIEF1 ZyAyMDE1IDE4OjQyOjMzICswMjAwClN1YmplY3Q6IFtQQVRDSF0gRml4IGhh bmRsaW5nIENvbW1hbmQtQ29udHJvbC08bGV0dGVyPiBjb21iaW5hdGlvbiB1 bmRlciBPUyBYCgpEbyBub3QgdXNlIFt0aGVFdmVudCBjaGFyYWN0ZXJzXSBm b3IgZ2V0dGluZyBrZXkgaWYgQ29tbWFuZCBpcyBzdXBwbGllZCwKdGhpcyBj YXVzZXMgQ29tbWFuZC1Db250cm9sLUEgYW5kIHNpbWlsYXIga2V5IGNvbWJp bmF0aW9ucyB0byBiZQppbnRlcnByZXRlZCBhcyBjb250cm9sIGNoYXJhY3Rl cnMgKF5BKSwgd2hpY2ggYnJlYWtzIGtleSBwcm9jZXNzaW5nCmxhdGVyIG9u LiBUaGUgY29kZSB3aGljaCBwcm9kdWNlcyB3cm9uZyBrZXljb2RlIGNsYWlt cyB0byBoYW5kbGUgRHZvcmFrLApidXQgRHZvcmFrIGtleWJvYXJkIGlzIGhh bmRsZWQgZmluZSB3aXRob3V0IGl0LgoqIHNyYy9uc3Rlcm0ubSAoa2V5RG93 bik6IERpc2FibGUgY29kZSBjb25zdWx0aW5nIGlucHV0IG1hbmFnZXIsIG5v dCBuZWVkZWQuCgpDb3B5cmlnaHQtcGFwZXJ3b3JrLWV4ZW1wdDogeWVzCi0t LQogc3JjL25zdGVybS5tIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdlZCwgMiBp bnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3Ny Yy9uc3Rlcm0ubSBiL3NyYy9uc3Rlcm0ubQppbmRleCAyODA2ZjMxLi43OWY5 N2RiIDEwMDY0NAotLS0gYS9zcmMvbnN0ZXJtLm0KKysrIGIvc3JjL25zdGVy bS5tCkBAIC01Mzg1LDYgKzUzODUsNyBAQCBub3RfaW5fYXJndiAoTlNTdHJp bmcgKmFyZykKICAgICAgICAgICBlbWFjc19ldmVudC0+bW9kaWZpZXJzIHw9 IHBhcnNlX3NvbGl0YXJ5X21vZGlmaWVyCiAgICAgICAgICAgICAobnNfY29t bWFuZF9tb2RpZmllcik7CiAKKyNpZiAwCiAgICAgICAgICAgLyogaWYgc3Vw ZXIgKGRlZmF1bHQpLCB0YWtlIGlucHV0IG1hbmFnZXIncyB3b3JkIHNvIHRo aW5ncyBsaWtlCiAgICAgICAgICAgICAgZHZvcmFrIC8gcXdlcnR5IGxheW91 dCB3b3JrICovCiAgICAgICAgICAgaWYgKEVRIChuc19jb21tYW5kX21vZGlm aWVyLCBRc3VwZXIpCkBAIC01Mzk1LDcgKzUzOTYsNiBAQCBub3RfaW5fYXJn diAoTlNTdHJpbmcgKmFyZykKICAgICAgICAgICAgICAgICAgYSBzaGlmdCBt b2RpZmllciwgbXVzdCBjb252ZXJ0IG91cnNlbHZlcyAqLwogICAgICAgICAg ICAgICBpZiAoIShmbGFncyAmIE5TU2hpZnRLZXlNYXNrKSkKICAgICAgICAg ICAgICAgICBjb2RlID0gW1t0aGVFdmVudCBjaGFyYWN0ZXJzXSBjaGFyYWN0 ZXJBdEluZGV4OiAwXTsKLSNpZiAwCiAgICAgICAgICAgICAgIC8qIHRoaXMg aXMgdWdseSBhbmQgYWxzbyByZXF1aXJlcyBsaW5raW5nIHcvQ2FyYm9uIGZy YW1ld29yawogICAgICAgICAgICAgICAgICAoZm9yIExNR2V0S2JkVHlwZSkg c28gZm9yIG5vdyBsZWF2ZSB0aGlzIHJhcmUgKD8pIGNhc2UKICAgICAgICAg ICAgICAgICAgdW5kZWFsdCB3aXRoLi4gaW4gZnV0dXJlIGxvb2sgaW50byBD R0V2ZW50IG1ldGhvZHMgKi8KQEAgLTU0MTMsOCArNTQxMyw4IEBAIG5vdF9p bl9hcmd2IChOU1N0cmluZyAqYXJnKQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgJmR1bW15LCAxLCAmZHVtbXksICZjb2RlKTsKICAgICAg ICAgICAgICAgICAgIGNvZGUgJj0gMHhGRjsKICAgICAgICAgICAgICAgICB9 Ci0jZW5kaWYKICAgICAgICAgICAgIH0KKyNlbmRpZgogICAgICAgICB9CiAK ICAgICAgIGlzX3JpZ2h0X2tleSA9IChmbGFncyAmIE5TUmlnaHRDb250cm9s S2V5TWFzaykgPT0gTlNSaWdodENvbnRyb2xLZXlNYXNrOwotLSAKMi41LjAK Cg== --_----------=_144034858717444980-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 23 12:51:39 2015 Received: (at 21330) by debbugs.gnu.org; 23 Aug 2015 16:51:39 +0000 Received: from localhost ([127.0.0.1]:36168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTYUc-00051H-KF for submit@debbugs.gnu.org; Sun, 23 Aug 2015 12:51:38 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57417) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTYUa-000519-Fz for 21330@debbugs.gnu.org; Sun, 23 Aug 2015 12:51:37 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2A8FB20973 for <21330@debbugs.gnu.org>; Sun, 23 Aug 2015 12:51:36 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute1.internal (MEProxy); Sun, 23 Aug 2015 12:51:36 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=dottedmag.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=qsR0bId4ky8JIRTaOarAAUMlFtA=; b=Jzc/CA Ekmw1c4XfO87/SwmrZAmcP5TapYQ3VTWAL6HajaXz5QuV7DrgYmAmWE0DsFs2XyM 3lOOjs8hzluNz5thLUAQblFGWXKggssJk82Pnr6tX5tICF9j0nNyTBRdz3/bSsut zuCoE1+pDCi82AZf1wvFaJM7c7WP1uee3TK48= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=qsR0bId4ky8JIRT aOarAAUMlFtA=; b=L9YdoRM11xr2fgNDT3SsxxuQdBeAcMmKrZL3viI+qDx46+S LXdU4icpDIDkK9t1j348AaptFdeiHzh9how7BKPjBJSDj5AowsUNYks3dDXh50RU 701vhmasYguQdoD2/7kxLvpcP0ttlweWr3qAch4mUg/9mIB/uCFPcVA27L5A= Received: by web6.nyi.internal (Postfix, from userid 99) id E977151D26; Sun, 23 Aug 2015 12:51:35 -0400 (EDT) Message-Id: <1440348695.1745750.363703345.5F61D85B@webmail.messagingengine.com> X-Sasl-Enc: OSzy3BBa2rjO8jXYlxkndF4Yuh3iEEh7j6SCFAumCr3z 1440348695 From: Mikhail Gusarov To: 21330@debbugs.gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-a8c50604 In-Reply-To: References: <1440348587.1744498.363702897.1F50E889@webmail.messagingengine.com> Subject: Re: bug#21330: Acknowledgement ([PATCH] Fix handling Command-Control- combination under OS X) Date: Sun, 23 Aug 2015 18:51:35 +0200 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 21330 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) A copy of commit message for easier handling: Do not use [theEvent characters] for getting key if Command is supplied, this causes Command-Control-A and similar key combinations to be interpreted as control characters (^A), which breaks key processing later on. The code which produces wrong keycode claims to handle Dvorak, but Dvorak keyboard is handled fine without it. * src/nsterm.m (keyDown): Disable code consulting input manager, not needed. On Sun, 23 Aug 2015, at 18:50, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 21330@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > -- > 21330: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21330 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 05 01:33:26 2016 Received: (at control) by debbugs.gnu.org; 5 Jan 2016 06:33:27 +0000 Received: from localhost ([127.0.0.1]:38077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGLBO-0004ze-P3 for submit@debbugs.gnu.org; Tue, 05 Jan 2016 01:33:26 -0500 Received: from mail-vk0-f47.google.com ([209.85.213.47]:33182) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGLBN-0004zP-US for control@debbugs.gnu.org; Tue, 05 Jan 2016 01:33:26 -0500 Received: by mail-vk0-f47.google.com with SMTP id a188so262655480vkc.0 for ; Mon, 04 Jan 2016 22:33:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=z5ob8FcwhDUfaKVSxBchGLVzntTFDHj71ZntduuaYWo=; b=KZAcvbb8bOBiM0uRZCgHu9dCS+3jKQFGeSss4nMCUDOetuZb0qqs2WYX42hvJy3kdX eqOH3QqcOxbFt3YSRpsm3WTnj4EoBuvPjyvyR/rlgrOzNU5v1lulO4YhA31Dlu5FbQnX xYn6/zWQZ1OOEg1aw2R4VNvQZkgrnIbyb28MfmjhVlmnvO5OG3L/pllo2DX9/VGlE5Ij 6u/x5WpAfsownuYABWzidxaHVX0JNy5iLE69sIZDzt2BdoosEZWR7rOQVleSpDt6O6kr 99RTT6sqIT2rI9keqgGMpiPErdxQbfwuP77wtC5i4AjqDWWKPyeQkesrpDkmniGn+SQm mwwQ== MIME-Version: 1.0 X-Received: by 10.31.10.199 with SMTP id 190mr65120358vkk.51.1451975600340; Mon, 04 Jan 2016 22:33:20 -0800 (PST) Received: by 10.31.214.131 with HTTP; Mon, 4 Jan 2016 22:33:20 -0800 (PST) Date: Tue, 5 Jan 2016 07:33:20 +0100 Message-ID: Subject: merge 19977 21330 21551 From: Anders Lindgren To: control@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a11440176e183bf05289069ca X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11440176e183bf05289069ca Content-Type: text/plain; charset=UTF-8 merge 19977 21330 21551 --001a11440176e183bf05289069ca Content-Type: text/html; charset=UTF-8
merge 19977 21330 21551

--001a11440176e183bf05289069ca-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 26 15:13:04 2016 Received: (at 21330) by debbugs.gnu.org; 26 Dec 2016 20:13:04 +0000 Received: from localhost ([127.0.0.1]:55988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLbdn-0006tY-U6 for submit@debbugs.gnu.org; Mon, 26 Dec 2016 15:13:04 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLbdl-0006t0-If; Mon, 26 Dec 2016 15:13:02 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id CB67D20812; Mon, 26 Dec 2016 15:13:00 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 26 Dec 2016 15:13:00 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=dottedmag.net; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=HrabtBZO9oL8u4pqYb9w4ClHCzE=; b=kbHyY+ 5+nnT5XLBxQEcQNyeV/ETRRuPTAck599G5jjsVDQms/cquvzRt3D265ilG3fP4/9 TroFuba832FS16aPPi7rsddxsTpGsYtquWvREFG5Dhz3ty1oxRyw0HXzZQguPK3l GoX9JHRIyM6RueLneamo5Da+A8DT1sZmnfxA8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=HrabtBZO9oL8u4 pqYb9w4ClHCzE=; b=PSZzRckA3q8b0Zrzn5xCEs1gkruQPkmZrB3CHfuN7DGjnj uQKLDMWNlYGQPhdI6B5HDSdjiAW9uhxZVHsspXrNqG/AFxdq8OooAPbnx79KjVhm r2U7crRdm3FCrmygVIiDYsFP5EOCGPR+wa+Z6cSAPy+QlOOSmYru4j61xLI3M= X-ME-Sender: X-Sasl-enc: 7KgaZcuQIOD6oajQMGn0CpNek2O01ECMSG+ZqVYpSG82 1482783180 Received: from [10.0.10.164] (unknown [141.8.36.65]) by mail.messagingengine.com (Postfix) with ESMTPA id 32F8F7E2B0; Mon, 26 Dec 2016 15:12:59 -0500 (EST) From: "Mikhail Gusarov" To: "Anders Lindgren" , "Kai Yu Zhang" , 21551@debbugs.gnu.org, "Philipp Stephani" , 21330@debbugs.gnu.org, 19977@debbugs.gnu.org Subject: Re: Fix Mac OS X key bindings bug Date: Mon, 26 Dec 2016 21:12:46 +0100 Message-ID: <845DEA9E-D515-4567-B7D2-74FF5A1F0974@dottedmag.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_B567546C-9A70-4930-A9A2-3A2FF8FADA4C_=" Embedded-HTML: [{"HTML":[741, 3579], "plain":[299, 2552], "uuid":"536279DD-9861-4B53-B247-AD635AEF2CB6"}] X-Mailer: MailMate (1.9.6r5319) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21330 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=_MailMate_B567546C-9A70-4930-A9A2-3A2FF8FADA4C_= Hi Anders, I have tried reproducing this discrepancy using my patch from #21330 on top of branch emacs-25. Swedish layout, ns-alternate-modifier set to nil, LCmd-LAlt-9 replies "s-]". Maybe you could check again as well? Best regards, Mikhail. On 2 Jan 2016, at 9:08, Anders Lindgren wrote: > 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. > > 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. > > -- Anders Lindgren > > > On Wed, Dec 30, 2015 at 9:50 AM, Anders Lindgren wrote: > >> Hi, >> >> I'm looking into a key binding bug on OS X reported multiple times (19977, >> 21330, 21551). Two different patches have been submitted. >> >> The original code looks like: >> >> if (is_left_key) >> { >> emacs_event->modifiers |= parse_solitary_modifier >> (ns_command_modifier); >> >> /* if super (default), take input manager's word so things like >> dvorak / qwerty layout work */ >> if (EQ (ns_command_modifier, Qsuper) >> && !fnKeysym >> && [[theEvent characters] length] != 0) >> { >> /* XXX: the code we get will be unshifted, so if we have >> a shift modifier, must convert ourselves */ >> if (!(flags & NSShiftKeyMask)) >> code = [[theEvent characters] characterAtIndex: 0]; >> >> One of the patches simply removes the `if (EQ(...))' statement. The other >> modifies the code to strip away modifiers. >> >> First question: What is the code in the `if (EQ(...))' supposed to do? In >> other words, what will stop working if it is removed? >> >> Second question: if it is needed for the LEFT command key, should the >> corresponding code be added for the RIGHT? >> >> I've tested removing the `if' and Emacs still seems to be working as >> intended, both with a normal key layout and when Dvorak is used. If no one >> comes up with a reason to keep the code, I will remove it. >> >> Third question: Does anybody know of a good way to automatically test >> things like this? What I'm looking for is a way to send keystrokes like >> Cmd-Alt-a to Emacs, that way it could be possible to write tests ensuring >> that things like this don't break in the future. >> >> -- Anders Lindgren >> >> --=_MailMate_B567546C-9A70-4930-A9A2-3A2FF8FADA4C_= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
<= p dir=3D"auto">Hi Anders,

I have tried reproducing this discrepancy using my patch = from #21330
on top of branch emacs-25.

Swedish layout, ns-alternate-modifier set to nil, LCmd-LA= lt-9 replies
"s-]".

Maybe you could check again as well?

Best regards,
Mikhail.

On 2 Jan 2016, at 9:08, Anders Lindgren wrote:

I found a case where the code in question is needed, which= none of the suggested patches handle correctly.

Steps= to repeat:

=C2=A0 =C2=A0=C2=A0(setq ns-alternat= e-modifier nil)

=C2=A0 =C2=A0 Press left CMD-ALT= -9

=C2=A0 =C2=A0 An unmodified Emacs replies &qu= ot;s-]" is not bound. (This assumes a Swedish keyboard layout, other= layouts would yield a different character, but the principle is the same= ).

=C2=A0 =C2=A0 With either of the two patches,= Emacs respond with "s-9" is not bound, which isn't correct= =2E

Unfortunately, I don't know how to disti= nguish between the cases where we need to strip away modifiers (C-s-a) an= d when we shouldn't, so I'm leaving this open for now.
=
=C2=A0 =C2=A0 -- Anders Lindgren


On Wed, Dec 30= , 2015 at 9:50 AM, Anders Lindgren <andlind@gmail.com> w= rote:
Hi,

I'm looking into a key binding bug on OS X reported multiple= times (19977, 21330, 21551). Two different patches have been submitted.<= /div>

The original code looks like:

=C2=A0 =C2=A0 =C2=A0 if (is_left_key)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 emacs_event= ->modifiers |=3D parse_solitary_modifier
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 (ns_command_modifier);

=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* if super (default), take input manager= 's word so things like
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0dvorak / qwerty layout work */
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 if (EQ (ns_command_modifier, Qsuper)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && !fnKeysym
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 && [[theEvent characte= rs] length] !=3D 0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* XXX: the c= ode we get will be unshifted, so if we have
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0a shift modifier, must convert = ourselves */
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 i= f (!(flags & NSShiftKeyMask))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 code =3D [[theEvent characters] characterAtIndex= : 0];

One of the patches simply removes th= e `if (EQ(...))' statement. The other modifies the code to strip away= modifiers.

First question: What is the code in = the `if (EQ(...))' supposed to do? In other words, what will stop wor= king if it is removed?

Second question: if i= t is needed for the LEFT command key, should the corresponding code be ad= ded for the RIGHT?

I've tested removing the = `if' and Emacs still seems to be working as intended, both with a nor= mal key layout and when Dvorak is used. If no one comes up with a reason = to keep the code, I will remove it.

Third questi= on: Does anybody know of a good way to automatically test things like thi= s? What I'm looking for is a way to send keystrokes like Cmd-Alt-a to= Emacs, that way it could be possible to write tests ensuring that things= like this don't break in the future.

=C2=A0 =C2=A0 -- Anders Lindgren=


--=_MailMate_B567546C-9A70-4930-A9A2-3A2FF8FADA4C_=-- From unknown Fri Aug 15 03:37:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 20 Mar 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator