Subject: bug#8491: 24.0.50; File "proxy icon" in NS title bar on OS X is not reliably shown

From: Steve Purcell <[email-masked]>
Date: Wed, 13 Apr 2011 14:02:51 +0100

On OS X, try opening a file in a GUI frame:

  /Applications/Emacs.app/Contents/MacOS/Emacs -Q ~/.bashrc

There will be a proxy icon for the file in the Emacs frame's title bar.

Now eval the following expression:

   (setq frame-title-format '("%b"))

The proxy icon will disappear. It can be made to reappear by setting
frame-title-format back to t, and at times the icon has then remained visible
even when re-setting a custom value for frame-title-format.

I'd expect that the icon would always be shown when the current buffer
has an associated file, and the current behaviour appears incorrect.

Please let me know if I can help by providing further info.

In GNU Emacs 24.0.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.35)
of 2011-04-12 on black.porkrind.org
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-: <up> ( s e t q SPC f r a m e - t i t l e - f o 
r m a t SPC " <backspace> ' ( % <backspace> " % b " 
) ) <return> <down> <down> <down> <down> <down> <down> 
<down> C-x 2 C-x 1 C-x b C-g C-x 2 C-x o C-x b <return> 
C-x o : C-/ M-: <up> C-e <left> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
t <return> C-x 1 M-: <up> <up> <return> C-x 2 C-x o 
C-x b <return> C-x o C-x o C-x o M-: <up> C-e <left> 
<left> SPC " SPC - SPC s p e c i a l " <return> C-x 
1 C-x o C-g <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <left> C-x C-e s-x M-x 
e m a s <backspace> <backspace> <backspace> <backspace> 
r e p o t <tab> <backspace> <tab> r t <tab> <retur
n>

Recent messages:
("%b")
Quit
Undo!
t
("%b")
("%b" " - special")
Quit
t
kill-region: The mark is not set now, so there is no region
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort mail-extr message format-spec rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse
auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc
gnus-util time-date password-cache url-vars mm-util mail-prsvr help-mode
easymenu view vc-git tooltip ediff-hook vc-hooks lisp-float-type mwheel
ns-win tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process ns multi-tty emacs)