[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using find-image with picture name stored in a variable
From: |
A.Politz |
Subject: |
Re: using find-image with picture name stored in a variable |
Date: |
Tue, 18 Aug 2009 13:42:07 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Aug 18, 10:28 pm, Dirk80 <d...@dirkundsari.de> wrote:
> Hello,
>
> when I give the name of a picture as a string to the find-image command then
> it is working. But when I use a variable instead then find-image is not
> finding the picture. What am I doing wrong?
>
> ;; picture test.jpg is in my home directory
> (add-to-list 'image-load-path "~")
>
> ;; working
> (find-image `((:type jpeg :file "./test.jpg")))
>
> ;; NOT working
> (setq my-picture "./test.jpg")
> (find-image `((:type jpeg :file my-picture)))
You are missing a comma, or more likely don't understand quoting.
(find-image `((:type jpeg :file ,my-picture)))
(info "(elisp)Backquote")
(info "(elisp)Quoting")
-ap
>
> Thank you for your help.
>
> Greetings,
> Dirk
> --
> View this message in
> context:http://www.nabble.com/using-find-image-with-picture-name-stored-in-a-...
> Sent from the Emacs - Help mailing list archive at Nabble.com.