unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [OS X] Title bar icon
@ 2007-08-26 15:55 Seiji Zenitani
  2007-08-27  0:22 ` YAMAMOTO Mitsuharu
  2007-08-27  3:07 ` Richard Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Seiji Zenitani @ 2007-08-26 15:55 UTC (permalink / raw)
  To: emacs-devel

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
zenitani@mac.com

--- 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-27 18:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-26 15:55 [OS X] Title bar icon Seiji Zenitani
2007-08-27  0:22 ` YAMAMOTO Mitsuharu
2007-08-27  1:45   ` Seiji Zenitani
2007-08-27  7:47   ` David Reitter
2007-08-27  8:57     ` YAMAMOTO Mitsuharu
2007-08-27 18:37       ` David Reitter
2007-08-27  3:07 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).