all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* using find-image with picture name stored in a variable
@ 2009-08-18 20:28 Dirk80
  0 siblings, 0 replies; 3+ messages in thread
From: Dirk80 @ 2009-08-18 20:28 UTC (permalink / raw
  To: Help-gnu-emacs


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)))

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-variable-tp25032884p25032884.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.4854.1250627340.2239.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2009-08-19  8:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-18 20:28 using find-image with picture name stored in a variable Dirk80
     [not found] <mailman.4854.1250627340.2239.help-gnu-emacs@gnu.org>
2009-08-18 20:42 ` A.Politz
2009-08-19  8:58   ` Anselm Helbig

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.