* Undocumented returned value of ein:notebook-request-open-callback
(previously notebook buffer, now notebook) is used.
Now this implicit dependency is removed.
* ein:notebook-opened-map renamed to ein:notebook--opened-map
Also eintest:notebook-undo-after-split is fixed. Previous test
was actually wrong. Note that (ein:notebook-empty-undo-maybe)
is added to make the test pass for ein:notebook-enable-undo=yes.
The current behavior is what mentioned in ein:notebook-enable-undo.
fixes (part of) #37
Previous tests were failed because undo was not reset after the
execution callbacks modified the buffer. This is fixed by calling
ein:notebook-empty-undo-maybe via event in all the callbacks.
Previous change was not complete since the test does NOT fail.
The test must fail because the test was for `full' undo but
actually it was tested against normal undo.
It turned out let binding of buffer-undo-list in ein-cell.el
was the right way to do it, since EWOC does some buffer
modification outside of the pretty printer. Therefore, setting
inhibit-read-only and buffer-undo-list in the pretty printer
makes no sense. Thus, they are removed from ein:notebook-pp.
This means that wrapping EWOC functions with let binding of
buffer-undo-list is essential. Meaning that what I wrote in
the FIXME ein:notebook-pp was wrong. Therefore,
ein:notebook-empty-undo-maybe cannot be called in ein:notebook-pp
and ein:notebook-empty-undo-maybe must be called in every single
functions that modifies buffer via EWOC.
Tests for three cases of undo configuration are added.
These test still fail:
ein:notebook-undo-after-execution-1-cell/yes
ein:notebook-undo-after-execution-2-cells/yes
msg_type in the "fake packet" is moved into the header sub-object.
Related previous fixes:
* 85c90fc6c6 -- fix shell-reply
* a02a4a4221 -- fix iopub-reply
* test-ein-cell.el was not changed in 10fb29f when the cell types are
changed.
* test-ein-notebook.el was not changed in b9b5dc5 when the destructor
was introduced.