unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 10018@debbugs.gnu.org, Oleksandr Gavenko <gavenko@bifit.com.ua>
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	[thread overview]
Message-ID: <87wravoi3k.fsf@mail.jurta.org> (raw)
In-Reply-To: <jwvaa7t4dt5.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 18 Nov 2011 11:07:06 -0500")

> 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





  reply	other threads:[~2011-11-19 22:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 12:01 bug#10018: 24.0.91; C-x * Q not work if I switch input method (use C-\) Oleksandr Gavenko
2011-11-15 19:51 ` Juri Linkov
2011-11-18 16:07   ` Stefan Monnier
2011-11-19 22:30     ` Juri Linkov [this message]
2011-11-20 19:42       ` Stefan Monnier
2011-11-21 23:59         ` Juri Linkov
2011-11-22  0:07           ` Jay Belanger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wravoi3k.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=10018@debbugs.gnu.org \
    --cc=gavenko@bifit.com.ua \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).