lisp problem for start-process

Discussion of programming Lisps using Emacs, including SLIME and other tools

lisp problem for start-process

Postby lecheel » Sat Dec 05, 2009 6:55 am

hi,
my environment ubuntu 9.10 + emacs22-nox
I've try using start-process but always got Wrong type argument:...
(start-process "my-process" "foo" "ls" "-l" "/bin/grep")
----message bar show
Wrong type argument: sequencep, #<process my-process>
----output is correct and working
-rwxr-xr-x 1 root root 100312 2009-04-28 19:03 /bin/grep
Process my-process finished
-----

how to fix Wrong type argument for this case :-)

Thanks
lecheel
 
Posts: 5
Joined: Sat Dec 05, 2009 6:49 am

Re: lisp problem for start-process

Postby Ramarren » Sun Dec 13, 2009 12:12 pm

This seems to be something with a return value. How do you invoke the function? For me, using eval-expression in Emacs 23.1.1 the message bar just prints the process object.
Ramarren
 
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland

Re: lisp problem for start-process

Postby lecheel » Sun Dec 13, 2009 6:02 pm

I got the solution
==wrong brace for interactive cause the problem
(interactive
(start-process ....)
)

==now without problem correct in this way :-)
(interactive)
(start-process ....)
lecheel
 
Posts: 5
Joined: Sat Dec 05, 2009 6:49 am


Return to Emacs

Who is online

Users browsing this forum: No registered users and 0 guests

cron