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.