From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.help Subject: Emacs.bitmapIcon: off does not work Date: Tue, 26 Jul 2011 05:52:30 +0800 Message-ID: <87zkk2x8g3.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311635472 25672 80.91.229.12 (25 Jul 2011 23:11:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2011 23:11:12 +0000 (UTC) Cc: 9154@debbugs.gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 26 01:11:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QlUIk-0004Fp-7F for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jul 2011 01:11:06 +0200 Original-Received: from localhost ([::1]:58674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUIj-0002zn-BT for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jul 2011 19:11:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUIe-0002zW-Cm for help-gnu-emacs@gnu.org; Mon, 25 Jul 2011 19:11:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlUIc-0007fz-WF for help-gnu-emacs@gnu.org; Mon, 25 Jul 2011 19:11:00 -0400 Original-Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83]:43971 helo=homiemail-a60.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUIc-0007ft-KH for help-gnu-emacs@gnu.org; Mon, 25 Jul 2011 19:10:58 -0400 Original-Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id F33163BC06B; Mon, 25 Jul 2011 16:10:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=Mk1EFPLi7Gg4DoJrUuy7OXN7p8sl/fTCDGMinZaCEJ56Q9t7Q8QFiKm8NZQD xb395CPH4WdyzdfIPpiSIrp6X9OUVUNvk+bMlYEwdYkv22mxInL+hzu2BjvAJtSj gUD0NHvUGO0kdLiyUpAcuB0pRmXiIIBX7sAOKvCe/yTYPxQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=FPcl1W1Sz/dy9NRtaKO7gzaBwIU=; b=VzkffB8S9ljxc1ID OpEi8g8igEIPffqu89kz1m1A8pNwNPCLS0qnhdQVtDOhu9U8BnKajkXuBbVwenS6 Pb1bBCnpXxH96kvlY8Ge1KIoYYwmS13vo5V6XYE2qZmRrDP2sK9UfdDq96mFjZjZ Nzei8ZkXgmMRDZNpT/dS8YxwCO8= Original-Received: from jidanni.org (218-163-2-179.dynamic.hinet.net [218.163.2.179]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id 5BCA53BC062; Mon, 25 Jul 2011 16:10:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.97.132.83 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81767 Archived-At: I figured out what is going on in bug 9154. 1. It turns out (info "(emacs) Table of Resources") `bitmapIcon' (class `BitmapIcon') Use a bitmap icon (a picture of a gnu) if `on', let the window manager choose an icon if `off'. is hogwash... you are not using a picture of a gnu anymore. You are using /usr/share/emacs/24.0.50/etc/images/icons/hicolor/scalable/apps/emacs.svg which is not a picture of a gnu. A picture of a gnu is /usr/share/icewm/icons/emacs_32x32.xpm . I.e., the window manager has a picture of a gnu... totally confusing users. You need to just say "the current official emacs icon, whatever that might be". By the way. It does not work anyway. Go ahead and put Emacs.bitmapIcon: off in your .Xresources file and do xrdb .Xresources it will not change the behavior of this bug report one single bit. Kindly tell me the exact thing that does work for .Xresources . What does work is (info "(emacs) Icons X") `-nbi' `--no-bitmap-icon' Do not use a picture of a gnu as the Emacs icon. Yes that does work, but AGAIN you are just confusing the user by telling him that the picture of a gnu somehow comes from emacs these days, when it in fact is coming from his window manager! So OK, 1. What can I put in .emacs so I don't have to make a wrapper shell script or shell alias to say emacs -nbi each time I start emacs? M-x apropos says x-handle-no-bitmap-icon Function: (not documented) How can I use that? Or 2. if I indeed must maintain a .Xresources to deal with this, what WORKING line can I put in it? Again, my goal is to avoid using your icon, which looks too much like iceweasel, and use instead what the window manager already has. P.S., You will note that emacs -Q does not behave as intended icon-wise. If it did, it wouldn't wait until reading something from the minibuffer before updating its icon... Actually what is probably going on is: 1. Emacs puts its icon in place. (indeed an strace show it does) 2. Then the window manager covers it up with its. 3. Then upon reading from the minibuffer emacs updates it. Therefore you need to add a step 2a to update the icon again, else just a plain $ emacs -Q without then pressing any keys will show the window manager's icon, despite not having used -nbi!