{"action":"opened","issue":{"url":"https://api.github.com/repos/emacs-jp/migemo/issues/21","labels_url":"https://api.github.com/repos/emacs-jp/migemo/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/emacs-jp/migemo/issues/21/comments","events_url":"https://api.github.com/repos/emacs-jp/migemo/issues/21/events","html_url":"https://github.com/emacs-jp/migemo/issues/21","id":106972228,"number":21,"title":"Incompatibility with last cmigemo","user":{"login":"thierryvolpiatto","id":1533939,"avatar_url":"https://avatars.githubusercontent.com/u/1533939?v=3","gravatar_id":"","url":"https://api.github.com/users/thierryvolpiatto","html_url":"https://github.com/thierryvolpiatto","followers_url":"https://api.github.com/users/thierryvolpiatto/followers","following_url":"https://api.github.com/users/thierryvolpiatto/following{/other_user}","gists_url":"https://api.github.com/users/thierryvolpiatto/gists{/gist_id}","starred_url":"https://api.github.com/users/thierryvolpiatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thierryvolpiatto/subscriptions","organizations_url":"https://api.github.com/users/thierryvolpiatto/orgs","repos_url":"https://api.github.com/users/thierryvolpiatto/repos","events_url":"https://api.github.com/users/thierryvolpiatto/events{/privacy}","received_events_url":"https://api.github.com/users/thierryvolpiatto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T12:24:09Z","updated_at":"2015-09-17T12:24:09Z","closed_at":null,"body":"It seems that migemo.el doesn't accept the \"-w\" switch of cmigemo.\r\n\r\nThe \"-w\" switch should appear at end of command, unfortunately, `migemo-init` is appending the\r\n`migemo-options` on top of the `migemo-dictionary` settings.\r\n\r\nI add to modify `migemo-init` like this:\r\n\r\n```diff\r\ndiff --git a/migemo.el b/migemo.el\r\nindex ccfe1ae..fe0ab33 100755\r\n--- a/migemo.el\r\n+++ b/migemo.el\r\n@@ -221,14 +221,14 @@\r\n \t   (eq (process-status migemo-process) 'run))\r\n       (let ((options\r\n \t     (delq nil\r\n-\t\t   (append migemo-options\r\n-\t\t\t   (when (and migemo-user-dictionary\r\n+\t\t   (append (when (and migemo-user-dictionary\r\n \t\t\t\t      (file-exists-p migemo-user-dictionary))\r\n \t\t\t     (list \"-u\" migemo-user-dictionary))\r\n \t\t\t   (when (and migemo-regex-dictionary\r\n \t\t\t\t      (file-exists-p migemo-regex-dictionary))\r\n \t\t\t     (list \"-r\" migemo-regex-dictionary))\r\n-\t\t\t   (list \"-d\" migemo-dictionary)))))\r\n+\t\t\t   (list \"-d\" migemo-dictionary)\r\n+                           migemo-options))))\r\n \t(setq migemo-buffer (get-buffer-create \" *migemo*\"))\r\n \t(setq migemo-process (migemo-start-process\r\n \t\t\t      \"migemo\" migemo-buffer migemo-command options))\r\n\r\n\r\n```"}}