{"action":"created","issue":{"url":"https://api.github.com/repos/purcell/mmm-mode/issues/52","labels_url":"https://api.github.com/repos/purcell/mmm-mode/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/purcell/mmm-mode/issues/52/comments","events_url":"https://api.github.com/repos/purcell/mmm-mode/issues/52/events","html_url":"https://github.com/purcell/mmm-mode/issues/52","id":87790571,"number":52,"title":"\"Wrong type argument: stringp, nil\" on saving buffer that hasn't got parts of other major mode","user":{"login":"vlatkoB","id":2315313,"avatar_url":"https://avatars.githubusercontent.com/u/2315313?v=3","gravatar_id":"","url":"https://api.github.com/users/vlatkoB","html_url":"https://github.com/vlatkoB","followers_url":"https://api.github.com/users/vlatkoB/followers","following_url":"https://api.github.com/users/vlatkoB/following{/other_user}","gists_url":"https://api.github.com/users/vlatkoB/gists{/gist_id}","starred_url":"https://api.github.com/users/vlatkoB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlatkoB/subscriptions","organizations_url":"https://api.github.com/users/vlatkoB/orgs","repos_url":"https://api.github.com/users/vlatkoB/repos","events_url":"https://api.github.com/users/vlatkoB/events{/privacy}","received_events_url":"https://api.github.com/users/vlatkoB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-12T17:07:05Z","updated_at":"2015-06-13T05:39:29Z","closed_at":null,"body":"Hi,\r\n\r\nsaving works without problems if buffer has parts of other mode (in this case, if Haskell module has Hamlet code).\r\nHowever, when I try to save Haskell buffer without Hamlet code, minibuffer shows \"Wrong type argument: stringp, nil\"\r\n\r\nThis is config:\r\n```\r\n    (use-package mmm-auto)\r\n    (use-package mmm-vars)\r\n    (setq mmm-global-mode 'maybe)\r\n    (mmm-add-classes\r\n     '((hamlet-quasiquote\r\n\t  :submode hamlet-mode\r\n\t  :delimiter-mode nil\r\n\t  :front \"\\\\[?hamlet|\"\r\n\t  :back \"|\\\\]\")))\r\n    (mmm-add-mode-ext-class 'haskell-mode nil 'hamlet-quasiquote)\r\n```\r\nThis is truncated debugger output:\r\n```\r\nDebugger entered--Lisp error: (wrong-type-argument stringp nil)\r\n  string-width(nil)\r\n  company-ghc--search-import-start()\r\n  company-ghc--scan-impdecl()\r\n  company-ghc-scan-modules()\r\n  run-hooks(after-save-hook)\r\n  basic-save-buffer()\r\n  save-buffer(1)\r\n  call-interactively(save-buffer nil nil)\r\n  command-execute(save-buffer)\r\n```\r\nUsing \"mmm-mode-20150610.1544\" from Melpa.\r\n\r\nBest regards,\r\n\r\nvlatko"},"comment":{"url":"https://api.github.com/repos/purcell/mmm-mode/issues/comments/111674375","html_url":"https://github.com/purcell/mmm-mode/issues/52#issuecomment-111674375","issue_url":"https://api.github.com/repos/purcell/mmm-mode/issues/52","id":111674375,"user":{"login":"vlatkoB","id":2315313,"avatar_url":"https://avatars.githubusercontent.com/u/2315313?v=3","gravatar_id":"","url":"https://api.github.com/users/vlatkoB","html_url":"https://github.com/vlatkoB","followers_url":"https://api.github.com/users/vlatkoB/followers","following_url":"https://api.github.com/users/vlatkoB/following{/other_user}","gists_url":"https://api.github.com/users/vlatkoB/gists{/gist_id}","starred_url":"https://api.github.com/users/vlatkoB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlatkoB/subscriptions","organizations_url":"https://api.github.com/users/vlatkoB/orgs","repos_url":"https://api.github.com/users/vlatkoB/repos","events_url":"https://api.github.com/users/vlatkoB/events{/privacy}","received_events_url":"https://api.github.com/users/vlatkoB/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T05:39:29Z","updated_at":"2015-06-13T05:39:29Z","body":"@iquiw I see you can generate error. Do you still need steps and/or additional info?"}}