help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: List evaluation problems


From: Barry Margolin
Subject: Re: List evaluation problems
Date: Fri, 11 Jul 2003 18:46:36 GMT

In article <86wuepgeh7.fsf@5100784654140001.dialin.t-online.de>,
Mario Domgörgen  <kanaldrache@gmx.de> wrote:
>Are elisp problems on-topic are? Hope so ...

Yes.

>So and now my idea:
>
>(defcustom oggel-ripping-switches 
>  '("-D" oggel-device "-x" "-t" tracknumber) ; oggel-device and
>  ;tracknumber are just strings
>
>(defun oggel-rip-track (tracknumber)
>  (let ((proc (apply 'start-process (concat "oggel-ripping-" 
>                     oggel-current-tracknumber)
>                    "*Oggel*" oggel-ripping-programm 
>                    (append 
>                     oggel-ripping-switches
>                    (list 
>                     (oggel-create-trackname)))
>                    )))
>                     [...]                
>    proc))
>
>But that just gives me:
>
>(wrong-type-argument sequencep oggel-device)
>
>I'm rather helpless as this is my first real elisp program. 

(mapcar 'eval oggel-ripping-switches)

will evaluate each of the elements of the list and return a list of the
results.  So change:

(append oggel-ripping-switches
        (list (oggel-create-trackname)))

with:

(nconc (mapcar 'eval oggel-ripping-switches)
       (list (oggel-create-trackname)))

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


reply via email to

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