Page 1 of 1

lisp problem for start-process

Posted: Sat Dec 05, 2009 6:55 am
by lecheel
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

Re: lisp problem for start-process

Posted: Sun Dec 13, 2009 12:12 pm
by ramarren
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.

Re: lisp problem for start-process

Posted: Sun Dec 13, 2009 6:02 pm
by lecheel
I got the solution
==wrong brace for interactive cause the problem
(interactive
(start-process ....)
)

==now without problem correct in this way :-)
(interactive)
(start-process ....)