GNU logs - #14736, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14736: 24.3; "Insert" key results in question mark mouse cursor and does not send a keyboard event
Resent-From: Kumaran Santhanam <kumaran@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 28 Jun 2013 01:26:02 +0000
Resent-Message-ID: <handler.14736.B.137238273323440 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 14736
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 14736 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.137238273323440
          (code B ref -1); Fri, 28 Jun 2013 01:26:02 +0000
Received: (at submit) by debbugs.gnu.org; 28 Jun 2013 01:25:33 +0000
Received: from localhost ([127.0.0.1]:45902 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UsNRL-00065z-AZ
	for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:25:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40670)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <kumaran@HIDDEN>) id 1UsNNS-0005yL-5G
 for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:21:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNNI-0000Ro-J0
 for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:21:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:40744)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNNI-0000Rk-Gt
 for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:21:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42353)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNND-0005gf-Q5
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jun 2013 21:21:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNN9-00008s-3P
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jun 2013 21:21:15 -0400
Received: from na3sys009aog122.obsmtp.com ([74.125.149.147]:48618)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNN8-00005h-RN
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jun 2013 21:21:11 -0400
Received: from mail.nerur.com ([173.228.91.168]) (using TLSv1) by
 na3sys009aob122.postini.com ([74.125.148.12]) with SMTP
 ID DSNKUczlAotvC0ORkU71zlSRKvdU5GH0ojYs@HIDDEN;
 Thu, 27 Jun 2013 18:21:10 PDT
Date: Thu, 27 Jun 2013 18:21:04 -0700 (PDT)
From: Kumaran Santhanam <kumaran@HIDDEN>
Message-ID: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN>
In-Reply-To: <177174145.5314.1372381840342.JavaMail.root@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
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: -5.0 (-----)
X-Mailman-Approved-At: Thu, 27 Jun 2013 21:25:29 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Mac OS X, the "Insert" key on external keyboards is mapped to "Help".  Therefore, when the "Insert" key is pressed, the mouse cursor turns into a question mark and the key is not passed to Emacs to process.  This is problematic because users may have keybindings from Linux and Windows that make use of the "Insert" key.

The VIM project was able to resolve this issue by using the following code in the sendEvent method:

<code>
    // HACK! Intercept 'help' key presses and clear the 'help key flag', else
    // Cocoa turns the mouse cursor into a question mark and goes into 'context
    // help mode' (the keyDown: event itself never reaches the text view).  By
    // clearing the 'help key flag' this event will be treated like a normal
    // key event.
    if ((NSKeyDown == type || NSKeyUp == type) && (flags & NSHelpKeyMask)) {
        flags &= ~NSHelpKeyMask;
        event = [NSEvent keyEventWithType:[event type]
                                 location:[event locationInWindow]
                            modifierFlags:flags
                                timestamp:[event timestamp]
                             windowNumber:[event windowNumber]
                                  context:[event context]
                               characters:[event characters]
              charactersIgnoringModifiers:[event charactersIgnoringModifiers]
                                isARepeat:[event isARepeat]
                                  keyCode:[event keyCode]];
</code>

The full source is here:
https://code.google.com/p/macvim/source/browse/trunk/MMApplication.m

It would be a great benefit to users if this patch could be included in the upcoming point release.

Thanks,
Kumaran


-----


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
 '--with-ns' 'build_alias=i686-apple-darwin'
 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
 -isystem
 /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
 -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Kumaran Santhanam <kumaran@HIDDEN>
Subject: bug#14736: Acknowledgement (24.3; "Insert" key results in
 question mark mouse cursor and does not send a keyboard event)
Message-ID: <handler.14736.B.137238273323440.ack <at> debbugs.gnu.org>
References: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN>
X-Gnu-PR-Message: ack 14736
X-Gnu-PR-Package: emacs
Reply-To: 14736 <at> debbugs.gnu.org
Date: Fri, 28 Jun 2013 01:26:02 +0000

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@HIDDEN

If you wish to submit further information on this problem, please
send it to 14736 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
14736: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14736
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#14736: 24.3; "Insert" key results in question mark mouse cursor and does not send a keyboard event
Resent-From: Alan Third <alan@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 31 May 2016 20:42:01 +0000
Resent-Message-ID: <handler.14736.B14736.14647272801367 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 14736
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Kumaran Santhanam <kumaran@HIDDEN>
Cc: 14736 <at> debbugs.gnu.org
Received: via spool by 14736-submit <at> debbugs.gnu.org id=B14736.14647272801367
          (code B ref 14736); Tue, 31 May 2016 20:42:01 +0000
Received: (at 14736) by debbugs.gnu.org; 31 May 2016 20:41:20 +0000
Received: from localhost ([127.0.0.1]:48750 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b7qTX-0000Ly-RD
	for submit <at> debbugs.gnu.org; Tue, 31 May 2016 16:41:19 -0400
Received: from mail-wm0-f46.google.com ([74.125.82.46]:38041)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1b7qTV-0000Lm-JH
 for 14736 <at> debbugs.gnu.org; Tue, 31 May 2016 16:41:18 -0400
Received: by mail-wm0-f46.google.com with SMTP id a20so734573wma.1
 for <14736 <at> debbugs.gnu.org>; Tue, 31 May 2016 13:41:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=5JQcU2XV39zLugx9FJvGh5oL6U1K5LqTGebzAWnpJMo=;
 b=ZqlmM3UG2aQZK3/tLGzSNH3HIjsq/avjv2A+rYF+dPYy+/lU5xBF7MzgYphAxx/UFD
 eT5x6+Khr0wU7SnoMVAOiwhJlsCQjXwFssIU7GjoHPJFZvX2HaigspYFy1guauqVYUZV
 3pofURZwHzFwB/yt7JZ4PvkdtQ10PbtGXDJo1EpcZTXif85alRCd4Vzh5zMKva8IUhxY
 OgCWgGErYoskwl0EiHRPPNydZTezA3rxigmVgy2EtGLn66hIMsKeq5YGIYW/1yLYqN0q
 z3yDYj3rHVdcNQoGMIsTFoz1pLxJdHRRfEot5aA3JvXf4XfJrHvZthHa8AXcgajBoHTH
 cjcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=5JQcU2XV39zLugx9FJvGh5oL6U1K5LqTGebzAWnpJMo=;
 b=Gbpd52PSmpRUBECfB4WC0EAyfbWIsQvmf77lbH/AxFIiA9xMlFkYi8PzQQIBWDXNZa
 Uw7ufraBunTboO0B+SAExDn8dbEvMowLqn7AAKa46udlxM9idj4gahiCFJmTitXev9Tl
 L5/MxOI7fsQJfDx45e4aKh5Tcht0ZwKTM5L9e80Dp+Uy7VbQn450JQKPFsMjR+HFZFOX
 13JVCz4GxXJvwZKJlKTAEI7RYYSGqN15IAkzaQpqGyLHhoCI6OUor4KFZCUpi6VN6mxk
 X0iuoc1c7o7NMBDeMxD9Mk63mkjg+CxAlZZU0GpSJUad51uqdFkmQAAqqeiVYog6NKBj
 O6IA==
X-Gm-Message-State: ALyK8tLDVrIdUVu5C1IlwknD4VyQxJNOFe0xqCUFiC34ibbuStufs5l1giXQyhncvt9JnQ==
X-Received: by 10.28.62.69 with SMTP id l66mr17200719wma.70.1464727271878;
 Tue, 31 May 2016 13:41:11 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-20c5-ff51-aaec-eb15.holly.idiocy.org.
 [2001:8b0:3f8:8129:20c5:ff51:aaec:eb15])
 by smtp.gmail.com with ESMTPSA id q189sm5103662wmd.19.2016.05.31.13.41.11
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 31 May 2016 13:41:11 -0700 (PDT)
From: Alan Third <alan@HIDDEN>
References: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN>
Date: Tue, 31 May 2016 21:41:10 +0100
In-Reply-To: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN> (Kumaran
 Santhanam's message of "Thu, 27 Jun 2013 18:21:04 -0700 (PDT)")
Message-ID: <m2r3ciufix.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Kumaran Santhanam <kumaran@HIDDEN> writes:

> On Mac OS X, the "Insert" key on external keyboards is mapped to
> "Help". Therefore, when the "Insert" key is pressed, the mouse cursor
> turns into a question mark and the key is not passed to Emacs to
> process. This is problematic because users may have keybindings from
> Linux and Windows that make use of the "Insert" key.

Confirmed as still present in Emacs 25.

Is there some use for the "help" key and question-mark pointer?

Interestingly, it looks like on recent Apple keyboards "insert" is
replaced with fn instead of help.
-- 
Alan Third




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 31 May 2016 20:42:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 31 16:42:28 2016
Received: from localhost ([127.0.0.1]:48754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b7qUe-0000Ng-4O
	for submit <at> debbugs.gnu.org; Tue, 31 May 2016 16:42:28 -0400
Received: from mail-wm0-f45.google.com ([74.125.82.45]:34397)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1b7qUc-0000NT-7k
 for control <at> debbugs.gnu.org; Tue, 31 May 2016 16:42:26 -0400
Received: by mail-wm0-f45.google.com with SMTP id z87so24486398wmh.1
 for <control <at> debbugs.gnu.org>; Tue, 31 May 2016 13:42:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20120113;
 h=sender:date:message-id:to:from:subject;
 bh=EupWxUCrUImzSzwDkdTH8rarJxtrVNoc3ZGEKiJJ9UU=;
 b=znXAxx9TxPWzvBsMUhO6s12OviHpdxFD8IBGuXQyLT2P40bH52vneBX0vvvNS0wz7g
 uIQjPbWtW/ETkc0PSnlm4wNQdVog5O31NYPTV4GhdMImwXl8sBk2DiVz/fSSZoxx1DVr
 KUzcl1UkecXU/U2ti+kWCEWmxM29GqDA3A2gS0D3eFIThS9gVA/tuAgUvBjdQFv9wY/m
 TUjuliRksBvPW2APpmvoxEgfqfgczTQmQW98TXe1JaVNHy/lOcp6FpAcyyKpMEgQsa+0
 3JIi7Ok7r0tGKNBsLYKwtQ68545x9ZUnY6er2gSzabtd1XTJpn500jh52J3VDZ0Ibb4b
 BzbA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:date:message-id:to:from:subject;
 bh=EupWxUCrUImzSzwDkdTH8rarJxtrVNoc3ZGEKiJJ9UU=;
 b=jMq/a3PQ0qrTtQ0PQDLkr0hAOF7ppneZC9la1UIQ6PwgGktG+yaBIeOQnbiiZIlI1/
 Uw0NWcK/VdNVqTIxV4mjGh4VE80TszXzoQOSzuAFNAKLO008zYEDKq8hVk4/Lj6dHZ1/
 pnQtM6RjyoXvsajC+dTJ/KHw8w0YUB1YDaVCI5jQVV243O+LtHl9rUS04vsfQS2sA/PF
 xfJHYpFZ4M20w4cNLqTxFA9JF0dLeT5nLYv7APBTkIG6iJxY7Jjt4zmGW81iZEqT7+Mg
 XN0ulE10zrTspD9/0TpzLBpibAe4W+zel60PJBiXq6Df+jZFRiiLA4h+FylHp0qKFQDp
 IrNg==
X-Gm-Message-State: ALyK8tI/ZUOFTYUQcy2ln3YzDkx+AkqrVl+SUV/pG1ktdmWlBvBNR2MGVso6pkMK2DCOEA==
X-Received: by 10.194.72.103 with SMTP id c7mr37105167wjv.65.1464727340712;
 Tue, 31 May 2016 13:42:20 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-20c5-ff51-aaec-eb15.holly.idiocy.org.
 [2001:8b0:3f8:8129:20c5:ff51:aaec:eb15])
 by smtp.gmail.com with ESMTPSA id f12sm31172970wme.13.2016.05.31.13.42.20
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 31 May 2016 13:42:20 -0700 (PDT)
Date: Tue, 31 May 2016 21:42:19 +0100
Message-Id: <m2pos2ufh0.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Alan Third <alan@HIDDEN>
Subject: control message for bug #14736
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

tags 14736 confirmed





Last modified: Tue, 31 May 2016 20:45:02 UTC

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