From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "A.Politz" Newsgroups: gmane.emacs.help Subject: Re: using find-image with picture name stored in a variable Date: Tue, 18 Aug 2009 13:42:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8b1dce33-641f-4a2b-9c1c-d2323cb8624b@18g2000yqa.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1250631648 20606 80.91.229.12 (18 Aug 2009 21:40:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 21:40:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 23:40:41 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MdWQ3-0002eu-Uj for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 23:40:40 +0200 Original-Received: from localhost ([127.0.0.1]:60262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdWQ3-0003nk-Ee for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2009 17:40:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!18g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 88.68.215.177 Original-X-Trace: posting.google.com 1250628145 31519 127.0.0.1 (18 Aug 2009 20:42:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Aug 2009 20:42:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 18g2000yqa.googlegroups.com; posting-host=88.68.215.177; posting-account=Cb0eCQoAAADOp8Qt5mU0s83Gs6qJzY70 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061208 Iceweasel/3.0.12 (Debian-3.0.12-1), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:172082 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67257 Archived-At: On Aug 18, 10:28=A0pm, Dirk80 wrote: > Hello, > > when I give the name of a picture as a string to the find-image command t= hen > 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.