Created
July 30, 2012 14:28
-
-
Save zarkzork/3207347 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(start-process "ls" nil "ls") | |
(defun keep-output (process output) | |
(setq kept (cons output kept))) | |
(setq kept nil) | |
(set-process-filter (get-process "ls") 'keep-output) | |
(set-process-filter (start-process "ls" "foo" "ls") 'keep-output) | |
(start-process "shell" nil "/bin/bash") | |
(set-process-filter (get-process "shell") 'keep-output) | |
(process-send-string "shell" "echo test\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment