[Top][All Lists]
[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 10:20:49 +0400 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, berkeley-unix) |
Zajcev Evgeny <address@hidden> writes:
> 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. :-)
>
Yes, i was misunderstanding, i thought we've got all concats
eliminated. So the only thing is needed is to replace `concat' with
`expand-file-name'
> 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