lisp/ein-notebooklist.el: defer notebooklist instead of buffer.

The buffer could be killed after the callback.
This commit is contained in:
Benda Xu 2017-09-30 21:34:00 +09:00
parent 661bb1c7f1
commit 745673926a

View file

@ -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)