From: Michal <rabbitko@tenbit.pl>
To: help-gnu-emacs@gnu.org
Subject: Re: help needed on toolbar in emacs 23.
Date: Wed, 24 Jun 2009 15:30:03 +0200 [thread overview]
Message-ID: <m2ocsdn4is.fsf@tenbit.pl> (raw)
In-Reply-To: m2zlbxn98b.fsf@tenbit.pl
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
next prev parent reply other threads:[~2009-06-24 13:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 11:48 help needed on toolbar in emacs 23 Michal
2009-06-24 13:30 ` Michal [this message]
2009-06-25 3:38 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ocsdn4is.fsf@tenbit.pl \
--to=rabbitko@tenbit.pl \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).