From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Štěpán Němec" <stepnem@gmail.com>
Cc: Arni Magnusson <arnima@hafro.is>, 6202@debbugs.gnu.org
Subject: bug#6202: Async shell command, switching mode, and sleep-for
Date: Mon, 17 May 2010 09:30:23 -0400 [thread overview]
Message-ID: <jwvaaryy7yz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ocgeq2cs.fsf@gmail.com> ("Štěpán Němec"'s message of "Mon, 17 May 2010 11:55:31 +0200")
>> 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.
Stefan
next prev parent reply other threads:[~2010-05-17 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-16 15:01 bug#6202: Async shell command, switching mode, and sleep-for Arni Magnusson
2010-05-16 20:48 ` Stefan Monnier
2010-05-17 9:55 ` Štěpán Němec
2010-05-17 13:30 ` Stefan Monnier [this message]
2016-07-07 0:01 ` npostavs
2016-07-07 15:37 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvaaryy7yz.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=6202@debbugs.gnu.org \
--cc=arnima@hafro.is \
--cc=stepnem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).