From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Help-gnu-emacs@gnu.org
Subject: making change of tool-bar entry persistent
Date: Sun, 23 May 2010 16:11:07 +0200 [thread overview]
Message-ID: <7A9A5E4F-DE42-449C-B94B-1966BBD90E46@nf.mpg.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]
Hallo,
I want to re-define what happends when an exising toolbar icon is pressed. In the Emacs documentation I found an example similar to this:
(define-key
global-map
[tool-bar new-file]
'(menu-item "New Buffer" my-new-buffer
:image (image :type xpm :file "new.xpm")))
Executing this code in Emacs 23.2 this will indeed show the desired effect - but only for about 2 seconds: the tool-bar is then automatically redrawn and behaves as before. How can I modify an existing toolbar so that the change is persistent?
Many thanks in advance.
Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]
next reply other threads:[~2010-05-23 14:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-23 14:11 Stefan Vollmar [this message]
2010-05-25 6:23 ` making change of tool-bar entry persistent Kevin Rodgers
2010-05-25 22:53 ` Stefan Vollmar
2010-05-26 12:37 ` Joel J. Adamson
2010-05-26 19:35 ` Stefan Vollmar
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=7A9A5E4F-DE42-449C-B94B-1966BBD90E46@nf.mpg.de \
--to=vollmar@nf.mpg.de \
--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).