From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michal Newsgroups: gmane.emacs.help Subject: Re: help needed on toolbar in emacs 23. Date: Wed, 24 Jun 2009 15:30:03 +0200 Organization: education Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245855169 23083 80.91.229.12 (24 Jun 2009 14:52:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 14:52:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 16:52:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJTq5-00012a-QW for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 16:52:42 +0200 Original-Received: from localhost ([127.0.0.1]:41583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJTq5-0003lx-AC for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 10:52:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!news.mixmin.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news.task.gda.pl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: jupiter.adlex.com Original-X-Trace: news.task.gda.pl 1245850292 31762 157.25.157.162 (24 Jun 2009 13:31:32 GMT) Original-X-Complaints-To: abuse@news.task.gda.pl Original-NNTP-Posting-Date: Wed, 24 Jun 2009 13:31:32 +0000 (UTC) X-Mailer: KMail/1.7.1 User-Agent: mozilla news reader Cancel-Lock: sha1:PWN8Dwi8a7Nww5izhhyqPXjbpFY= Original-Xref: news.stanford.edu gnu.emacs.help:170261 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65481 Archived-At: Michal writes: > Hallo group readers! > Is there any document that would describe aspects of toolbar in emacs > 23. > > For example I added some icons to c++-mode-map's tool-bar. > Then I opened tool.cpp file which contains my new icons. > Then I run gdb, set breakpoint to some place in main.cpp so the program > stopped there (tool bar contents totally differs for such buffer). > But it happens that my c++-mode-map's tool-bar icons also in main.cpp > tool bar. > > Now I want to add icon to be visible only in main.cpp like buffers (ie. > buffers where gdb is invoked). > > how to do this? > > Hopefuly my explanation is clear. > > best regards, > Michal I am still diving into the problem. I see that there is tool-bar-map, which probably (?) keeps look of toolbar of buffer currently visited (???) But for example, when I visit tool.cpp file, icons I added c++-mode-map's tool-bar are not visible in toolbar of this buffer. why? When I visit main.cpp (the one gdb stopped thus main.cpp buffer has another toolbar contents), I see that tool-bar-map contents are different, which is good because toolbar contents of buffer where gdb stopped are different. But what surprizes me (my unnecesarilly) is the fact that tool-bar-map is global there and buffer is still in c++-mode. Does it mean that gdb overwrites global tool-bar-map. All this is very curious to me and I still cannot find any documentation on how to deal with toolbars in emacs. I wonder now, maybe I should just ask about my original problem that would lead me to the question. Maybe in new message. best regards michal