mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
lisp/ein-notebooklist.el: defer notebooklist instead of buffer.
The buffer could be killed after the callback.
This commit is contained in:
parent
661bb1c7f1
commit
745673926a
1 changed files with 3 additions and 4 deletions
|
@ -401,12 +401,11 @@ You may find the new one in the notebook list." error)
|
|||
(ein:$notebooklist-api-version ein:%notebooklist%)
|
||||
path)
|
||||
:type "DELETE"
|
||||
:success (apply-partially (lambda (buffer path &rest ignore)
|
||||
:success (apply-partially (lambda (path notebook-list &rest ignore)
|
||||
(ein:log 'info
|
||||
"Deleting notebook %s... Done." path)
|
||||
(with-current-buffer buffer
|
||||
(ein:notebooklist-reload)))
|
||||
(current-buffer) path)))
|
||||
(ein:notebooklist-reload notebook-list))
|
||||
path ein:%notebooklist%)))
|
||||
|
||||
;; Because MinRK wants me to suffer (not really, I love MinRK)...
|
||||
(defun ein:get-actual-path (path)
|
||||
|
|
Loading…
Add table
Reference in a new issue