[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Re: Toolbar icons from old directory

From: Reiner Steib
Subject: [AUCTeX-devel] Re: Toolbar icons from old directory
Date: Wed, 28 Mar 2007 21:51:36 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux)

On Wed, Mar 28 2007, Ralf Angeli wrote:

> * Leo (2007-03-27) writes:
>> ,----[ image-load-path ]
>> | ("/usr/local/share/emacs/etc/images/"
>> | "/usr/local/packages/emacs/share/emacs/22.0.94/etc/images/"
>> | data-directory load-path)
>> `----
> I'm not into the code of the tool bar, but does it work if you put
> (eval-after-load "toolbar-x"
>   '(mapc (lambda (elt) (add-to-list 'toolbarx-image-path elt))
>        image-load-path))
> into your init file?  We should probably do something like that in
> toolbar-x.el.

`image-load-path' may contain symbols (see above).  I doubt that
`toolbarx-find-image' can handle these correctly.  Additionally, Emacs
21 and XEmacs don't have `image-load-path' so you'd have to add some
additional checks.

IIRC my "even more ugly hack" (rev. 1.9, Oct. 2005) handled a
non-default `image-load-path' correctly (because it used Emacs'
`find-image').  But David didn't like it.

Maybe it's useful to look at `gnus/gmm-utils.el'
(gmm-image-load-path-for-library).  The same code is also used by

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]