[Top][All Lists]

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

Re: playing sounds from Emacs

From: Marcin Borkowski
Subject: Re: playing sounds from Emacs
Date: Tue, 15 Aug 2017 12:29:14 +0200
User-agent: mu4e 0.9.19; emacs 26.0.50

On 2017-08-14, at 23:49, Emanuel Berg <address@hidden> wrote:

>> (shell-command "omx-play-sound ~/bo/up.mp3")
> To use `shell-command' like that means
> everything halts until the command has been
> executed, which we can't have, but simply
> putting an "&" after - to make it
> "asynchronous" which is a nice way of saying
> the command will be executed in yet another
> shell, a subshell - that won't work. I get ugly
> output in buffer "*Async Shell Command*".
> and an error message:
>     exited abnormally with code 1.
> Perhaps some shell color codes are, well,
> "async"! (So yes, in principle it should work.)

Dunno about the non-zero exit code, but did you see this:

Also - for the record - this:
and that:

And also, `call-process-shell-command' and `shell-command-to-string'.


Marcin Borkowski

reply via email to

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