Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 15748

A process is a running instance of a program. Use this tag for how Emacs interacts with programs that it runs (compilers, viewers, network backends, etc.)

4 votes

Discard stderr in start-process

Emacs 25 introduced the function make-process for creating asynchronous processes, which is lower-level than start-process. … For example: (make-process :name "mplayer" :buffer (generate-new-buffer "*mplayer out*") :command '("mplayer" "/path/to/video") :connection-type 'pipe …
Basil's user avatar
  • 12.6k
2 votes

Make shell-command / async-shell-command respect carriage return?

The reason asynchronous commands are displayed differently to synchronous ones is because the former receive comint-output-filter as their process filter, whereas output from the latter is not interpreted …
Basil's user avatar
  • 12.6k
5 votes
Accepted

Print process output line by line

(when (and (eq (process-status proc) 'exit) (zerop (process-exit-status proc)) (buffer-live-p (process-buffer proc))) (with-current-buffer (process-buffer proc) (mapc … *" "seq" "10"))) (set-process-filter proc #'my-filter) (set-process-sentinel proc #'my-sentinel)) Equivalently, using make-process: (make-process :name "my-proc" :buffer " *my-proc …
Basil's user avatar
  • 12.6k
4 votes
Accepted

Interpolate environment variables in string

Here it is in action: (let ((process-environment '("Foo=off" "Bar=rab" "skip=piks"))) (substitute-env-vars "This is $Foo and ${Bar}_none and '$skip'")) which gives "This is off and rab_none and ' …
Basil's user avatar
  • 12.6k