[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tool-bar and multi-tty
From: |
Chong Yidong |
Subject: |
Re: Tool-bar and multi-tty |
Date: |
Sat, 11 Oct 2008 15:49:26 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> (image-exp `(tool-bar-find-image
>> (if (display-color-p)
>> ',(list xpm-lo-spec xpm-spec pbm-spec xbm-spec)
>> ',(list pbm-spec xbm-spec xpm-lo-spec xpm-spec))))
>
>> Calling tool-bar-local-item-from-menu from the tty loads the lo-spec
>> images, whereas deferring this call until X is started up loads the
>> hi-spec images. But deferring the call, as I suggested, doesn't seem to
>> be satisfactory either.
>
> Why? The `if' is left unevaluated in the image-exp. So IIUC it's only
> be evaluated later when the image is actually displayed.
Aha: the number of display colors is checked earlier in the function.
If we put that check into the image expression instead, everything
works.
I've just checked in a fix into CVS. I think this should resolve the
problems between multi-tty and tool bars.
- Tool-bar and multi-tty, Chong Yidong, 2008/10/09
- Re: Tool-bar and multi-tty, Eli Zaretskii, 2008/10/10
- Re: Tool-bar and multi-tty, Eli Zaretskii, 2008/10/10
- Re: Tool-bar and multi-tty, Chong Yidong, 2008/10/10
- Re: Tool-bar and multi-tty, Eli Zaretskii, 2008/10/10
- Re: Tool-bar and multi-tty, Chong Yidong, 2008/10/10
- Re: Tool-bar and multi-tty, Chong Yidong, 2008/10/10
- Re: Tool-bar and multi-tty, Eli Zaretskii, 2008/10/10
- Re: Tool-bar and multi-tty, Stefan Monnier, 2008/10/11
- Re: Tool-bar and multi-tty,
Chong Yidong <=
- Re: Tool-bar and multi-tty, Andreas Schwab, 2008/10/12
- Re: Tool-bar and multi-tty, Andreas Schwab, 2008/10/12
- Re: Tool-bar and multi-tty, Chong Yidong, 2008/10/12
- Re: Tool-bar and multi-tty, Andreas Schwab, 2008/10/12
- Re: Tool-bar and multi-tty, Chong Yidong, 2008/10/12
Re: Tool-bar and multi-tty, Stefan Monnier, 2008/10/10