I try to solve the problem like this in test.el:
(shell) (rename-buffer "name1") (shell) (rename-buffer "name2") (shell) (rename-buffer "name3")
However, when I use
(eval-buffer) to execute, it seems that the program stops at the 4th line and returns that
Buffer name 'name1' is in use
I am not a pro of elisp, can't figure out what is happening here. Can any one help?