That's because format-all doesn't check if the formatter exists. We should.
We should also ensure that command line arguments are not passed to a formatter that doesn't run an external program. For example, you can't pass command line arguments to the Emacs Lisp formatter.
If you do:
and then run
M-x format-all-buffer
, you get the confusing error:That's because format-all doesn't check if the formatter exists. We should.
We should also ensure that command line arguments are not passed to a formatter that doesn't run an external program. For example, you can't pass command line arguments to the Emacs Lisp formatter.