ogata0916 / mozc

Automatically exported from code.google.com/p/mozc
0 stars 0 forks source link

emacs-mozc: INHERIT-INPUT-METHOD option of minibuffer input functions doesn't activate mozc-mode #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In the scratch buffer, type "(read-string "test: " nil nil nil t)"
2. Activate mozc-mode as leim (C-\)
3. Evaluate the S-expression above by `eval-defun' (C-M-x) and input something
4. Evaluate the S-expression again and input something

What is the expected output?

The 5th argument INHERIT-INPUT-METHOD is t, so in this case the minibuffer 
inputs should always start with mozc-mode ON.

What do you see instead?

The first time (step 3), INHERIT-INPUT-METHOD works well.
The second time (step 4), mozc-mode is not activated though 
`current-input-method' is "japanese-mozc".

What version of the product are you using? On what operating system?

1.11.1522.102-1ubuntu1 on Ubuntu 13.10

Please provide any additional information below.

For now I'm using the following workaround:

(defun mozc-mode-activate ()
  (if (equal current-input-method "japanese-mozc")
      (mozc-mode 1)))

(add-hook 'minibuffer-setup-hook 'mozc-mode-activate)

Original issue reported on code.google.com by irieshin...@gmail.com on 4 Nov 2013 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by yukawa@google.com on 4 Nov 2013 at 11:40

GoogleCodeExporter commented 9 years ago
Note: I think the workaround I mentioned above doesn't really resolve the 
issue, because the input mode such as `hiragana' and `half-ascii' will not be 
inherited.

Original comment by irieshin...@gmail.com on 6 Nov 2013 at 4:32

GoogleCodeExporter commented 9 years ago

Original comment by yukishi...@google.com on 15 Jan 2014 at 2:59