key_add(doc_default_cmd, "doc:push-point", &doc_push_point);
key_add(doc_default_cmd, "doc:pop-point", &doc_pop_point);
key_add(doc_default_cmd, "doc:attach-view", &doc_attach_view);
- key_add(doc_default_cmd, "doc:attach-helper", &doc_attach_helper);
+ key_add(doc_default_cmd, "doc:get-doc", &doc_attach_helper);
key_add(doc_default_cmd, "Close", &doc_close_doc);
key_add(doc_default_cmd, "doc:word", &doc_word);
return 1;
}
-DEF_CMD(doc_attach_helper)
+DEF_CMD(doc_get_doc)
{
if (!ci->comm2)
return Enoarg;
key_add(doc_default_cmd, "doc:push-point", &doc_push_point);
key_add(doc_default_cmd, "doc:pop-point", &doc_pop_point);
key_add(doc_default_cmd, "doc:attach-view", &doc_attach_view);
- key_add(doc_default_cmd, "doc:attach-helper", &doc_attach_helper);
+ key_add(doc_default_cmd, "doc:get-doc", &doc_get_doc);
key_add(doc_default_cmd, "Close", &doc_close_doc);
key_add(doc_default_cmd, "doc:word", &doc_word);
if (rv != Efallthrough)
return rv;
- call_comm("doc:attach-helper", ci->focus, &aspell_attach_helper);
+ call_comm("doc:get-doc", ci->focus, &aspell_attach_helper);
return call("doc:notify:aspell:check", ci->focus, 0, NULL, ci->str);
}
if (rv != Efallthrough)
return rv;
- call_comm("doc:attach-helper", ci->focus, &aspell_attach_helper);
+ call_comm("doc:get-doc", ci->focus, &aspell_attach_helper);
return call_comm("doc:notify:aspell:suggest", ci->focus, ci->comm2,
0, NULL, ci->str);
}
if (rv != Efallthrough)
return rv;
- call_comm("doc:attach-helper", ci->focus, &aspell_attach_helper);
+ call_comm("doc:get-doc", ci->focus, &aspell_attach_helper);
return call_comm("doc:notify:aspell:add-word", ci->focus, ci->comm2,
ci->num, NULL, ci->str);
}
ksuffix(ci, "interactive-cmd-dict-"));
if (ret != Efallthrough)
return ret;
- call_comm("doc:attach-helper", ci->focus, &aspell_attach_helper);
+ call_comm("doc:get-doc", ci->focus, &aspell_attach_helper);
return call("doc:notify:aspell:set-dict", ci->focus, 0, NULL,
ksuffix(ci, "interactive-cmd-dict-"));
}
self.vend = mark2.dup()
if (not self.helper_attached and
not self.call("doc:notify:spell:mark-checked")):
- self.call("doc:attach-helper", autospell_attach_helper)
+ self.call("doc:get-doc", autospell_attach_helper)
self.helper_attached = True
self.sched()
return edlib.Efallthrough