1999-10-24 Lars Gullik Bjønnes <larsbj@lyx.org>
+ * src/spellchecker.C (create_ispell_pipe): removed old #warning,
+ the code has shown itself to work
+ (create_ispell_pipe): removed another warning, added a comment
+ instead.
+
+ * src/minibuffer.C (ExecutingCB): removed code that has been
+ commented out a long time
+
+ * src/lyxfunc.C (processKeyEvent): removed some very old commented
+ out code + a warning.
+
* src/support/lyxstring.h: comment out the three private
operators, when compiling with string ansi conforming compilers
they make problems.
Dispatch(action, argument.c_str());
show_sc = tmp_sc;
- // Need this for deadkeys (alkis)
- //keyseq.length=0;
- // ...but that breaks the minibuffer's display of "M-"...
-#ifdef WITH_WARNINGS
-#warning How does the deadkeys react to this?
-#endif
return 0;
}
obj->addHistory(obj->cur_cmd);
// Split command into function and argument
- // This is done wrong Asger. Instead of <function argument>
- // it ends up as <argument function> Queer solution:
string arg = obj->cur_cmd;
string function;
if (contains(arg, " ")) {
}
lyxerr.debug() << "Function: " << function
<< "\nArg : " << arg << endl;
- // Check if the name is valid (ale)
- // No, let the dispatch functions handle that.
- //int action = lyxaction.LookupFunc(function.c_str());
- //lyxerr.debug(string("minibuffer action: ") + action);
- //if (action>=0) {
- // Dispatch only returns requested data for a few commands (ale)
+
+ // Dispatch only returns requested data for a few commands (ale)
string res=obj->owner->getLyXFunc()->Dispatch(function.c_str(),
arg.c_str());
lyxerr.debug() << "Minibuffer Res: " << res << endl;
-/* if (!res.empty())
- if(obj->owner->getLyXFunc()->errorStat())
- obj->Set(_("Error:"), _(res.c_str()), string(), 4);
- else
- obj->Set(_("Result:"), _(res.c_str()), string(), 4);
- else
- obj->Init();
-*/
- //} else {
-#ifdef WITH_WARNINGS
-#warning Look at this.
-#endif
- //obj->Set(_("Cannot find function"), function, "!");
obj->shows_no_match = false;
- //}
return ;
}
// Actually I used it to tell if it's truly Ispell or if it's
// aspell -- (kevinatk@home.com)
char buf[2048];
-#ifdef WITH_WARNINGS
-#warning verify that this works.
-#endif
fd_set infds;
struct timeval tv;
int retval = 0;
} else if (retval == 0) {
// timeout. Give nice message to user.
lyxerr << "Ispell read timed out, what now?" << endl;
-#ifdef WITH_WARNINGS
-#warning Is this the correct thing to do?
-#endif
+ // This probably works but could need some thought
isp_pid = -1;
close(pipeout[0]); close(pipeout[1]);
close(pipein[0]); close(pipein[1]);