xwem-devel
[Top][All Lists]
Advanced

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

Re: [XWEM]: Re: Adding things to xwem-icons-alist


From: Zajcev Evgeny
Subject: Re: [XWEM]: Re: Adding things to xwem-icons-alist
Date: Wed, 15 Sep 2004 09:21:43 +0400
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, berkeley-unix)

Steve Youngs <address@hidden> writes:

> * Zajcev Evgeny <address@hidden> writes:
>
>   >> How can I tell it that the icon file is in a different directory?
>
>   > Use absolute path, for example
>
>   >   (add-to-list 'xwem-icons-alist
>   >      (cons ["Links.*" ".*" ".*"] (expand-file-name "links.xpm" 
> "/dir/to/icons")))
>
> No.
>
> The truth of the matter is that it is impossible to specify an icon
> file that is outside of `xwem-icons-dir'.  Why?  Because it was
> hard-coded in xwem-icons.el.  The fix?  Already applied to the XEmacs
> CVS repo. :-)

The thing is that `expand-file-name' expands only relative paths, for
example:

    (expand-file-name "icon.xpm" xwem-icons-dir)
    =>
    "/home/lg/.xemacs/xemacs-packages/etc/xwem/icon.xpm"

but

    (expand-file-name "/absolute/path/to/icon.xpm" xwem-icons-dir)
    =>
    "/absolute/path/to/icon.xpm"

-- 
lg




reply via email to

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