mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Raise error in ein:notebook-insert-cell-below if suspicious
This commit is contained in:
parent
36688ca8c2
commit
4bb9cfd47a
1 changed files with 3 additions and 1 deletions
|
@ -241,7 +241,9 @@ is `nil', BODY is executed with any cell types."
|
||||||
((= (ein:notebook-ncells notebook) 0)
|
((= (ein:notebook-ncells notebook) 0)
|
||||||
(ein:cell-enter-last cell))
|
(ein:cell-enter-last cell))
|
||||||
(base-cell
|
(base-cell
|
||||||
(ein:cell-insert-below base-cell cell)))
|
(ein:cell-insert-below base-cell cell))
|
||||||
|
(t (error (concat "`base-cell' is `nil' but ncells != 0. "
|
||||||
|
"There is something wrong..."))))
|
||||||
(ein:cell-goto cell)
|
(ein:cell-goto cell)
|
||||||
(setf (ein:$notebook-dirty notebook) t))
|
(setf (ein:$notebook-dirty notebook) t))
|
||||||
cell))
|
cell))
|
||||||
|
|
Loading…
Add table
Reference in a new issue