basic-save-bufferbasic-save-buffer is an interactive compiled Lisp function in `
files.el'. (basic-save-buffer) Save the current buffer in its visited file, if it has been modified. The hooks `write-contents-functions' and `write-file-functions' get a chance to do the job of saving; if they do not, then the buffer is saved in the visited file in the usual way. Before and after saving the buffer, this function runs `before-save-hook' and `after-save-hook', respectively.