unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* help needed on toolbar in emacs 23.
@ 2009-06-24 11:48 Michal
  2009-06-24 13:30 ` Michal
  2009-06-25  3:38 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Michal @ 2009-06-24 11:48 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help needed on toolbar in emacs 23.
  2009-06-24 11:48 help needed on toolbar in emacs 23 Michal
@ 2009-06-24 13:30 ` Michal
  2009-06-25  3:38 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Michal @ 2009-06-24 13:30 UTC (permalink / raw)
  To: help-gnu-emacs

Michal <rabbitko@tenbit.pl> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: help needed on toolbar in emacs 23.
  2009-06-24 11:48 help needed on toolbar in emacs 23 Michal
  2009-06-24 13:30 ` Michal
@ 2009-06-25  3:38 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2009-06-25  3:38 UTC (permalink / raw)
  To: help-gnu-emacs

Michal wrote:
> Hallo group readers!
> Is there any document that would describe aspects of toolbar in emacs
> 23.

M-: (info "(elisp)Tool Bar")

-- 
Kevin Rodgers
Denver, Colorado, USA





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-25  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-24 11:48 help needed on toolbar in emacs 23 Michal
2009-06-24 13:30 ` Michal
2009-06-25  3:38 ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).