Index: include-fixer/tool/clang-include-fixer.el =================================================================== --- include-fixer/tool/clang-include-fixer.el +++ include-fixer/tool/clang-include-fixer.el @@ -88,6 +88,8 @@ the call was successful the returned result is stored in a temporary buffer, and CALLBACK is called with the temporary buffer as only argument." + (unless buffer-file-name + (user-error "clang-include-fixer works only in buffers that visit a file")) (let ((process (if (fboundp 'make-process) ;; Prefer using ‘make-process’ if available, because ;; ‘start-process’ doesn’t allow us to separate the