From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10018: 24.0.91; C-x * Q not work if I switch input method (use C-\)... Date: Sun, 20 Nov 2011 00:30:15 +0200 Organization: JURTA Message-ID: <87wravoi3k.fsf@mail.jurta.org> References: <84d3cy7tqj.fsf@bifit.com.ua> <87ehx9noz0.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321742290 22183 80.91.229.12 (19 Nov 2011 22:38:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2011 22:38:10 +0000 (UTC) Cc: 10018@debbugs.gnu.org, Oleksandr Gavenko To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 23:38:02 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RRtXu-0006ln-Pm for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 23:38:02 +0100 Original-Received: from localhost ([::1]:45802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRtXt-0005wq-U7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 17:38:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRtXq-0005wX-TH for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 17:37:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRtXp-0000Kx-VF for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 17:37:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRtXp-0000Ko-Pt for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 17:37:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RRtYr-00052E-Le for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2011 17:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2011 22:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10018-submit@debbugs.gnu.org id=B10018.132174232719334 (code B ref 10018); Sat, 19 Nov 2011 22:39:01 +0000 Original-Received: (at 10018) by debbugs.gnu.org; 19 Nov 2011 22:38:47 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRtYc-00051m-Dx for submit@debbugs.gnu.org; Sat, 19 Nov 2011 17:38:46 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRtYa-00051f-Bq for 10018@debbugs.gnu.org; Sat, 19 Nov 2011 17:38:45 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id B111D6E8061; Sat, 19 Nov 2011 14:37:38 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id E900D451C615; Sat, 19 Nov 2011 14:37:35 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Fri, 18 Nov 2011 11:07:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 19 Nov 2011 17:39:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54076 Archived-At: > I suspect the real intention is to obey function-key-map and friends. > So I think this code should temporarily disable input-method processing. I don't know whether this is the right fix, but it helps when `input-method-function' is bound to nil in `calc-read-key-sequence': === modified file 'lisp/calc/calc.el' --- lisp/calc/calc.el 2011-11-15 17:37:37 +0000 +++ lisp/calc/calc.el 2011-11-19 22:28:18 +0000 @@ -1235,7 +1235,8 @@ (defun calc-read-key-sequence (prompt ma (glob (current-global-map)) (loc (current-local-map))) (or (input-pending-p) (message "%s" prompt)) - (let ((key (calc-read-key t))) + (let ((key (calc-read-key t)) + (input-method-function nil)) (calc-unread-command (cdr key)) (unwind-protect (progn