[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: data-directory
From: |
Stefan Monnier |
Subject: |
Re: data-directory |
Date: |
Fri, 11 Jul 2008 09:36:32 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> (defun mew-toolbar-make (map alist)
> (let ((tool-bar-map (make-sparse-keymap)) ;; for tool-bar-add-item-from-menu
> (data-directory mew-icon-directory))
> (dolist (a alist)
> (if (fboundp 'tool-bar-local-item-from-menu)
> ;; Emacs 21.3.50 or later
> (tool-bar-local-item-from-menu (car a) (cdr a) tool-bar-map map)
> ;; Emacs 21.3 or earlier
> ;; The target map is tool-bar-map
> (tool-bar-add-item-from-menu (car a) (cdr a) map)))
> tool-bar-map))
> On Emacs 22, the tool-bar is created correctly. However, on CVS HEAD
> Emacs, icon images are not displayed.
> image-load-path contains the data-directory symbol. So, I think the
> locally bound value to data-directory should be used.
> Is this behavior change intentional? Or just a bug?
It's neither a bug nor intentional. ;-)
The image selection has now been postponed to the point when the toolbar
is displayed, which is outside of the scope of the let.
I'll see how we can try and remember the data-directory.
Stefan
- data-directory, 山本和彦, 2008/07/11
- Re: data-directory,
Stefan Monnier <=