[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-\).
bug#10018: 24.0.91; C-x * Q not work if I switch input method (use C-\)...
Sun, 20 Nov 2011 14:42:05 -0500
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))
That looks OK to me.