bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10018: 24.0.91; C-x * Q not work if I switch input method (use C-\).


From: Stefan Monnier
Subject: bug#10018: 24.0.91; C-x * Q not work if I switch input method (use C-\)...
Date: Sun, 20 Nov 2011 14:42:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux)

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

That looks OK to me.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]