lisp problem for start-process

Discussion of programming Lisps using Emacs, including SLIME and other tools
Post Reply
lecheel
Posts: 5
Joined: Sat Dec 05, 2009 6:49 am

lisp problem for start-process

Post by 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

ramarren
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland
Contact:

Re: lisp problem for start-process

Post by 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.

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

Re: lisp problem for start-process

Post by 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 ....)

Post Reply