Jean-Marc Lasgouttes wrote:

> Unknown means that the command itself is unknown. This is used if you
> enter a bogus command, of course, but also getStatus can say that
> LFUN_THESAURUS is unknown is thesaurus support has not been compiled
> in. In this case, the command will not appear in the menu.

Better like this? I confused UNKNOWN with the return value 'false' of
getStatus.


Georg
Index: src/FuncStatus.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/FuncStatus.h,v
retrieving revision 1.7
diff -u -p -r1.7 FuncStatus.h
--- src/FuncStatus.h	21 Apr 2005 09:27:40 -0000	1.7
+++ src/FuncStatus.h	21 Apr 2005 11:11:16 -0000
@@ -23,7 +23,9 @@ private:
 	enum StatusCodes {
 		/// Command can be executed
 		OK = 0,
-		/// It is unknown wether the command can be executed or not
+		/// This command does not exist, possibly because it is not
+		/// compiled in (e.g. LFUN_THESAURUS) or the user mistyped
+		/// it in the minibuffer. UNKNOWN commands have no menu entry.
 		UNKNOWN = 1,
 		/// Command cannot be executed
 		DISABLED = 2,

Reply via email to