1
How I can prevent Emacs from saving my buffer when it contains syntax errors ?
It would by especially useful for editing source code.
I'm writing some source code into the buffer, hit C-x C-s and Emacs should position the cursor on the line containing the error. I'm correcting the error, hit the save command again, and Emacs should save the file.
1You do not say what sources you would like to check. There are different tools for different types. And ways these can be integrated into emacs. – Benjamin Bannier – 2010-03-05T17:05:28.810