Index: /trunk/source/cocoa-ide/cocoa-editor.lisp
===================================================================
--- /trunk/source/cocoa-ide/cocoa-editor.lisp	(revision 15425)
+++ /trunk/source/cocoa-ide/cocoa-editor.lisp	(revision 15426)
@@ -2189,7 +2189,13 @@
      (pane :foreign-type :id)
      (echo-area-buffer :initform nil :accessor hemlock-frame-echo-area-buffer)
-     (echo-area-stream :initform nil :accessor hemlock-frame-echo-area-stream))
+     (echo-area-stream :initform nil :accessor hemlock-frame-echo-area-stream)
+     (is-dup :initform nil))
   (:metaclass ns:+ns-object))
 (declaim (special hemlock-frame))
+
+(objc:defmethod (#/setFrameAutosaveName: #>BOOL) ((self hemlock-frame)
+                                                  string)
+  (unless (slot-value self 'is-dup)
+    (call-next-method string)))
 
 ;;; If a window's document's edited status changes, update the modeline.
@@ -3102,4 +3108,6 @@
       (#/release controller)
       (#/setShouldCascadeWindows: controller nil)
+      (unless (eql dupcount 0)
+        (setf (slot-value window 'is-dup) t))
       (when path
         (unless (and (eql dupcount 0) (#/setFrameAutosaveName: window path))
