all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Bostjan Vilfan <bjvilfan@gmail.com>
Cc: Emacs Help <help-gnu-emacs@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: how to redraw the tool bar
Date: Wed, 31 Dec 2014 23:13:54 +0100	[thread overview]
Message-ID: <8761cr79i5.fsf@web.de> (raw)
In-Reply-To: <CAAm34zrwyZZBHrepzTkUa3Cy+JN6oNf-YS7YBTx=T6DOFA+6Fg@mail.gmail.com> (Bostjan Vilfan's message of "Sat, 27 Dec 2014 23:08:38 +0100")

Bostjan Vilfan <bjvilfan@gmail.com> writes:

> This version uses redraw-frame; but the result with force-mode-line-update
> was the same. In effect, when I load a tex file I have to use several
> clicks before the new icons appear.

Indeed, this doesn't work for me too.

Here is a small example for emacs -Q:

(progn
  (define-key global-map [tool-bar bvdotex] 'tex-file)
  (tool-bar-local-item  "save" 'tex-file 'bvdotex tool-bar-map
                        :help "Process file with default tex command"))

Evaluate it, and you have to "do some things" until the item is displayed.
No way of redisplay helps to force the displaying of the button, and it
seems to appear after a random command.

I guess all the Emacs modes set up the toolbar before it is actually
displayed.  Doing it afterwards doesn't seem to work reliably.  I don't
see such a limitation being described in the manual, so Bostjan, please
M-x report-emacs-bug, preferably including a simple recipe as above.


Thanks,

Michael.



  reply	other threads:[~2014-12-31 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-25 14:48 how to redraw the tool bar Bostjan Vilfan
2014-12-26 19:37 ` Michael Heerdegen
2014-12-27  1:50 ` Stefan Monnier
2014-12-27 22:08   ` Bostjan Vilfan
2014-12-31 22:13     ` Michael Heerdegen [this message]
2015-01-01 15:35       ` bug#19480: (no subject) Eli Zaretskii
2015-01-01 20:37         ` Michael Heerdegen
2015-01-01 20:56           ` Eli Zaretskii
2022-05-03 16:58         ` bug#19480: Tool-bar modifications not reflected on display Lars Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761cr79i5.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=bjvilfan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.