How to trigger the problem:
- put
mybuffer.el
andMakefile
in one directory (/tmp/emacs_problem
for example) - open file
mybuffer.el
- go to end of the
create-my-buffers
function and execute the code (C-x C-e) - execute the
create-my-buffers
function withM-x create-my-buffers
- execute
M-x compile RET RET
How to see the expected behavior:
- open file
mybuffer.el
- execute
M-x compile RET RET
Final result
Final result if don't create the
*compilation*
buffer by hand: