From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#9154: Emacs.bitmapIcon: off does not work Date: Tue, 26 Jul 2011 05:52:30 +0800 Message-ID: <87zkk2x8g3.fsf__17008.2343429842$1311635533$gmane$org@jidanni.org> References: <87aac4vra4.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311635533 25964 80.91.229.12 (25 Jul 2011 23:12:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2011 23:12:13 +0000 (UTC) Cc: 9154@debbugs.gnu.org To: help-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 26 01:12:09 2011 Return-path: Envelope-to: geb-bug-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 1QlUJj-0004Xb-TL for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jul 2011 01:12:08 +0200 Original-Received: from localhost ([::1]:33172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUJj-0003Kw-B2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2011 19:12:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUJf-0003Kb-As for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2011 19:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlUJe-00085D-Cs for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2011 19:12:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUJe-000857-BB for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2011 19:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QlUJd-0007C3-RL; Mon, 25 Jul 2011 19:12:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87aac4vra4.fsf@jidanni.org> Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2011 23:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9154 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9154-submit@debbugs.gnu.org id=B9154.131163546627539 (code B ref 9154); Mon, 25 Jul 2011 23:12:01 +0000 Original-Received: (at 9154) by debbugs.gnu.org; 25 Jul 2011 23:11:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QlUIj-0007A7-Hw for submit@debbugs.gnu.org; Mon, 25 Jul 2011 19:11:05 -0400 Original-Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81] helo=homiemail-a60.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QlUIg-00079P-Um for 9154@debbugs.gnu.org; Mon, 25 Jul 2011 19:11:03 -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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 25 Jul 2011 19:12:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49608 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!