mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 09:01:40 -05:00
Put dummy event handler in shared-output cell
This commit is contained in:
parent
f41b26c483
commit
cc0aa11a19
1 changed files with 8 additions and 1 deletions
|
@ -81,14 +81,21 @@
|
|||
(ewoc (ewoc-create 'ein:notebook-pp
|
||||
(ein:propertize-read-only "\n")
|
||||
nil t))
|
||||
(events (ein:events-new (current-buffer)))
|
||||
(cell (ein:shared-output-cell "SharedOutputCell"
|
||||
:ewoc ewoc)))
|
||||
:ewoc ewoc
|
||||
:events events)))
|
||||
(erase-buffer)
|
||||
(ein:shared-output-bind-events events)
|
||||
(setq ein:@shared-output
|
||||
(ein:$shared-output "SharedOutput" :ewoc ewoc :cell cell))
|
||||
(ein:cell-enter-last cell))
|
||||
ein:@shared-output)))
|
||||
|
||||
(defun ein:shared-output-bind-events (events)
|
||||
(ein:events-on events '(set_dirty . Notebook)
|
||||
(lambda (&rest ignore))))
|
||||
|
||||
(defun ein:shared-output-get-cell ()
|
||||
"Get the singleton shared output cell.
|
||||
Create a cell if the buffer has none."
|
||||
|
|
Loading…
Add table
Reference in a new issue