From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17659: 24.3.90; C-x 8 ? displays help instead of inserting INVERTED QUESTION MARK Date: Wed, 18 Jun 2014 23:52:49 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403150008 2018 80.91.229.3 (19 Jun 2014 03:53:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2014 03:53:28 +0000 (UTC) Cc: 17659-done@debbugs.gnu.org To: Eric Hanchrow Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 19 05:53:21 2014 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 1WxTPc-0005RF-M9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jun 2014 05:53:20 +0200 Original-Received: from localhost ([::1]:33509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxTPc-0006i6-Cm for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 23:53:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxTPS-0006g3-9Y for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 23:53:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxTPK-0002pH-QC for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 23:53:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxTPK-0002pA-MW for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 23:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WxTPK-000863-EL for bug-gnu-emacs@gnu.org; Wed, 18 Jun 2014 23:53:02 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jun 2014 03:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17659@debbugs.gnu.org, monnier@iro.umontreal.ca, eric.hanchrow@gmail.com Original-Received: via spool by 17659-done@debbugs.gnu.org id=D17659.140314997831106 (code D ref 17659); Thu, 19 Jun 2014 03:53:01 +0000 Original-Received: (at 17659-done) by debbugs.gnu.org; 19 Jun 2014 03:52:58 +0000 Original-Received: from localhost ([127.0.0.1]:52327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxTPF-00085e-Du for submit@debbugs.gnu.org; Wed, 18 Jun 2014 23:52:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:6696) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WxTPD-00085M-FO for 17659-done@debbugs.gnu.org; Wed, 18 Jun 2014 23:52:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="67965798" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Jun 2014 23:52:49 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 83BF762D00; Wed, 18 Jun 2014 23:52:49 -0400 (EDT) In-Reply-To: (Eric Hanchrow's message of "Sat, 31 May 2014 21:00:12 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:90534 Archived-At: > The subject says it all: when I type C-x 8 ?, I expect emacs to insert > into the buffer Unicode 191, INVERTED QUESTION MARK. However, instead > it displays a *Help* buffer whose first line reads > Key translations Starting With C-x 8: I installed the patch below into emacs-24 which seems to fix this problem. Stefan === modified file 'src/keyboard.c' --- src/keyboard.c 2014-05-06 16:16:57 +0000 +++ src/keyboard.c 2014-06-19 03:30:12 +0000 @@ -9384,16 +9385,6 @@ first_unbound = min (t, first_unbound); head = EVENT_HEAD (key); - if (help_char_p (head) && t > 0) - { - read_key_sequence_cmd = Vprefix_help_command; - keybuf[t++] = key; - last_nonmenu_event = key; - /* The Microsoft C compiler can't handle the goto that - would go here. */ - dummyflag = 1; - break; - } if (SYMBOLP (head)) { @@ -9651,6 +9642,17 @@ goto replay_sequence; } + + if (NILP (current_binding) + && help_char_p (EVENT_HEAD (key)) && t > 1) + { + read_key_sequence_cmd = Vprefix_help_command; + /* The Microsoft C compiler can't handle the goto that + would go here. */ + dummyflag = 1; + break; + } + /* If KEY is not defined in any of the keymaps, and cannot be part of a function key or translation, and is a shifted function key,