From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tool-bar and multi-tty Date: Sat, 11 Oct 2008 12:28:06 -0400 Message-ID: References: <873aj56v2p.fsf@cyd.mit.edu> <87prm8fkjn.fsf@cyd.mit.edu> <873aj48cd9.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223742532 31389 80.91.229.12 (11 Oct 2008 16:28:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2008 16:28:52 +0000 (UTC) Cc: Eli Zaretskii , dann@ics.uci.edu, 1133@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 11 18:29:51 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KohLd-0000zD-KP for ged-emacs-devel@m.gmane.org; Sat, 11 Oct 2008 18:29:45 +0200 Original-Received: from localhost ([127.0.0.1]:54301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KohKZ-0001Ms-9h for ged-emacs-devel@m.gmane.org; Sat, 11 Oct 2008 12:28:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KohKL-0001JC-UK for emacs-devel@gnu.org; Sat, 11 Oct 2008 12:28:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KohKI-0001Ho-Cb for emacs-devel@gnu.org; Sat, 11 Oct 2008 12:28:25 -0400 Original-Received: from [199.232.76.173] (port=37009 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KohKI-0001Hi-1y for emacs-devel@gnu.org; Sat, 11 Oct 2008 12:28:22 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:44587 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KohKG-000246-LY; Sat, 11 Oct 2008 12:28:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcEAGdx8EjO+IL0/2dsb2JhbACBcrhsgWyBCA X-IronPort-AV: E=Sophos;i="4.33,394,1220241600"; d="scan'208";a="28307993" Original-Received: from 206-248-130-244.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.244]) by ironport2-out.teksavvy.com with ESMTP; 11 Oct 2008 12:28:07 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 095A37F84; Sat, 11 Oct 2008 12:28:07 -0400 (EDT) In-Reply-To: <873aj48cd9.fsf@cyd.mit.edu> (Chong Yidong's message of "Fri, 10 Oct 2008 15:43:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104475 Archived-At: > (image-exp `(tool-bar-find-image > (if (display-color-p) > ',(list xpm-lo-spec xpm-spec pbm-spec xbm-spec) > ',(list pbm-spec xbm-spec xpm-lo-spec xpm-spec)))) > Calling tool-bar-local-item-from-menu from the tty loads the lo-spec > images, whereas deferring this call until X is started up loads the > hi-spec images. But deferring the call, as I suggested, doesn't seem to > be satisfactory either. Why? The `if' is left unevaluated in the image-exp. So IIUC it's only be evaluated later when the image is actually displayed. Stefan