emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OS X] Title bar icon


From: Seiji Zenitani
Subject: [OS X] Title bar icon
Date: Sun, 26 Aug 2007 11:55:11 -0400

Hi,

When visiting a file, the Carbon (OS X) port displays a small proxy icon in the window title bar, like other OS X applications.

However, the proxy icon disappears when the cursor temporary visits the mini buffer (i.e. saving the buffer to another file by C-x C-w), often enough to attract the user's attention. I don't think it is necessary to update the proxy icon in the case of the mini buffer, because the mini buffer usually receives the user's input or shows a message. How about disabling the update_proxy_icon function in the mini buffer? I use the following patch in order to modify the above behavior.

Seiji Zenitani
address@hidden

--- src/macfns.c.orig   2007-07-25 23:05:09.000000000 -0400
+++ src/macfns.c        2007-07-28 22:34:13.000000000 -0400
@@ -2111,16 +2138,15 @@
     return;

   w = XWINDOW (FRAME_SELECTED_WINDOW (f));
+  if (MINI_WINDOW_P (w))
+    return;
+
   modified_p = (BUF_SAVE_MODIFF (XBUFFER (w->buffer))
                < BUF_MODIFF (XBUFFER (w->buffer)));
   if (windows_or_buffers_changed
-      /* Minibuffer modification status shown in the close button is
-        confusing.  */
-      || (!MINI_WINDOW_P (w)
-         && (modified_p != !NILP (w->last_had_star))))
+      || (modified_p != !NILP (w->last_had_star)))
     {
-      SetWindowModified (FRAME_MAC_WINDOW (f),
-                        !MINI_WINDOW_P (w) && modified_p);
+      SetWindowModified (FRAME_MAC_WINDOW (f), modified_p);
       mac_update_proxy_icon (f);
     }
 #endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]