New answers tagged

1

There are a couple of problems here. You're using with-current-buffer, which expects its first argument to be either a buffer, or the name of a buffer. In your function, this will be the value returned by shell-command, which is neither a buffer or the name of a buffer. You've also used the strings return and clean as the arguments for OUTPUT-BUFFER and ...


0

The error message is confusing, but you’re passing a string to something that expects something else. Specifically, the shell-command function takes these arguments: (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER) It takes the command to run followed by two buffers to use for the output and any errors the command produces. You’re passing in ...


Top 50 recent answers are included