[Top][All Lists]

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

Re: async-shell-command

From: John Wiegley
Subject: Re: async-shell-command
Date: Sat, 16 Apr 2016 13:44:53 -0700
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.92 (darwin)

>>>>> Marcin Borkowski <address@hidden> writes:

> Of course, this is extremely hackish. I thought that stock Emacs could use
> the prefix argument to `async-shell-command' for something else than "make
> this synchronous after all, and put the result at point", which seems odd
> (and not documented, btw). For instance, C-u M-& might /not/ show the *Async
> Shell Command* buffer, and when some option is set, this hiding/showing
> behavior would be reversed (as in my solution). OTOH, maybe the current way
> of doing things is fine, and just needs mentioning in the docstring?

> Any ideas?  WDYT?

None of the current invocation commands use a prefix argument to control
display, so this would be a departure from established practice. I think the
change you've described is better done locally, for those who want such

Another way of doing this that might be nicer would be to check if the
shell-command string ends in "&!" instead of "&", and to take that as an
indication it should be executed both asynchronously and "silently" (without

John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2

Attachment: signature.asc
Description: PGP signature

reply via email to

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