From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#23507: 24.3; Mac OS X proxy icon disappears when frame-title-format is set in .emacs Date: Mon, 16 May 2016 22:43:04 +0100 Message-ID: <20160516214304.GB66742@breton.holly.idiocy.org> References: <676A9144-DFA4-4858-BFC7-3318C67FBF26@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1463435077 7862 80.91.229.3 (16 May 2016 21:44:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 21:44:37 +0000 (UTC) Cc: 23507@debbugs.gnu.org To: Christopher Crawford Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 16 23:44:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b2QJG-0007MT-WF for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 23:44:19 +0200 Original-Received: from localhost ([::1]:47538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2QJ7-0001uK-An for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 17:44:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2QJ3-0001rT-K4 for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2QJ0-0000lO-3x for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2QJ0-0000lK-0D for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b2QIz-0005Vr-Ph for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2016 21:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23507-submit@debbugs.gnu.org id=B23507.146343499421128 (code B ref 23507); Mon, 16 May 2016 21:44:01 +0000 Original-Received: (at 23507) by debbugs.gnu.org; 16 May 2016 21:43:14 +0000 Original-Received: from localhost ([127.0.0.1]:54488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2QIE-0005Ui-LP for submit@debbugs.gnu.org; Mon, 16 May 2016 17:43:14 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:34933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2QID-0005UU-7Q for 23507@debbugs.gnu.org; Mon, 16 May 2016 17:43:13 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id e201so116885928wme.0 for <23507@debbugs.gnu.org>; Mon, 16 May 2016 14:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aczXGxc4dllyxs8PnLmkqm/gn9Q/M0JZZW6yzB53fEc=; b=c36vUq+7uPN1rjy+4ERuLe3QVaeOfJCSFJF3a01YNnKbkU502IDhV9Jxo6hHdKpXW1 QhplZfOR1ZtDAfH1ErQSQXur7GZ6w6sD9mSnin+bMiw8i2QsZYvQm5jWnGQVAPnHKU9a g2sckCHIG7nvAI1/guMmlT0x7npAF9UppKvjhpMV9fpHT7LuTOwSIM/8hkCXEFE8AOjd Y2clDh9Zr0Q5flDqqmyoU61WMUtdHaf/OzRo2ZEy4n7KRKGwP6IuUIzEv7qUcH6wK+WJ 8ZwhBeOcqngrrfhS34flaK+v0TpN+UH6mm8iMJ3S1M4Fwu+SvNbYIfD+ErS41Jb1S43B GQOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=aczXGxc4dllyxs8PnLmkqm/gn9Q/M0JZZW6yzB53fEc=; b=Gd8mf8CgX0lUOE34rtDXavjuT1O9WPlhbKfyQTlTLTIZVm17uaKIlvd3VJo/qZSNmc oNqLJPKWhxAfulPSFyDkqI1MHJ8+iPuhOE4fmLrC/Bbi8Y0Jf7Wq6PiCRIgRPc+tZXev KdNRJLc7AIb456Pxt31wcemESPGPO983LjOR9H0QNSVJ/43+StKIozti/tEohxSNbdzU 2mJZYNT8Y3Fyy/ixwSV0VGCVnzhyoo3sPkXyv5wGuWLSXa5MK0ZCAYcabKG1ZXOKkWFB WjvTavDuq7yEUbyby7DBTqo8+7PV1WzdstLhseBjft5T8drBOk9irhRyOl92oQB3etxL P8XA== X-Gm-Message-State: AOPr4FVOQ8WnkVJmNr5zeUjhncSDL/KC4O/o18O5qwpdFoc+hG5UoRXL20c6Oczz1NbSmw== X-Received: by 10.28.176.129 with SMTP id z123mr19390160wme.74.1463434987551; Mon, 16 May 2016 14:43:07 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-a9e8-aae6-b4f3-11ce.holly.idiocy.org. [2001:8b0:3f8:8129:a9e8:aae6:b4f3:11ce]) by smtp.gmail.com with ESMTPSA id w77sm20252139wmw.10.2016.05.16.14.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 May 2016 14:43:06 -0700 (PDT) Content-Disposition: inline In-Reply-To: <676A9144-DFA4-4858-BFC7-3318C67FBF26@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118333 Archived-At: On Tue, May 10, 2016 at 09:24:22AM -0400, Christopher Crawford wrote: > > Using the following one-line .emacs file: > > (setq frame-title-format '("%b @ " system-name)) > > removes the proxy icon from the mode line when opening ~/.emacs, for example. > After emacs is running, if I evaluate the two lines: > > (setq frame-title-format t) > (setq frame-title-format '("%b @ " system-name)) > > the proxy icon reappears with the rest of the title format specified. It looks like this is just plain not supported in the NS port. x_implicitly_set_name in nsfns.m has this bit of code: /* Deal with NS specific format t. */ if (FRAME_NS_P (f) && ((FRAME_ICONIFIED_P (f) && EQ (icon_title, Qt)) || EQ (frame_title, Qt))) ns_set_name_as_filename (f); else ns_set_name (f, arg, 0); Where ns_set_name sets the title without the icon, and ns_set_name_as_filename with. Note that it's comparing frame_title, which is a C copy of frame-title-format, with true. I think that means that if frame_title is a format string it will skip the icon. AND the comment references "NS specific format t". Of course, if you fiddle about with setting the variables, it does eventually work, so I don't really understand what's going on here. > This bug appeared some time after version 'GNU Emacs 22.3.1 > (i386-apple-darwin9.8.0, Carbon Version 1.6.0) of 2010-01-09 on > gs674-seijiz.local' I believe that was the Mac Port, which was replaced in the official GNU release by the NextStep port some time ago. The Mac Port is still under development by Yamamoto Mitsuharu, but I'm unsure of the link to it. -- Alan Third