From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs pretest 22.1.91 Date: Fri, 29 Feb 2008 13:03:11 +0200 Message-ID: References: <87ejb8vl0i.fsf@stupidchicken.com> <47C55A60.5010709@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1204283201 22138 80.91.229.12 (29 Feb 2008 11:06:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 11:06:41 +0000 (UTC) Cc: lekktu@gmail.com, matsuan@ca2.so-net.ne.jp, emacs-devel@gnu.org, jasonr@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 29 12:07:06 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 1JV34d-0005P3-Va for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 12:06:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JV347-0006Nf-Hf for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 06:06:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JV31j-0004mM-SQ for emacs-devel@gnu.org; Fri, 29 Feb 2008 06:03:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JV31h-0004kw-8H for emacs-devel@gnu.org; Fri, 29 Feb 2008 06:03:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JV31g-0004kp-Dx for emacs-devel@gnu.org; Fri, 29 Feb 2008 06:03:40 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JV31c-0000RR-8X; Fri, 29 Feb 2008 06:03:36 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-203-69.inter.net.il [80.230.203.69]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FDD77348 (AUTH halo1); Fri, 29 Feb 2008 13:03:12 +0200 (IST) In-reply-to: (message from Stefan Monnier on Wed, 27 Feb 2008 23:59:22 -0500) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:90863 Archived-At: > From: Stefan Monnier > Cc: lekktu@gmail.com, matsuan@ca2.so-net.ne.jp, jasonr@gnu.org, emacs-devel@gnu.org > Date: Wed, 27 Feb 2008 23:59:22 -0500 > > So maybe the choice of which image to use should be done in the :filter > function (currently trivial) defined in tool-bar.el as: > > (global-set-key [tool-bar] > '(menu-item "tool bar" ignore > :filter (lambda (ignore) tool-bar-map))) > > I.e. basically extend the format allowed in tool-bar-map to include > various images and let the image be chosen later on by > the :filter function. Of course, maybe this filter gets run early on > as well... It strikes me that we need to arrange things so that the images are not looked up nor loaded until the tool bar is actually displayed for the first time.