millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 122 forks source link

C-x C-w rename command fails with "Buffer name is in use" #744

Closed dickmao closed 4 years ago

dickmao commented 4 years ago

Backtrace looks like:

Debugger entered--Lisp error: (error "Buffer name ‘ *ein: http://127.0.0.1:8888/pytorch-baseline-train/pytorch-baseline-train2.ipynb*[python]’ is in use")
  #<subr rename-buffer>(" *ein: http://127.0.0.1:8888/pytorch-baseline-train/pytorch-baseline-train2.ipynb*[python]" nil)
  apply(#<subr rename-buffer> " *ein: http://127.0.0.1:8888/pytorch-baseline-train/pytorch-baseline-train2.ipynb*[python]" nil nil)
  uniquify--rename-buffer-advice(#<subr rename-buffer> " *ein: http://127.0.0.1:8888/pytorch-baseline-train/pytorch-baseline-train2.ipynb*[python]")
  apply(uniquify--rename-buffer-advice #<subr rename-buffer> " *ein: http://127.0.0.1:8888/pytorch-baseline-train/pytorch-baseline-train2.ipynb*[python]")
  rename-buffer(" *ein: http://127.0.0.1:8888/pytorch-baseline-train/pytorch-baseline-train2.ipynb*[python]")
  #f(compiled-function (ws) #<bytecode 0x17d2f95>)(#<ein:worksheet ein:worksheet>)
  apply(#f(compiled-function (ws) #<bytecode 0x17d2f95>) #<ein:worksheet ein:worksheet> nil)
  ein:worksheet-set-buffer-name(#<ein:worksheet ein:worksheet>)
  mapc(ein:worksheet-set-buffer-name (#<ein:worksheet ein:worksheet>))