Well, I'm not sure where the garbage is coming from, but the error itself is coming from shell-command-region
. When used in elisp
, it expects at least 3 arguments, START
END
and COMMAND
.
Also, in general, it is bad practice to mess with the mark in functions. Here is what the doc of push-mark has to say on the subject:
Novice Emacs Lisp programmers often try to use the mark for the wrong purposes. See the documentation of `set-mark' for more information.
Bahbar
2009-10-10 18:34:41