[Top][All Lists]

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

bug#6202: Async shell command, switching mode, and sleep-for

From: Stefan Monnier
Subject: bug#6202: Async shell command, switching mode, and sleep-for
Date: Mon, 17 May 2010 09:30:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> I strongly recommend to stay away from shell-command and friends in Lisp
>> code (they're mostly used and meant for interactive use), and use
>> start-process instead.
> Wouldn't it make sense to have such a strong recommendation mentioned
> somewhere user-visible, such as in the relevant commands' docstrings?

Yes, maybe that would make sense.  We do that for some other
commands already.  But note that for shell-command it's not nearly as
much of a problem, for the reasons you mentioned: it has a lot of stuff
built-in that annoys Elisp uses so programmers tend to find
start-process on their own out of necessity.

This is in contrast to things like next-line, which appear to do the
right thing for a naive Lisp programmer and will only produce unexpected
results in "unusual" cases.


reply via email to

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