>>>>> "John" == John McCabe-Dansted <[EMAIL PROTECTED]> writes:

>> Sure, the "extra trouble" only ever occur for power users.
John> Perhaps we could have a new minibuffer command save-unchanged
John> which would save the document even if it is unchanged. Such
John> power users could replace "save" with "save-unchanged" in their
John> .bind files etc.

It is easiest to do an explicit change when needed.

John> If LyX locked files which were open in a still running LyX
John> process, that would have saved me some confusion.

Yes, but I am sure this can cause a lot of confusion too...

Anyway, I have an additional patch for this bug. Anyone disagrees?

JMarc

Index: src/ChangeLog
===================================================================
--- src/ChangeLog	(revision 13424)
+++ src/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2006-03-20  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* lyxfunc.C (getStatus): always allow saving unnamed buffers (bug
+	2313 cont'd).
+
 2006-03-16  Jürgen Spitzmüller  <[EMAIL PROTECTED]>
 
 	* text.C (delete): adjust cursor after backspace in change tracking
Index: src/lyxfunc.C
===================================================================
--- src/lyxfunc.C	(revision 13424)
+++ src/lyxfunc.C	(working copy)
@@ -541,7 +541,8 @@ FuncStatus LyXFunc::getStatus(FuncReques
 	}
 
 	case LFUN_MENUWRITE: {
-		enable = !view()->buffer()->isClean();
+		enable = view()->buffer()->isUnnamed() 
+			|| !view()->buffer()->isClean();
 		break;
 	}
 

Reply via email to