The subject tells it all. We could try to have a somewhat more subtle
approach, but I am not sure it is worth the effort.

Comments?

JMarc

Index: src/lyxfunc.C
===================================================================
--- src/lyxfunc.C	(révision 17771)
+++ src/lyxfunc.C	(copie de travail)
@@ -547,8 +547,7 @@ FuncStatus LyXFunc::getStatus(FuncReques
 		string const name = cmd.getArg(0);
 		if (!buf)
 			enable = name == "aboutlyx"
-				|| name == "file"
-				|| name == "forks"
+				|| name == "file" //FIXME: should be removed.
 				|| name == "prefs"
 				|| name == "texinfo";
 		else if (name == "print")
@@ -558,14 +557,14 @@ FuncStatus LyXFunc::getStatus(FuncReques
 			enable = cur.inset().lyxCode() != InsetBase::ERT_CODE;
 		else if (name == "latexlog")
 			enable = isFileReadable(FileName(buf->getLogName().second));
-#if !defined (USE_ASPELL) && !defined (USE_ISPELL) && !defined (USE_PSPELL)
 		else if (name == "spellchecker")
+#if defined (USE_ASPELL) || defined (USE_ISPELL) || defined (USE_PSPELL)
+			enable = !buf->isReadonly();
+#else
 			enable = false;
 #endif
 		else if (name == "vclog")
 			enable = buf->lyxvc().inUse();
-		else if (name == "view-source")
-			enable = buf;
 		break;
 	}
 
Index: lib/bind/aqua.bind
===================================================================
--- lib/bind/aqua.bind	(révision 17771)
+++ lib/bind/aqua.bind	(copie de travail)
@@ -126,7 +126,6 @@
 
 \bind "M-~S-v l"		"latex-view-log"
 \bind "M-~S-v t"		"toc-view"
-\bind "M-~S-v c"		"show-forks"
 \bind "M-~S-v x"		"help-Texinfo"
 
 \bind "M-~S-n e"		"error-next"

Reply via email to